Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Hiding one of nav menu template

$
0
0

Replies: 0

Hello, probably I’ve found bug.

To reproduce:

working with elementor pro

create template (header-1) where just insert nav-menu widget (from elementor pro)
create template (header-2) where just insert nav-menu widget (from elementor pro)
create template (all-headers) where insert header-1 and header-2 templates and apply 2 visibility logics to them (1 for each):
for header-1 show when page is front-page
for header-2 hide when page is front-page

in header.php after body tag insert sec code:
<?php echo do_shortcode(‘[elementor-template id=”all-headers-template-id”]’); ?>

In result: on front-page will be ok, on other pages will be showed 2 templates without correct menu styling. My hopes was to see only one menu with correct menu styling.


Viewing all articles
Browse latest Browse all 59525

Trending Articles