Site logo

Archived topic

Link to a style sheet

3 replies · Started by cpalo on January 18, 2022

Viewing posts 1–4 of 4

Hello
I don't want to use a child theme.
I therefore wanted to link a style sheet with my personal styles.
Where and what should I insert for this?
Knowing that with each update of GenertePress I should not forget to do it again.
cordially

Hi there,

i would suggest you look at creating your own plugin to enqueue your style sheet. That way the stylesheet can be stored in the plugin folder.

Heres an example of the function to be used in a plugin to load a stylesheet that is in the /css directory of the plugin:

https://stackoverflow.com/a/21759786

Good evening
So I will try this plugin creation
Thank you

You're welcome

This archived topic is closed to new replies.