Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agency Pro Remove Native Header or…need current date
Tagged: header
- This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by
Sridhar Katakam.
-
AuthorPosts
-
February 7, 2014 at 10:56 pm #89300
shatchp
ParticipantHi folks,
Quick question for anyone with a moment and an inclination to help. I'm working on a site using Agency Pro and I want to a left justified header navigation menu with a current date on the right in the widget area. This is no problem with a custom menu specified as the primary navigation (the primary nav extras are only available on a specified menu location), however Agency Pro's header then obviously gets in the way. I've found a great set of instructions by sridhar katakam here for removing the header from the home page, but not the whole site.
I've tried removing the header, description and widget using code snippets, but it looks wonky.
So here's the question: which is easier, adding the current date to Agency's native header menu, or removing the Agency header from the site and going with the custom menu. And, how?
Thanks much,
Sam P
February 8, 2014 at 10:44 pm #89447Sridhar Katakam
ParticipantFebruary 8, 2014 at 11:12 pm #89450shatchp
ParticipantThanks for responding. Again my choice: 1) remove native header and use custom menu as primary navigation (meaning current header needs to go), or 2) add a date to current header.
Thanks,
Sam
February 10, 2014 at 4:33 am #89615Sridhar Katakam
ParticipantFebruary 11, 2014 at 11:35 am #89841shatchp
ParticipantReally outstanding...thank you for your support here and for the community. Works like a charm!
February 27, 2015 at 4:31 pm #142596sethbahookey
MemberReally? I can't even get access on how to remove the header from the agency pro theme?
Can someone please post how to remove the header from agency pro?
Thanks.
February 27, 2015 at 6:50 pm #142614Sridhar Katakam
ParticipantIn Agency Pro's functions.php, change
//* Reposition the header remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); add_action( 'genesis_before', 'genesis_header_markup_open', 5 ); add_action( 'genesis_before', 'genesis_do_header', 10 ); add_action( 'genesis_before', 'genesis_header_markup_close', 15 );to
//* Reposition the header remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); // add_action( 'genesis_before', 'genesis_header_markup_open', 5 ); // add_action( 'genesis_before', 'genesis_do_header', 10 ); // add_action( 'genesis_before', 'genesis_header_markup_close', 15 );
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.