Support » Plugins » Style Not Updating (Colors in AdSense manager?)

  • Resolved Bob Jones

    (@erissiva)


    For some reason I can’t change the colors of ads using this plugin. I have an ad called “sidebar” which I want to use in the sidebar widget. Ive customized the colors and saved. The correct colors show up in the preview and also in the list of ads. However, the widget that is associated with that ad still displays the default colors.

    I’ve tried F5 and clearing my cache, but I can’t figure out why it won’t update. Getting just a tad frustrated with it. Everything else seems to work fine – customizing ad type, size, etc…just not colors.

Viewing 6 replies - 1 through 6 (of 6 total)
  • erissiva: Can you point me at your page and I’ll have a look at what is going on. Thanks.

    I’m having the same problem

    hmm.. since you haven’t provided a site to examine, one possibility is that the css for the plugin is being called at the wrong time.

    In default themes, wp_head() is typically called just before the opening body tag… thus, any css associated with a plugin is read AFTER your style.css file

    If you are defining your id or class in style.css, it may not override the default values provided by a plugin author’s style sheet.

    There are three ways to address that… you *could* move wp_head() to before the call to default style sheet (not the best solution, imo) OR

    write your rule in a way that gives it greater specificity AND in a way that provides the more specific values for EVERY property that has values in the plugin’s default style sheet. (the best solution, imo, since it keeps all the custom styling in YOUR style sheet)

    third possibility – edit the plugin’s style sheet. If you do this, keep a backup. AND, imo, just duplicate their properties and values, comment out theirs, and edit yours. That way, if it causes problems, it is easy to go back to the originals – especially if you add notes about what and why you are doing what you are doing.

    The other possible reason you may have problems… if you ARE editing the plugin’s style sheet… is that wp_head() could already be before the default style.css file in the header.php file. (Since sidebar is a selector in that style sheet, whatever is written in the plugin style sheet could be overwritten by this)

    Same goes for if you have sidebar defined two places in style.css… the first instance may actually be more specific than the second..

    Hard to say without being able to see your css.

    HTH

    um, if you don’t understand what I mean by specificity, google css+specificity. basically, the general idea with properties:values goes like this:

    div.bob p.foo {
    color:red;
    }

    p.foo {
    color:blue;
    }

    you’d think that the last value for color would be used… however, the first rule is more specific, therefore, the second value is ignored… assuming all of your paragraphs of the class “foo” are in divs of the class “bob”

    not to suggest you don’t understand this, but some might not.

    Thread Starter Bob Jones

    (@erissiva)

    I have no idea what happened, but after a few days it went back to working normally. :-/

    Sorry to bother.

    I have the same problem and now I just get my code from the Adsense site and put it in as a direct code and save it as the ad I want. This works fine and I know the code is 100% correct.

    Tom M: A new version of AdSense Manager (v3.0) is due to be released in a the next few days, which includes support for the new AdSense Slots etc. where they are configured on Google’s site. Also natively supports almost every other ad network I can too, with network specific options/config details.

    Seperating the two types of Google Ads like this should also remove problems when using the ‘Classic’ style ads as well and fix the issues you’ve been having with the colours.

    Just some final fixing up of code to go and the Upgrader/Importer to bugtest and then it’ll be ready to go.

    Watch this space!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Style Not Updating (Colors in AdSense manager?)’ is closed to new replies.