Archived topic
Custom colored hook under the header/navigation bar
7 replies · Started by Huseyin on April 24, 2020
Hi team,
I would like to have a hooker under the header/navigation bar, need help on creating a hook(i attached an example) Just need a solid colour background with the text where the clickable text will be a link
"Are you searching for? (CLICKABLE TEXT) (CLICKABLE TEXT) (CLICKABLE TEXT) (CLICKABLE TEXT)
Example:https://acrobat.adobe.com/au/en/acrobat/how-to/ocr-software-convert-pdf-to-text.html
Screenshot:https://ibb.co/hyNqCfX
Hi there,
Are you referring to this part?
https://www.screencast.com/t/NhX427sE
If so using the secondary navigation would be the best method:
https://docs.generatepress.com/article/secondary-navigation-layout-overview/
Thanks, Leo for the reply
Yes I'm referring to that part
Wondering if this feature will work on selected pages? Because I only want the secondary navigation in selected pages
You can create a layout element to hide it on specific pages:
https://docs.generatepress.com/article/layout-element-overview/#disable-element
Thanks but I want the secondary navigation under the hero header, how could I achieve this?
Hi there,
add this PHP Snippet to your site:
add_action( 'after_setup_theme','lh_move_secondary_navigation' );
function lh_move_secondary_navigation() {
remove_action( 'generate_after_header', 'generate_add_secondary_navigation_after_header', 7 );
add_action( 'generate_after_header', 'generate_add_secondary_navigation_after_header', 15 );
}
done, what should I name the snippet?
Thanks
Its up to you :)