Search the Community
Showing results for tags 'theme.yml'.
-
Hello, I have a reusable "component.tpl" file, which I've placed in _partials folder (I import it in multiple pages) and I'd like to link a stylesheet (component.css) to this file/component. Now, every time I import this component to a page I create an additional 'component.css' linking in theme.yml. I'm looking for a solution to prevent this behaviour and declare stylesheet only once and load this stylesheet only on pages where component.tpl is imported. Anyone can give me any advice?
-
Hello, I'm not able to export my theme so that I can use it on my server. Things I've tried: I tried using the export button in the backoffice but I only get a 500 server error and when using the command line export command i get an error saying my theme.yml doesn't exist. I've also tried just moving the theme folder into the appropriate place on the server but it doesn't appear in the backoffice like it would on my local computer . Any and all suggestions would be greatly appreciated.
-
Do you use the same JavaScript registration format for using externally hosted paths? Specifically, since I'm using https://app.termly.io/embed-policy.min.js, do I still use path, or something else? Also, I'm not sure about the ID field, because its externally hosted. Here is the JavaScript snippet I've been given to work with. It has a USER ID, and I'm wondering if I should use this for the ID field? <!-- Termly Tracking Code --> <div name="termly-embed" data-id="e0ddfc2a-7d40-4f3c-a7d7-e2e904b34638" data-type="iframe"></div> <script type="text/javascript">(function(d, s, id) { var js, tjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://app.termly.io/embed-policy.min.js"; tjs.parentNode.insertBefore(js, tjs); }(document, 'script', 'termly-jssdk'));</script>
-
Hello, Every time PrestaShop tries to load inline styles it throws an error with the incorrect root path, any clues? ```file_get_contents(/themes/MY_THEME/assets/css/inline-menu.css): failed to open stream: No such file or directory in /data/www/dev.DOMAIN.com/classes/assets/StylesheetManager.php on line 140``` Thank you for your help.
-
Hello, I'm trying to make a new theme for prestashop 1.7, I want to include a custom css file. I have followed instructions in the asset management page( http://developers.prestashop.com/themes/assets/index.html) and tried to register a custom css file with this code in the theme.yml, below the 'author' key and the above the 'meta' key this way: assets: css: all: -id: mytheme-css path: assets/css/mytheme.css media: all priority: 100 The css file isn't loaded. I am a beginner to yml. Help would be greatly appreciated!
-
- 1
-
-
- prestashop-1.7
- css
-
(and 2 more)
Tagged with: