• awesomeblogger

    (@awesomeblogger)


    Basically I would like to add the custom codes I’ve added in the CSS option in the theme (Appearance > Customization > CSS) to the theme files itself, so that they’re less easy to change, or more integrated with the theme itself. Is there a way to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Leo

    (@leohsiang)

    Hi there,

    Not sure if I fully understand.

    The Additional CSS field in the customizer (WordPress core feature) is attached to the theme.

    The other option is to use a child theme and style.css file:
    https://docs.generatepress.com/article/using-child-theme/

    Thread Starter awesomeblogger

    (@awesomeblogger)

    Thank you for your comment Leo.

    What I would like to do is put the Additional CSS code into the theme files itself. Is there a way to do this?

    Elvin

    (@ejcabquina)

    What I would like to do is put the Additional CSS code into the theme files itself. Is there a way to do this?

    Note: We highly discourage editing of theme’s default files. If you must change the site’s styling, you can refer to Leo’s reply.

    But if you really must edit the theme’s css files, it’s located on your site’s .../wp-content/themes/generatepress/assets/css.

    But this is completely unnecessary, and it isn’t recommended.

    Leo’s answer is the preferred way in styling your site. It should suffice for all your CSS styling needs.

    Karis

    (@askel45)

    Use the child theme option. Don’t edit core theme files or your CSS changes will be overwritten on (every) theme update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is there a way to add CSS codes in the themes files/page itself?’ is closed to new replies.