• I’m creating a training site which will include lots of free video training, no membership required.

    For example, I might include training on WordPress, then training on Blogging, Marketing, SEO etc. I’d also have a blog on the site.

    What I’d like to do is use the theme OptimizePress to deliver the video training, but here’s my issue…

    If someone were to click to view the WordPress training (just an example), then I want the horizontal menu to show, say WordPress 101, WordPress 201, 301, etc. But then if they clicked from the sidebar to view the SEO training, then the horizontal menu would read SEO 101, 201, 301, etc.

    I was thinking WP multisite but now I’m thinking this might be best accomplished with plugins.

    As for the blog, it would not use the OptmizePress theme; more like StudioPress or something.

    Any suggestions?

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter John H

    (@wpbloghost)

    Not been successful in toying with it and searching online. Anyone have any ideas?

    Should I just install multiple installs of WordPress in each directory and then is there a plugin where I can do a multiple WordPress install combined search?

    Thanks

    You can hard code menus in the nav area of your header, you have to remove the code which creates the dynamic menu.

    this is a long thread where two other members and myself struggled with not only adding multiple menus, but styling each differently. It works.

    here’s the basic idea, 2 condtional menus:

    replace this:

    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

    With:

    <div id="access">
    
    <?php if (is_page('page-slug')) { ?>
    
    <ul>
    <li class="current-menu-item-red">
    <a href="https://www.yoursite.com">home</a>
    <li class="green">
    <a href="https://www.yoursite.com/about_us">about us</a>
    <li class="blue"><a href="https://www.yoursite.com/contact_us">contact</a>
    </ul>
    <?php }?>
    
    <?php if (is_page('page-slug')) { ?>
    
    <ul>
    <li class="current-menu-item-red">
    <a href="https://www.yoursite.com">home</a>
    <li class="green"><a href="https://www.yoursite.com/about_us">some-page</a>
    <li class="blue"><a href="https://www.yoursite.com/contact_us">some-other-page</a>
    </ul>
    <?php }?>
    
    </div>

    note use of conditionals to specify which of the 2 pages show which menu.

    do you mean a menu like

    https://pwarch.com.au/

    a horizontal submenu?

    yes, seems that woud be easier and accomplsh the same.

    for any sort of sub menu stuff.. better to stick with your back end functionality and implement something like superfish to do all the hard work for you..

    similarly plenty of cool css tricks and tips for nested menus at listamatic2

    ??

    Thread Starter John H

    (@wpbloghost)

    @deepbevel – cool stuff. I will look into that if I don’t find the answer haxxxton mentioned.

    @haxxxton – That site’s menu style wasn’t what I had in mind, but I like it a lot and definitely could use that. So superfish or listamatic2 would be the direction to investigate to get those menus then? It would be implemented on OptimizePress.

    Thanks guys. I really appreciate the help.

    here’s a way to get different wp custom menus without having to hard code the links.

    Thread Starter John H

    (@wpbloghost)

    Nice! Thank you. I’ll give it a try.

    this code was in my header:

    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

    so I did this:

    <?php if (is_page('page-one')) { ?>
    <?php wp_nav_menu( array( 'container_class' => 'menu-header','menu' => 'Custom 1', 'theme_location' => 'primary' ) ); ?>
    <?php }?>

    I added the page-condtional, and also added:

    'menu' => 'Custom 1',

    to the array, Custom one is the name of my custom menu.

    it works!

    Thread Starter John H

    (@wpbloghost)

    Cool. Do you have a link where I can see it in action?

    here I have a different menu for the page “test”

    code looks like this:

    <?php if (is_page('test')) { ?>
    <?php wp_nav_menu( array( 'container_class' => 'menu-header','menu' => 'Custom 1', 'theme_location' => 'primary' ) ); ?>
    
    <?php } else{ ?>
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    <?php }  ?>

    currntyly trying to get it to show 2 at once, one below the other.

    blah, sometimes I can’t see what I type. Anyway I gave up trying to get 2 menus but I managed to locate adapt some of the style elements
    for the custom menu, while leaving the default as is. It’s been the most difficult css wrangle I’ve attempted, but maybe i’ll learn something. So far I can change the nav bar and link colors anyway.
    If you need to do anything like this i may be able to help some, but I have a feeling I’m doing it the hard way, as ussual.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Suggestions on creating a site which displays different menus’ is closed to new replies.