Dynamic nav menu with icons [closed]
Dynamic nav menu with icons [closed]
Dynamic nav menu with icons [closed]
you can add new menu from WordPress admin on this https://de.ferberg.com/wp-admin/nav-menus.php?action=edit&menu=0 and then you need to call this menu where you’re calling your footer menu.
How to replicate a mobile menu from a site to a wordpress site [closed]
Use the display_post_states hook: function custom_display_post_states( $states, $post ) { if ( ‘Services’ === $post->post_title ) { $post_states[‘custom-content’] = ‘Services Page’; } return $post_states; } add_filter( ‘display_post_states’, ‘custom_display_post_states’, 10, 2 ); or you can do by ID if ( 1 === $post->ID) { $post_states[‘custom-content’] = ‘Services Page’; } To check if page has template: function … Read more
Add acf custom fields so sub item in menus
You’re right, this is odd behavior. I’m curious, what would happen if you added an anchor link directly on the ‘On the Block’ page (ie, #play)? Not suggesting this as a solution, just trying to establish whether anchor links will work on the page if not included as part of the navigation.
For the ‘Everything’ submenu, you can target it and then set the width to simply fit the content. nav.wp-container-2 li.wp-block-navigation-item.has-child ul.wp-block-navigation__submenu-container { width: fit-content; } This worked for me on StackBlitz, but you may need greater specificity (MDN) to target the element in your project. Note that you can also flag it as important (MDN) … Read more
So, what was messing up with the menu items setting was assignment operator on the decision structure (condition) instead of comparison (or equal) operator to add the items based on menu location. I don’t know how I missed or made that shameful kind of mistake. Anyway, below is the working code template for WordPress menu … Read more
Call wordpress function through functions.php when pressing menu
The good thing about ACF is it comes with lots of functions to check fields. Here is the manual. Are you creating a meta value in addition to the field and it’s value? I’m guessing that you are looking for the value of the bloom field. If that’s so then get_field(‘bloom’,post->ID) should be what you’re … Read more