Hi, I have a sidebar nav that I want to collapse into a select menu – one that does not require an additional button to initiate the link to the selected page.
Display child pages as a dropdown select
Resolved
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
Hi Mike.
Displaying the child pages as a drop-down select which automatically browsers to the selected page may be done with the following steps:
mike1
Hi Mat,
Thanks for this. When I implemented the set up as described above I get the following error on the page:
Parse error: syntax error, unexpected ‘}’, expecting end of file in /app/public/wp-content/themes/GRT_2018/advanced-sidebar-menu/page_list.php on line 31
Appreciate your help,
Mike
OnPoint Plugins
Hi Mike,
Turns out my example did not include the opening <?php tag at the top of the file and my instructions did not mention to leave that in place. Here is the full code including the opening <?php tag