• 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

Add new header-right widget for 1 page only

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 › Add new header-right widget for 1 page only

This topic is: not resolved
  • This topic has 3 replies, 3 voices, and was last updated 9 years, 6 months ago by DannyM.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 4, 2013 at 5:11 am #76925
    DannyM
    Member

    Hi,

    Could someone please point me in the right direction.

    I'm working on a website that has an image in the header-right widget area, the client would like a different image to appear in the header-right widget area for one page only and I'm not sure how to go about it.

    Should I create a new widget area (header-right2 for example) and then use a body class or am I on the wrong track?

    Any help very gratefully received!

    Warm Wishes

    Danny

    December 4, 2013 at 5:56 am #76926
    Sridhar Katakam
    Participant

    You could use a plugin like Widget Logic. For that one page (let's say its slug is "about"), for the generic widget that should appear site-wide except this Page, you would put:

    !is_page('about')

    and for the widget that should appear only on that Page, you would use:

    is_page('about')


    Genesis Tutorials | Follow me on Twitter

    December 4, 2013 at 5:57 am #76927
    stinkykong
    Participant

    Body class method was the way I was thinking. However, there are other considerations such as, "does this image have a function such as a link or alt text?".

    What I might do, is remove the current image but use CSS to add it as a background, then using the custom body tag, write a CSS rules that puts a different background image in on your particular page.

    Now I see Sridhar's option....may be good, also.


    Web Design by Websentia Web Services
    http://websentia.com

    December 4, 2013 at 11:59 am #76994
    DannyM
    Member

    Thank you both guys,

    I'd not heard of that plugin before - worked a treat, thank you very much!

    Warm Wishes

    Danny

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

© 2023 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