• Resolved PhilaPhans

    (@philaphans)


    Hi folks,

    I’ve tried to search for this subject matter, but to no avail. I’ve got 3.0.1 set up and all’s good. But, I’ve got 17 sub-directories, I’ll be adding more and they all tie in together. Needless to say that I’m going to have an extensive menu set up, which needs to include links to forums, as well.

    Is there some mechanism that I can’t find for creating a menu that will apply itself to all of my subdirectories? I could hard code, which is the obvious fix, but it would seem that there’s gotta be some way to make it more automated. Something in WP? A plug in? Am I missing something?

    Your help on this would be greatly appreciated. I’m sitting here poised to just buckle down and hammer out some menus, but would love some GOOD news. Please?

    Thanks,

    Ron

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Alas, no ??

    Since sub-sites (be they subdomains, multi-domains or subfolders) are all intended to be separate SITES, there was no aim for a global menu setup. This is a frequently asked for plugin though. Someone smart will probably come up with it sooner or later.

    just before the nav bar code put

    <?php switch_to_blog(1); ?>

    right after the navbar code put

    <?php restore_current_blog(); ?>

    then it will always show the menu from Blog #1.

    Thread Starter PhilaPhans

    (@philaphans)

    Thanks for the replies. Sorry, Andrea, got caught up in too much other stuff. I appreciate the answers. Now, I’m still figuring out WP and where everything is. Are you saying use that in each of the sub-directories and which php file has the nav bar code? Please and Thank You.

    Thread Starter PhilaPhans

    (@philaphans)

    I thought it should be in the style.css of the theme. I’m using blognews and this is what the style.css has in it.

    /*
    Theme Name: blognews
    Theme URI: https://www.gabfirethemes.com/
    Description: BlogNews is a unique theme which can be used for online news, magazine and even for product oriented websites.
    See all Gabfire Themes
    Author: Mehmet Ozekinci
    Author URI: https://www.gabfirethemes.com/
    Version: V1.0.2 – Framework 1.0
    */

    /* RESET */
    html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:”;content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}a {text-decoration:none;}.marginbottom {margin-bottom:4px !important;}.block{display:block;margin-bottom:4px;}.t_center{text-align:center;display:block;}.clear{clear:both;}.block {display:block}.margintop {margin-top:7px;}.paddingtop {padding-top:7px;}.bordernone {border:none}

    /* CALENDAR */
    #calendar_wrap table#wp-calendar {border:1px solid #ccc;margin:0 auto;}
    #calendar_wrap tbody .pad{background-color:#ddd;}
    #calendar_wrap table#wp-calendar tbody tr td a {font-weight:bold;font-size:16px;font-family:arial, verdana, sans-serif;color:#3c4a55;}
    #calendar_wrap thead tr th {width:30px;height:20px;text-align:center;vertical-align:middle;background-color:#cdd5de;border:1px solid #ccc;}
    #calendar_wrap tbody tr td {width:30px;height:20px;text-align:center;vertical-align:middle;border:1px solid #ccc;}
    #calendar_wrap tfoot tr td a, #calendar_wrap tfoot tr td a:link, #calendar_wrap tfoot tr td a:visited, #calendar_wrap tfoot tr td a:hover, #calendar_wrap tfoot tr td a:active {font-weight:bold;font-size:18px;height:20px;font-family:garamond, bookman old style, times new roman, arial narrow, arial;color:#5b7085;}
    #calendar_wrap tfoot tr td#prev {width:58px;height:20px;text-align:left;vertical-align:middle;background-color:#fff;}
    #calendar_wrap tfoot tr td#next {width:58px;height:20px;text-align:right;vertical-align:middle;background-color:#fff;}

    /* **************************** See /styles folder to format site layout ******************************* */

    Uh, no. I’m saying in the theme file of the one theme you plan on using for all sites. usually wp-content/themes/your-theme-name/header.php.

    Thread Starter PhilaPhans

    (@philaphans)

    Gotcha. That’s great. It’s amazing trying to figure out what’s real, what’s virtual, whether it’s in WP files or theme files. Stuff is everywhere.

    As an aside, one thing I’ve tried to do is use a less complicated theme for “sub-blogs”, sort of secondary blogs from my main site, as I’m using WP3 for content management with the blogs as offshoots. Will your patch work in that theme, in that header.php or will I have to manually add those menus?

    Put the code I gave you in the theme used on the sub site.

    Are you just diving into the multisite feature, or wordpress in general? If the latter, it’s the deep end of the pool. ??

    Thread Starter PhilaPhans

    (@philaphans)

    Ok.

    Actually, Andrea, it’s both. I’m diving into WP by going into multi-site straight away. Never used it before. I think I’ve managed quite well, but it’s these little sticking points that can drive you insane. You know you just need to get on the other side of it.

    In addition to WP/Multi-site, I decided to throw in learning and implementing a new forum software program to boot, going from vB to IP.Board. That’s been fun, too.

    I dream code. ??

    Thread Starter PhilaPhans

    (@philaphans)

    P.S. My 1st question was going to be about not having images show up on the sub-directories. That was a fun one, too, but I found that answer here, actually from you. So thanks for that one, too!

    Thread Starter PhilaPhans

    (@philaphans)

    Wrap patch around this? Nav Menu 1 is at the top of the page.

    <div id=”navcats”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Nav_Cats’) ) : ?>
    <?php /* NAV MENU 2 */
    if($bnews_options[‘ennav2’] == 1) {
    wp_nav_menu( array(‘theme_location’ => ‘Header_Category_Nav’, ‘container’ => false));
    } else { ?>

    <?php } ?>
    <?php endif; ?>
    </div>

    Thread Starter PhilaPhans

    (@philaphans)

    I tried it with the above, it worked perfectly Andrea. Perfect.

    Wow. Thanks so much for that. Tell me where to send the flowers.

    This one can be closed.

    Thread Starter PhilaPhans

    (@philaphans)

    Here ya go, Andrea

    https://philaphans.com/

    Your handy work on display. There’s more to be built into it, but that’s the core site.

    Two thumbs up. ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Menus for Sub-Directories’ is closed to new replies.