WordPress.org

Ready to get started?Download WordPress

Forums

CSS Over ride isnt working? (3 posts)

  1. bassmanstu
    Member
    Posted 1 year ago #

    Hi there,

    I was wondering if anyone could help me. I have been trying to change the size of the padding title of a couple of my pages but the over rides aren't working. I'm not sure why.

    http://www.stuartjnelson.com/portfolio/

    +

    http://www.stuartjnelson.com/blog/

    Here is what i have been using at the moment:

    .ml-cs-title-v {
        padding: 0.5em;
    }

    It has not done anything.

    Cheers,
    Stuart :)

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    This CSS seems to be overriding it:

    .ml-cs-title-v {
        display: block !important;
        margin: 0 auto;
        padding: 1em;
    }

    from this file:
    http://www.stuartjnelson.com/wp-content/themes/mater-ana/functions/cstacker/css/cstacker.css.php

  3. paulwpxp
    Font hero
    Posted 1 year ago #

    Change the order of file.css being loaded, the one overwritting must come after. Depending on how you load that file, if it got there by add_action() to wp_head , then just change the number of the 3rd parameter, default is 10, more number will be loaded later.

    In case, you can't change the order of that file, or if this would be just for a couple of places, then just give it more weight by putting in more class or even tie it with the element.

    .ml-content .ml-cs-title-v {
        padding: 0.5em;
    }

    or

    h1.ml-cs-title-v {
        padding: 0.5em;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic