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

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.

Related

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.

Prestashop testimonial link

I'm using a theme with testimonial slider in homepage and I've figured out that there in the module folder a file called all_testimonial.tpl and something about an upload form.
So I guess that there is a way to have a page with all testimonials with the upload form.
But I'm not able to understand how could use that tpl.
Do you have any suggestions?
TPL file is a file extension for a template file format in general.
In Prestashop, Smarty is a template parser written in PHP
Take a have a look at these websites
https://www.smarty.net/
https://www.smarty.net/docsv2/en/smarty.for.designers
It would be difficult to answer which module for testimonial slider you are using in theme and which PrestaShop version website is using.
But I would say to have a look at the Prestashop Hooks
To see List of Hooks -> For a full list of Hooks
To see Module Development Changes -> https://build.prestashop.com/news/module-development-changes-in-17/

Can't add .icls theme file to IntelliJ

I'm using IntelliJ ultimate edition, and I'm on a mac. I'm trying to install this theme. My folder structure looks as follows:
~Library/Preferences/IntelliJ/colors/Dracula.icls
the IntelliJ folder wasn't there so I created that myself. I also tried IntelliJVersionNumber and that also didn't work. IntelliJ doesn't seem to be recognizing this theme. When I go to change the theme in preferences it only shows the default ones (which ironically one of the default ones is also called Dracula)
~/Library/Preferences is not the same as /Library/Preferences. ~ stands for your user home folder, so it's actually /Users/<username>/Library/Preferences.
See the FAQ.

BigCommerce theme "missing parsed template files" (TR-601)

Trying to upload a custom theme to BigCommerce. Them uploads successfully, but I get TR-601. Any advice on troubleshooting theme? Or determining what's missing? I have no deleted anything from stock install.
Update: if you are experiencing this error on upload, it could be related to an extraneous file somehow added to your templates directly. That was our case.

ArcGIS / Esri Custom Theme not showing in appbuilder

I've followed the instructions here:
https://developers.arcgis.com/web-appbuilder/guide/create-a-theme.htm
Created the correct scaffold, placed in stemapp/themes but I just can't get it to show up. Also, when I edit the DemoTheme, my changes aren't displaying. I've cleared my cache, using incognito but it's just not working. I've also used the yo generator to scaffold the theme, but no dice. https://github.com/Esri/generator-esri-appbuilder-js
What am I doing wrong?
Two possibilities:
If using Demo Theme, by default, it is disabled. To enable it, open the .repoignore file in client\stemapp\themes, remove DemoTheme from the file, and restart the node server.
During development, use "http://your host/webappbuilder/?id=stemapp" to access your theme directly.
If it doesn't appear here, you are not following the instructions correctly. Make sure all your theme names are well placed. There must be instances where you still have names from your copied theme(e.g DemoTheme), replace all of them with your theme's name. It should appear.
Restarting the ArcGISWebAppBuider service worked for me