I’m working on a site, and I’m new to WordPress. I’ve spent hours on Google trying to find a solution to my problem, but I honestly don’t know how to fix this. I’m looking for a way to add a submenu in the sidebar to a specific page. I could imagine, I’d have to use the built-in-Wordpress custom navigation menu and perhaps set up two types of menus, which I’ve done here in the functions.php-file:
… and it works perfectly with the CSS, except for the fact that the submenu-item is still stuck at the #topmenu. I’m sure I’d have to put something in the sidebar.php to let the links to the “children” pages of the parent page show there, but I don’t know what to put in sidebar.php. This of course means that I’ve set the submenu-pages to be a child of the parent page in the Dashboard’s page-overview-options. I also need the sidebar-submenus to contain some sort of id or class, since I’m styling them via CSS.
I’d love to get some help on this. Thanks in advance,
And is there a way that I set “Page Sidebar” with my custom menu in the widgets and it appears only when I’m on “some_site”? If so, what should I write in the code? I have been trying for some time but some strange things and errors appear?
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".