Why is my array of nav menus returning empty?
I am trying to retrieve of list of available menus but the array is returning empty.
I am trying to retrieve of list of available menus but the array is returning empty.
When I load the website (https://notes.goncaloperes.com) on mobile one can see the two menus/navigations that exist
Right now all pages path like /faq/ or /about/. I need path like /home/faq/ /home/about. I tried change url slug in edit page. But WordPress change my home/faq to home-faq.
I am relatively new to wordpress development, I am trying to extend ‘Walker_Category_Checklist’ class found in /wp-admin/includes/class-walker-category-checklist.php to customize it for wp_terms_checklist() or wp_category_checklist() but when I try to require_once a link to my extended class in the child-theme function.php I get this error and site not loading!
I have a custom vertical menu based on posts of a specific category. I want to match the slug of the menu item with the slug of the current post to apply css. Specifically, I want to change the background of the selected menu item. Selected menu item means, when the user clicks the menu and page loads, the background of that menu item should be changed indicating the user is at this menu item/post. What I think, if the menu item consists of posts, then the slug of the posts and slug of the menu item should be same. In the html, each li tag has the menu item ID. The code I am is like this
I have a wordpress menu:
I have a header with a logo, menu items and a search bar. I have aligned the menu on the right (close to the search bar), but in the ‘single-post’ page, the menu items appear on the left, starting right after the logo. The header HTML is the same for each page (I’m getting it … Read more
My menu list is so long. If I want to move an item to the top of the list, I need to hold and scroll all the way up. This is inefficient and annoying. Is there any way to improve this process?
When the screen becomes too small (i.e. if I restrict the browser window, or if I open my website from mobile) the menu becomes an hamburger (☰). I want to know how to do the following two things:
This is for a wordpress store and I want to show the categories names automatically, but with the sub-categories hidden, the code below works perfectly with the hover effect, now I wish to have the click effect instead. The $cats variable is to use the get_terms() function, but for here to work everywhere I had included a few categories, the categories only go so far as the “third generation”.