Support » Plugin: WooCommerce » how to add css file to wordpress

  • Resolved lanter56

    (@lanter56)


    Hello,

    I made a modification in the file reset.css (it’s about the size of the margin).

    I pasted this file into the child theme folder. However, I do not know what command to write in the function.php child theme folder, to force the reading of the reset.css file from: child_theme/css/ reset.css.
    Now word press reads this file from main_theme/css/reset.css and the changes are not made in this file.

    The modified file is in the child_theme folder and i want to use this file, i don’t want to change oryginal file from main theme.

    Can anyone give me which command should be entered into function.php so that word press read the modified file?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Some themes allow you to put custom CSS snippets in the customizer.

    If you’ve created a child theme and it’s activated it’s style.css should load.

    Another method would be to use something like the following plugin:

    WP Add Custom CSS
    https://wordpress.org/plugins/wp-add-custom-css/

    Plugin Support ryanr14

    (@ryanr14)

    You’ve received some good advice here.

    If this is the only, or one of the only, modifications you’ve made to your site I would follow @lordspace‘s advice and open up the Customizer and add your custom CSS under the Additional CSS section.

    This wouldn’t required a child theme nor any additional plugins if you were only changing a little bit of CSS.

    Plugin Support Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to add css file to wordpress’ is closed to new replies.