Ativeisis Posted April 8, 2017 Share Posted April 8, 2017 (edited) Hejsa jeg prøver på at udvikle et child tema, hvor classic tema er parent. Jeg bruger prestashop version 1.7.0.6 og køre på localhost, så kan desværre ikke oplyse et link til shoppen. Jeg har formået at registrere min egen css fil ved at redigere theme.yml fil og Tilføjelse / udkommentere dette assets: # If you're using this theme as child and you want to load # the parent theme assets, uncomment this line.use_parent_assets: true # The following lines are showing how to load assets in your page # Uncomment and change value to start loading css or js files css: all: - id: theme-custom path: assets/css/custom.css media: all priority: 1000 Og så kan jeg se I kildeteksten at mit stylesheet bliver loadede. Det er så her mit problem kommer ind, jeg kan kun tilføje det ene stylesheet, hvis jeg prøver på at tilføje flere f.eks. ved at skrive det her. assets: # If you're using this theme as child and you want to load # the parent theme assets, uncomment this line.use_parent_assets: true # The following lines are showing how to load assets in your page # Uncomment and change value to start loading css or js files css: all: - id: theme-custom path: assets/css/custom.css media: all priority: 1000 - id: font-awesome-style path: assets/css/font-awesome.min.css inline: true media: all priority: 999 så kan jeg stadig kun se custom.css i kildeteksten. Har været inde og kigge på alle mulige guides søge på google, og prøvet forskellige metoder at skrive koden på, men jeg sidder lidt fast. Håber der er nogen der kan hjælpe derud, eller evt. et link til guide jeg har overset ? På forhånd tak Ativeisis Edited April 27, 2017 by Ativeisis (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now