Forum Replies Created
-
AuthorPosts
-
GoalSetter40sParticipant
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.
GoalSetter40sParticipantI 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_headerI 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.
GoalSetter40sParticipantYour 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!
GoalSetter40sParticipantThanks, that looks like what I'm looking for, however, for some reason the menu appears in the footer Div. Any suggestions?
GoalSetter40sParticipantThanks, 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.
GoalSetter40sParticipantOk, 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.
GoalSetter40sParticipantGoalSetter40sParticipantWeird, 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/
GoalSetter40sParticipantGoalSetter40sParticipantSorry, 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?
-
AuthorPosts