Dropdown Menu ONLY Appearing When Logged In – Not even a button
Dropdown Menu ONLY Appearing When Logged In – Not even a button
Dropdown Menu ONLY Appearing When Logged In – Not even a button
I solve this problem by using WordPress Filter hooks I use the filter render_block, to hook in altering the existing HTML So I created custom_render_block_core_navigation_submenu hook function. Inside my hook I am using conditions to avoid storing my modified code in the database. Target the type of block (core/navigation-submenu) Only render in the front-end Don’t alter … Read more
Please add below line in your functions.php file add_filter(‘wp_nav_menu_items’, ‘do_shortcode’); This line will execute do_shortcode to your menu items and if there is any it will execute the shortcode.
Looks like Elementor is setting the hover color for all links on the page to #5E6462, which is hard to read against the background color of the nav menu. Somewhere within Elementor the color is being set; that will need to be changed.
You can set a CSS class on the menu item, and then in the Custom CSS feature of Elementor, define the class. @media ( min-width: 768px ) { .hide-if-desktop { display: none; } }
Are you okay with using CSS? It seems the plugin you installed has affected your header. So I would uninstall the plugin and then with pure CSS, hide the header on the page you want to hide it. So to hide it on the page you’re mentioning, the CSS would be: .page-id-3262 header { display: … Read more
Perhaps it’s happening too early and getting stomped on later. Try doing it the traditional way, in an init hook callback, like so: function register_my_menu() { register_nav_menus([ ‘main-menu’ => esc_html__(‘Main Menu’, ‘myfirsttheme’), ]); } add_action( ‘init’, ‘register_my_menu’ );
Thanks everyone for the help. I managed to overcome this problem as follows: Themes > Customize and then I looked up in the headers tab and I saw the header which is used for mobile view. I went to the headers and clicked “edit in Elementor” then I found the hambergur menu there with no … Read more
I was able to work this out by using a hook that I grabbed from Artemiy Egorov’s answer on this post https://stackoverflow.com/questions/5034826/wp-nav-menu-change-sub-menu-class-name so I figured I’d share in case someone else needs it too: add_filter( ‘nav_menu_submenu_css_class’, ‘rename_sub_menus’, 10, 3 ); function rename_sub_menus( $classes, $args, $depth ){ foreach ( $classes as $key => $class ) { … Read more
Unable to order my menu by dragging