• Website being developed is test.lpcoalition.com. Customers will subscribe to a service in order to see Members Only pages. I want nearly all static pages, and not posts. I’d like certain pages to show in the primary horizontal navigation (under the header image) BEFORE logging in as a subscriber, and other pages to show in the navigation AFTER logging in as a subscriber. If I were writing the site from scratch, I’d have two header files, each with different lists for the navigation. How could I accomplish the same sort of thing in WordPress? I’m using the Twenty Ten theme and a child theme.

Viewing 7 replies - 16 through 22 (of 22 total)
  • sorry ,as i’ve not use this pastebin
    this is the link
    https://pastebin.com/k91had7z

    honesty i don’t know why it′s not working, are you sure you have sub-menus in the members menu? only those menus will appear when logged in, and when not logged in the primary menu will show

    hey , problem got resolved ….
    thanks for your help

    What was the problem?

    I’m glad it got resolved ??

    I’m having the same issue as “”
    I’m using WordPress Theme Responsive 1.4.9 and in the functions.php the code looks different then the twenty ten theme she’s using it looks like this..

    `register_nav_menus(array(
    ‘top-menu’ => __(‘Top Menu’, ‘responsive’),
    ‘header-menu’ => __(‘Header Menu’, ‘responsive’),
    ‘sub-header-menu’ => __(‘Sub-Header Menu’, ‘responsive’),
    ‘footer-menu’ => __(‘Footer Menu’, ‘responsive’)
    )
    );`

    What is the add/replace php code snippet for this theme to achieve hiding member only page links in the primary nav (in my case top menu/header menu). Please help and I’m at a total loss.

    Thanks

    Mike

    Sorry I forgot to post what my header.php code looks like for the Responsive theme 1.4.9

    <?php if (has_nav_menu('top-menu', 'responsive')) { ?>
    	        <?php wp_nav_menu(array(
    				    'container'       => '',
    					'menu_class'      => 'top-menu',
    					'theme_location'  => 'top-menu')
    					);
    				?>
            <?php } ?>

    I remember you gave two code snippets to replace one for functions.php and the other for header.php. Please help

    Please post your own topic.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Want Primary Navigation to Change on Members Only Pages’ is closed to new replies.