WordPress.org

Ready to get started?Download WordPress

Forums

WP Post Styling
Not taking all styles I include (4 posts)

  1. LuisEscorial
    Member
    Posted 5 months ago #

    I am using this Plug in for the first time. I want to customize some elements on a specific post. I am including the CSS in the WP Post Styling box, but the post only takes the first value I gave it.
    See:

    h1.entry-title {
    color: #ff4526;
    font-weight: 700;
    }

    When I publish the post, it only takes the color for the h1, but no the rest of values (font-weight, or size...)

    https://wordpress.org/plugins/wp-post-styling/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 5 months ago #

    Can you provide a link to the effected page?

  3. LuisEscorial
    Member
    Posted 5 months ago #

  4. Joe Dolson
    Member
    Plugin Author

    Posted 5 months ago #

    The problem is that your theme or a customizer plugin is loading the default styles for your headings after the styles from WP Post Styling, so that the later styles take precedence. If you increase the specificity of your styles it should work fine:

    .post h1.entry-title { styles }

Reply

You must log in to post.

About this Plugin

About this Topic