• 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

Header Widget All Pages Except Index

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 › General Discussion › Header Widget All Pages Except Index

This topic is: resolved

Tagged: BLOX Lite for Genesis, header widget

  • This topic has 5 replies, 3 voices, and was last updated 7 years, 3 months ago by markajh.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • December 28, 2018 at 6:40 pm #225286
    markajh
    Participant

    Using Gallery Pro. I am using the "Image Widget" in the "Before Header" drop down.

    I would like the image to appear on every page EXCEPT the index page.

    I assume there is code to write to place on the functions.php page? I don't know what that code would be or how to write it.

    Am I on the right track or not? Can anyone please help.

    Thanks, Mark

    December 28, 2018 at 9:44 pm #225296
    Victor Font
    Moderator

    Please post a link to your site so we can see what you're doing.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 29, 2018 at 8:51 am #225309
    markajh
    Participant

    Here is a link to the site: http://atomic-training.com/wp-admin

    I created a UN/Login for you - the PW was sent to your [email protected] address. Editor Level. Please let me know your thoughts.

    January 4, 2019 at 5:05 am #225407
    wikilistia
    Member

    Hello Markajh

    I think this can be done if you create multiple pages. You can paste the code of header widget on every page and remove the header widget code from the index page.

    Regards
    Alka Jacob

    January 6, 2019 at 9:16 am #225432
    Victor Font
    Moderator

    Hi Mark,

    I'm sorry, but I don't access wp-admin areas as a community volunteer. I reserve that level of support for my paying clients.

    Besides, all I was asking is for a link to the site. There is code you can add to functions.php to hide a widget from the front page. You have to use WordPress conditionals. https://codex.wordpress.org/Conditional_Tags

    The idea is to hook into one of the WordPress or Genesis actions to test whether your on the front page of not, then if you're on the front-page, hide the widget. If you aren't, then let it display.

    With Gallery Pro, you can try adding the conditionals to the function that displays the widget. Find this code around line 110 in functions.php:

    function bbs_before_header_widget() {
      genesis_widget_area( 'before-header', array(
        'before' => '<div class="before-header">',
        'after'  => '</div>',
      ) );
    }

    Now, add the conditionals:

    function bbs_before_header_widget() {
      if !( is_front_page() || is_home() ) {
          genesis_widget_area( 'before-header', array(
            'before' => '<div class="before-header">',
            'after'  => '</div>',
          ) );
        }
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 6, 2019 at 9:49 am #225436
    markajh
    Participant

    BLOX Lite by Nick Diego for Genesis is a great plugin - makes things very straightforward. If you don't want to write PHP exceptions - check this out.

    Blox Lite

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Header Widget All Pages Except Index’ is closed to new 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