• 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

GoalSetter40s

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • August 4, 2015 at 12:36 pm in reply to: Insert slider or graphic above secondary nav #161406
    GoalSetter40s
    Participant

    I'm almost there! Thanks for much for your help.
    Here's the code I'm using in the genesis_header hook:

    <?php if ( has_nav_menu( 'secondary' ) ) : ?>
        <div class="cct-resortpage-headerimagenew"><img src="/images/dunes-village/dunes-village-header-new.jpg"></div>
    
    <?php endif; ?>

    What's left is to filter on the menu_id parameter, using:

     array(
    	'menu_id' => 'menu-dunes-village',
      )

    Here's the page:
    http://scbeach.com/dunes-village/overview/

    I don't know enough about PHP syntax to specify a specific menu_id in the PHP code.

    Your help would be greatly appreciated.

    August 3, 2015 at 12:24 pm in reply to: Insert slider or graphic above secondary nav #161305
    GoalSetter40s
    Participant

    I think the hook is going to be the [genesis_header], because that's the only one that is between the primary and secondary nav. I used your position guide technique to determine this. You can see it here:

    http://scbeach.com/dunes-village/overview/

    The problem is, whatever I place in this hook will appear on all pages. I only want it to appear on the same pages that the secondary menu appears on, in this example, all the pages for Dunes Village. I need some logic that says:

    If secondary nav is Dunes Village, use image01 in genesis_header
    If secondary nav is Margate Tower, use image02 in genesis_header

    I suppose I could use some conditional PHP code to check each page's ID to determine which image to display in the genesis_header.

    Ideally, I would like a way to always use image01 whenever secondary nav menu01 is used and image02 whenever secondary nav menu02 is used. That way the correct image appears in the genesis_header based on what secondary nav I choose for that page.

    To summarize, all pages that use the Dunes Village secondary nav will always show the image for Dunes Village, and all pages that use the Margate Tower secondary nav will always show the image for Margate Tower.

    August 3, 2015 at 9:17 am in reply to: Insert slider or graphic above secondary nav #161269
    GoalSetter40s
    Participant

    Your diagram on all the various genesis hooks is awesome. I started to make my own a few times, but never finished. I'll be using yours a a reference from now on. Thank you so much!

    Perhaps you answered my question, but unfortunately I don't fully understand how to implement it. I probably didn't explain my goal well, so I'll try again.

    Simply put, I want to insert some HTML code or a shortcode to "piggy back" along with the logic in the [Genesis Simple Menus] that places the page specific secondary nav. For example:

    1.) For secondary nav menu01, I want image01 (or shortcode01) above that secondary nav.
    2.) For secondary nav menu02, I want image02 (or shortcode02) above that secondary nav
    etc.

    Your help is greatly appreciated!

    June 18, 2015 at 3:28 pm in reply to: Secondary Menus to only Certain Ppages #156707
    GoalSetter40s
    Participant

    Thanks, that looks like what I'm looking for, however, for some reason the menu appears in the footer Div. Any suggestions?

    February 8, 2014 at 7:25 pm in reply to: Going Green – Replace Site Title with Page Title #89409
    GoalSetter40s
    Participant

    Thanks, Ryan. I pasted your code into the genesis_header block and ticked the "Execute PHP on this hook" box. Nothing appears is the space. What I was hoping to appear is the phrase "Real Estate" as this is the page's title. I even deactivated the "Genesis Title Toggle" plugin to make sure it wasn't interfering.

    Do I need to state my theme name somewhere in the PHP code that you provided or was I supposed to use a snippet of your code? Sorry, I'm not well versed in PHP. Thanks for your help.

    February 8, 2014 at 2:47 pm in reply to: Going Green – Replace Site Title with Page Title #89377
    GoalSetter40s
    Participant

    Ok, I give up on posting my URL link, but that's OK, because it's the same link that I posted originally in my opening post.

    February 8, 2014 at 2:44 pm in reply to: Going Green – Replace Site Title with Page Title #89376
    GoalSetter40s
    Participant

    Apparently, my URL is too long (it's 85 characters) for the link code to display, so use this shorter example link instead:

    February 8, 2014 at 2:42 pm in reply to: Going Green – Replace Site Title with Page Title #89375
    GoalSetter40s
    Participant

    Weird, this is the second attempt to add my link using the [link] button on the toolbar of the forum editor. I'll try again, this time without using the [link] button:

    http://www.pawleysislandscrealestate.net/real-estate/pawleys-island-homes-for-sale-map/

    February 8, 2014 at 2:41 pm in reply to: Going Green – Replace Site Title with Page Title #89374
    GoalSetter40s
    Participant

    I just noticed that my link didn't show, so I'll put it here:

    February 8, 2014 at 12:22 pm in reply to: Going Green – Replace Site Title with Page Title #89355
    GoalSetter40s
    Participant

    Sorry, I didn't use the correct term. I meant to say "from the page titles" not "from the meta title tag". I'll try to be clearer in this explanation:

    I want the page titles visible, but in a different place then where they are appearing. If you look at , you'll see "Pawleys Island Community Map" displayed in a brown font color, large font. I want that text to appear above in the green section where it currently says ["This is placed by the "Genesis - Simple Hooks" plugin in the genesis_header Hook section. It would be nice to have the page title here. PHP code is working as you can tell this current time: Sat Feb 08, 2014 18:09 pm"].

    I suppose it could avoid placing PHP code in "Genesis - Simple Hooks" plugin, and instead use some CSS positioning to move it there, but it just seems cleaner and more lightweight to use some PHP code to place it in the "Genesis - Simple Hooks" plugin in the genesis_header Hook section.

    Does this make sense?

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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