WordPress.org

Ready to get started?Download WordPress

Forums

Custom Menu on only 1 page, and in certain location (3 posts)

  1. wwwproperties
    Member
    Posted 2 years ago #

    Hello

    I would like to add a custom menu to each certain page (a menu of a list of cities within each county where we work, added to each county page). I can do this with conditionals, ie with this code - "<?php if (is_page('page_slug')): ?>
    <?php wp_nav_menu('menu=test'); ?>
    <?php endif; ?>" - however this conditional code brings the menu up in the header on the right hand side and messes up the whole page. I would like to add the menu in the secondary sidebar so it looks like a widget. Is this possible?

    For example, I would like to add a menu with a list of cities in Prince George's County to this page http://refinancemortgagemaryland.net/refinance-mortgage-prince-georges-county-maryland/ so it looks like the "Maryland Mortgage Refinancing" menu added in the widget at the top right, but I would like my custom menu of cities to show up below the AdSense ad block on the left side.

    I hope my rambling post makes sense...Any help and suggestions? Thanks a lot!!

    PS..my theme is the education theme, running Genesis framework. Cheers

  2. Rohan
    Member
    Posted 2 years ago #

    Use "widget logic" plugin. It will help you.
    http://wordpress.org/extend/plugins/widget-logic/

  3. wwwproperties
    Member
    Posted 2 years ago #

    Thanks Rohan, that's great.

    Cheers mate.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.