• Hi All –

    Yet another novice question, quite possibly… but we’re getting there!

    My ever-evolving prototype site is at:

    https://www.all-about-the-house.com

    Over the past few weeks, I’ve tried adding a few script-based items to the sidebar on the right – and have found that this doesn’t always render properly. It’s almost as if the theme style sheet is competing with the native styling of script-based objects that I insert.

    (I’m pretty sure this is what’s happening – but not 100% positive.)

    I see it with Adsense script objects (only as they load) and I see it with script-based Twitter widgets as well. In fact, I’d love to add a Twitter widget to the sidebar, but it renders terribly. It’s not on the site at all right now, though I have a messed-up version on my development/test environment.

    Which leads me to my novice question…

    Is there a simple and definitive way to “disable” all theme-based CSS styling strictly within a widget object? Some line(s) of code I can insert right before my script code? (And if necessary close-out right at the end of the script code – to return to theme-based styling?) Does this make sense, and if so, are there any examples anyone can share?

    Any insights would be most appreciated!

    Thanks…

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • No – you have to adjust your CSS – either in the theme’s stylesheet or within the scripts. Ideally, your scripts should only include classes or ids – not CSS – so that they can be styled via the theme’s stylesheet.

    Thread Starter sabino106

    (@sabino106)

    Thanks, Theme Diva (cool name, BTW)…

    Even though that’s kind-of what I expected – I was *really* hoping there might be some kind of override for an imported script. Bummer. I’ll go into style.css and mess around on my LAMP environment — see what I can do. Appreciate the feedback!

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Software Switch to Disable CSS in Widget Areas?’ is closed to new replies.