• OK,

    So I have the following website, and have just started writing articles:

    https://www.regularrefunds.com/how-leicester-city-fc-cost-the-bookmakers-millions/

    The page originally wanted to show a side bar menu which wasn’t appropriate for the blog section so I deleted the following from single.php:

    <?php get_sidebar(); ?>

    What would be extremely handy, is if I could create a new menu on the right that could detail the blog part of the site a little more, i.e. categories, list articles by months etc. I can get the menu built easy enough, but how would I “call” this secondary menu within single.php?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It appears that you deleted the sidebar rather than deal properly with its content. replace the <?php get_sidebar(); ?> then use APPEARANCE -> WIDGETS to control the content there. Create a menu in APPEARANCE -> MENUS and then use the Custom Menu widget to plop that menu into your sidebar.

    Thread Starter cooper1210

    (@cooper1210)

    You’re slightly misunderstood, the sidebar is only removed when viewing POSTS, it is available on the main site when looking at PAGES.

    What I want, is for <?php get_sidebar(); ?> to bring up a different menu in POSTS to what is being brought up for PAGES

    Thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    install the plugin “widget context”. It will allow you to tell widgets on which pages/posts/templates they should appear (or not appear).

    https://wordpress.org/plugins/widget-context/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Replace Side Menu with Another Menu. PHP injection’ is closed to new replies.