• 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

Call different DIV depending on page

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 › Call different DIV depending on page

This topic is: not resolved
  • This topic has 6 replies, 2 voices, and was last updated 13 years ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 15, 2013 at 1:47 pm #46138
    PhilMurray
    Participant

    i have a div called #inner in my child theme - in which i have a large background image. It works well, however I only want it to appear on the Home Page [i have a static page setup as my front page]

    how can i call a different background image for the #inner div for all other pages / posts in the site?

    thanks

    Phil

    June 15, 2013 at 2:53 pm #46146
    Brad Dalton
    Participant

    You could try using a plugin http://wordpress.org/plugins/background-manager/


    Tutorials for StudioPress Themes.

    June 15, 2013 at 3:48 pm #46167
    PhilMurray
    Participant

    Thanks Brad - this might just be the ticket - i will try it out

    cheers

    Phil

    June 15, 2013 at 4:03 pm #46170
    PhilMurray
    Participant

    hi Brad - i tried that plugin but the version of PHP on my web server was not the one required to run it.

    so i was wondering - is it possible to add a structural wrap to my child theme - that only applies to pages other than the front page?

    the structural wraps in my functions.php are l

    /** Add support for structural wraps */
    add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'nav',
    'subnav',
    'inner',
    'footer-widgets',
    'footer'
    ) );

    but is it possible to add one called inner2 which would only appear on inner pages [ie: all but the front page] ?  that way i could assign a different background image to the #inner2 DIV and that should sort the problem

    or do the structural wraps apply to the entire site?

    thanks

    Phil

     

    June 15, 2013 at 4:29 pm #46176
    Brad Dalton
    Participant

    You could try another plugin or even create a custom field which is what the plugin does anyway.

    Or you can use a custom body class with CSS.


    Tutorials for StudioPress Themes.

    June 16, 2013 at 6:04 am #46236
    PhilMurray
    Participant

    hi Brad

    id it possible to use a custom field on the HOME page [ it's a static page] which changes the CSS for #inner  on that page only?

    if so - do you know how I actually do that?

    thanks

    Phil

    June 16, 2013 at 6:17 am #46240
    Brad Dalton
    Participant

    Probably could but you could also use a second style sheet for your home page.

    https://gist.github.com/braddalton/5731657


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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