Icons not loading after created new theme in sylius - sylius

After I created a theme in sylius my icons are not loading. But when I include the original path of style.css they appear. What am I doing wrong.
I have followed this link as a reference:
How to add CSS files on a Sylius theme?.
Screenshot attached

In the style.css file in your theme folder. Change the src url of the icons in #font-face.
For example:
Add fonts/icons.eotinstead of themes/default/assets/fonts/icons.eot
Do the same thing for every font file and images.

Related

Shopify Theme - theme style settings not in settings_schema.json file?

does anyone know how to remove the "theme style" settings under a Shopify stores general Theme Settings? I do not see these settings defined anywhere inside the settings_schema.json file. Thanks in advance
Okay, so if you are using the default Shopify theme called debut or any 3rd party theme that has the same settings into the backend customizer.
These settings are basically due to JSON code for presets for active theme inside the file called settings_data.json under config folder.
you need to just remove the code into presets to remove it. if you need it, by default it is not suggested to remove it.
Remove the highlighted part from the file and save it. and reload the customizer screen and it has gone.

Difference between Shopify Files and Assets for images

In Shopify, it seems there are 2 areas to upload site images: Files (Settings -> Files) and Assets (Theme Editor -> Assets Folder). What's the difference here and why would you want to place images in one over the other?
Settings -> Files
These are the global files that can be accessed from any theme. You store different assets there, for example any image uploaded in the customize panel for the image picker field goes there. There are some other assets that goes there but this is the just of it, they are global assets and can be accessed from any theme even if you delete the theme from which you added the files via the customize panel.
In addition there is no API (as of now) that allows to communicate with this. Meaning that APPs can't upload files there directly.
Theme -> Assets
On another hand the theme assets are considered local for the specific theme, if you delete the theme those files are gone and you can't access them.
These files comes with the theme, so when you add a new theme to your store, the assets (css/js/images) comes with it.
There is an API that allows you to communicate with the Asset API so APPs can write and read from the theme asset folder.
Why would you use one instead of another
There is no specific rule here, you can use either of them for files, but there are a few good practices.
If your theme requires a specific functionality - add those files in the theme assets folder. For example CSS & JS files needs to go there. Why you ask?
There is a tool called ThemeKit that allows you to communicate with the theme and read/write files directly in the assets folder (and other places), this makes development and debugging a lot easier for developers. So if your css or js file is uploaded in the Settings -> Files there is no way to read/write it without downloading it and reuploading it there manually (which is a pain).
Since the theme assets comes with the theme when you download your theme and upload it to a different store it will just work. So in that sense please use the theme assets in those cases.
On another hand when you have specific customization options, some themes have the option to link to a SVG or MP4 files, since there is no way to add this, usually administrators upload such files in the Settings -> Files section and copy/paste the global link to the customize panel field.
So to put it simply theme assets are for the theme functionality, while settings files are for the customization assets.
When it comes to images, usually most of images should be manageable from the customize panel with an image_picker field, those will upload the image directly to the Settings -> Files without you doing anything.
But if you have for example a static image that the theme requires (for example the logo) and there is no customize option for it, then add that to the theme assets folder.
TL;DR
Theme assets are the files that are strictly tied to the theme in question while the Settings -> Files are the files that can be accessed from any theme.
When you are developing a theme write ALL files in the theme assets files in order to allow for the theme to be shared if you like or modified easily afterwards.
Use the Settings -> Files only when you need to link to a specific global asset or allow for the user to copy paste links in your customize settings of the theme.
#drip is correct here but I there's some info missing that I think could be helpful.
There is a size limit on themes (currently 50mb). So if your theme has many images and they are all in the assets folder then your theme might not upload if it breaks the threshold. Not to mention that you might not want to check all of those images into your theme repo.
This is where you could use the Settings -> Files section to store your files. Then you can reference them in your theme using the file_image_url tag referenced here https://shopify.dev/api/liquid/filters/url-filters#file_img_url
Also there is now an API for CRUD on these assets
https://shopify.dev/api/admin-graphql/2022-04/mutations/filecreate
I hope that helps future info fetchers.

How to add new css and js file in stencil theme

How can i add new css and js file in my BC Stencil Theme ?
and i cant find my all theme folder in cyberduck! my theme name is Cornerstone Light.
The legacy theme platform (Blueprint) used Cyberduck to upload theme files, but Stencil uses Stencil CLI developer tools. If your store has a Stencil theme applied, you won't see a template folder in WebDAV.
First, install the prerequisites for your OS and install Stencil CLI:
https://stencil.bigcommerce.com/docs/installing-and-launching-stencil-1
Download your theme so you can work on it locally. CSS files can be added to assets/scss and js files can be installed with a package manager like npm, or uploaded to assets/js.
After uploading your custom.scss file to the assets/scss directory, you can import it into the default scss file (theme.scss) with an #import statement:
#import "custom";
Here are links to the documentation on adding CSS and js files to your theme:
https://stencil.bigcommerce.com/docs/custom-sass-functions#Compiling
https://stencil.bigcommerce.com/docs/js-101
You might also find this BC Community discussion helpful:
https://forum.bigcommerce.com/s/question/0D51B00003sRDg7SAG/custom-css-in-big-commerce

How to edit css : Bigcommerce Stencil

How can I edit in CSS.
In Stencil framework can't found .css file.
In assets folder only found .scss file.
I want to edit in theme.css
How can I edit ?
Can any body help me ?
If you are developing a stencil theme locally and have ran stencil start it watches your SCSS files. So one option is you could add any custom CSS you want to the /assets/scss/theme.scss file.
Another option is you could create your own SCSS file, say for example custom.scss, and place it in /assets/scss/. Then import it to your theme.scss like this #import "custom" . Make sure you place it at the bottom of your theme.scss file so it overrides any css you are wishing to alter.
the .scss files are the css files. The stencil framework uses scss instead of the regular css.
This link should help guide you on how to edit the files: https://support.bigcommerce.com/articles/Public/Using-the-Stencil-Theme-Editor
the .scss files are the css files. The stencil framework uses scss instead of the regular css.
Please check this path /assets/scss/theme.scss

How to change the default index.html file in titanium mobile web?

I would like to know how to change the default index.html file. I have created a classic project (for mobile web). In that I have created a .css file which includes my custom styles. Now I would like to include this file in index.html, so that those styles will apply on my application. But haven't seen the index.html file. After build, I am able to see this file in build folder. May I know how to update the index.html file?
Thanks in Advance,
Swathi.
Appcelerator uses XML for views, TSS for styling, and JS for controllers. Then Titanium compiles your source code into the native API (HTML for mobile web). Because you can also compile for iOS, Android, and Windows, your output is converted appropriately to your build directory. When you create a new Alloy project, you will find the default index.xml, index.tss, and index.js in the app views, styles, and controllers directories respectively. So to control index.html, edit these 3 index.* files.