WordPress.org

Ready to get started?Download WordPress

Forums

How to override a particular style rule (2 posts)

  1. mlkary
    Member
    Posted 6 months ago #

    What is the correct way to customize a theme by overriding a particular rule?

    I have edited style.css to override the rule .singular .entry-content {} to change the width to auto.

    Is that the best way to do it? If I update the wordpress version, my copy of style.css will be over-written and I will lose my change.

    I have edited style.css in the past for other reasons and keeping track of my edits can be troublesome.

  2. alchymyth
    Forum Moderator
    Posted 6 months ago #

    if you don't want to create a child theme then consider to use one of the 'custom CSS' plugins; http://wordpress.org/plugins/search.php?q=custom+css

    a child theme would be recommended if you also need to change some of the templates;
    http://codex.wordpress.org/Child_Themes

Reply

You must log in to post.

About this Topic

Tags