• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to avoid theme-fonts in HTML-ads in sidebar

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to avoid theme-fonts in HTML-ads in sidebar

This topic is: not resolved

Tagged: CSS-styles, HTML-ad

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by CharlieL.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 14, 2015 at 10:18 am #159391
    CharlieL
    Participant

    I guess there are some "best habits" when it comes to producing HTML-ads for a sidebar.

    I want to avoid the fonts and typography that is used in the theme.

    Now I have put some HTML-code into a Text-widget in order to use it as an ad in the sidebar. I have defined CSS-styles for the HTML-code in the Text-widget, but the theme-fonts overrides my definitions in the CSS. The ad is like a small complete HTML-page.

    Should I link to a separate style sheet (like ad_styles.css) in order to override the theme fonts or do you know any other method? Are there any best habits or recommended methods for HTML-ads?

    The ad is not published yet so I can“t include an URL. Sorry for that.

    July 18, 2015 at 3:16 pm #159768
    Christoph
    Member

    Hi,

    without seeing the code, I guess that you have to make your css selectors more specific.
    http://www.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/

    Specifics on CSS Specificity


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 19, 2015 at 6:22 am #159800
    CharlieL
    Participant

    Thank you for your answer Christoph,
    And thanks a lot for two good guides on specificity. I think I have to go a bit deeper into them.

    Otherwise it would be very interesting to hear developers habits with HTML-ads. Do you use iFrames? How do you deal with responsiveness for Ads? Or do you simply make an image of the Ad to make tha task easy? Or is is only AdSense that counts?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble