-
AuthorPosts
-
January 22, 2020 at 12:46 am #1176981
Hi,
I am wondering what is the best approach here as I am not a developer by trade, just a person running their own website :-)
Is there an advantage to adding code snippets with such a plugin or is there no advantage over using the access built right into the theme?
Thanks for any insights to this.
GB
January 22, 2020 at 9:37 pm #1177304Hey gb,
It is better to have a child theme and add all snippets in the functions.php file if it’s the code. If you need to add css you can put it in the Theme options > Quick css field. There are really not many perks of having yet another plugin if this can be added right to the theme.
Best regards,
VictoriaJanuary 23, 2020 at 11:41 pm #1177938Hi Victoria,
I have never quite understood using a child theme approach. I just download the theme update and upload it using Transmit and add CSS code using the theme options / Quick CSS field.
I understand that the plugin thus does not seem nesseary but is there a tutorial or something you could point me towards that might help me better understand what the child theme approach is compared to how I have been doing it?
THANKS!
GB
January 25, 2020 at 7:17 am #1178250Hi,
I would agree with Victoria that it’s simpler to only add code to the theme, but if you feel comfortable with your plugin then I don’t see any problem with using that, as long as it does what it’s supposed to do.
Best regards,
RikardJanuary 25, 2020 at 6:15 pm #1178387Thanks guys and could you explain the child theme aspect of this.
I have been using Enfold for a long while now but never understood what the child theme is and how or why to modify that instead?
Thanks,
GB
January 26, 2020 at 9:05 am #1178466Hi GB,
A child theme is used to override the parent and will never be overwritten on updates. So if you add a function or some CSS to the parent, then it will be overwritten on the next theme update. If you add the same code to the child instead, your modification will be safe during the update. That is basically what a child is used for.
Best regards,
RikardJanuary 27, 2020 at 6:30 pm #1178753Hi Rikard,
Does that mean I am using the child theme ? Because I add the CSS code to my theme by going to WordPress / Enfold / General Styling / Quick CSS and every time there is an update, I download the theme file to my desktop and upload it and replace the older Enfold folder using Transmit and any code I had pasted into the Quick CSS prior is still there.
So I am confused as to what component or where the child theme is separate from the Enfold theme I update?
Is there a video tutorial to understand this better?
Am I using the child theme already?
Sorry for my confusion on this.
GB
- This reply was modified 4 years, 10 months ago by gb.
January 28, 2020 at 8:36 am #1178900Hi GB,
I don’t know if you are using a child, but you can check that under Appearance in the WordPress menu.
Quick CSS is not affected by having a child or not, it will keep your code regardless of running a child or parent.
We don’t have any tutorials on this but I’m sure you can find lots of information on the topic online. The principal is the same for all WordPress themes.
Best regards,
RikardJanuary 28, 2020 at 5:23 pm #1179084Thanks so much, I will look deeper into this.
All the best to a great support team!
GB
January 29, 2020 at 12:55 pm #1179400 -
AuthorPosts
- The topic ‘Add code via Enfold/General Styling/ Quick CSS or use Code Snippets free plugin?’ is closed to new replies.