- This topic has 7 replies, 2 voices, and was last updated 5 years, 2 months ago by
David.
-
AuthorPosts
-
January 28, 2021 at 1:00 am #1636533
Factory Prime
Hello
I would like to have different images in the header for each page of the site, I tried to set them in elements the new header and I made a rule to see it in the page below but it is inserted under the menu and with the default header of the siteExample:
https://newyorkmurales.com/east-side/How can I do?
Also if in the options I put: mobile header on the site header in mobile disappears, if I put off the header in mobile appears.
!?!?January 28, 2021 at 2:56 am #1636655David
StaffCustomer SupportHi there,
the Header Element was designed for adding page heros that display below the site header/navigation. However, what we can do is:
1. Use a Layout Element to Disable the Site Header.
2. Add this PHP Snippet to move the Primary navigation and the Mobile Header below your Header Element:add_action( 'after_setup_theme','craig_move_navigation' ); function craig_move_navigation() { remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 ); add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 ); remove_action( 'generate_after_header', 'generate_menu_plus_mobile_header', 5 ); add_action( 'generate_after_header', 'generate_menu_plus_mobile_header', 15 ); }This will replace your site header with your header element.
January 28, 2021 at 3:13 am #1636690Factory Prime
Hi, David
Thanks a lot!!
Now it works but the breadcrumbs are now above the menu, I wanted them under the menu.
How can I do?January 28, 2021 at 3:15 am #1636694Factory Prime
I for the bc had entered
add_action (‘generate_after_header’, function () {
if (function_exists (‘yoast_breadcrumb’)) {
yoast_breadcrumb (‘<p id = “breadcrumbs”>’, ‘</p>‘);
}
});January 28, 2021 at 3:18 am #1636696Factory Prime
Solved:
add_action( ‘generate_after_navigation’, function() {
if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>‘ );
}
} );January 28, 2021 at 3:19 am #1636698David
StaffCustomer SupportLooks great ! Glad to be of help.
January 28, 2021 at 4:24 am #1636753Factory Prime
Thanks a lot!!
January 28, 2021 at 5:30 am #1636811David
StaffCustomer SupportYou’re welcome – nice site 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.