Diff Nav on home page
brandofamily
Registered Users Posts: 2,013 Major grins
How can I EASILY have one nav bar on my homepage and a different one on the rest of the site?
In OLD SM I could hide the div then make it visible on homepage only... how do I do this in NEW SM?
In OLD SM I could hide the div then make it visible on homepage only... how do I do this in NEW SM?
0
Comments
My Website index | My Blog
I tried
That will hide the one on all but the home page, but I have not worked it out further.
The hompage nav will be very simple, but the other nav will be quite detailed and I do not want to have to produce it multiple time.
The code I came up with will hide and all site wide navs except for the homepage.
I hoped to put 2 on the site, then hide the more complicated one on the homepage. Unfortunately the code I came up with hides both site wide them shows both on homepage.
This makes no sense, you'd think something created once and shown site wide would have the same ID everywhere.
My Website index | My Blog
Even 2 on the homepage show have different div or class names.
My Website index | My Blog
Well if you can give me the way to determine the names of each I can hide Nav #1 only one the home page, hide Nav #2 site wide, then use code to display Nav #2 on only the home page.
to use the yellow. Seems each page has a different one of these.
<body class="sm-user-pro sm-user-loggedin sm-user-owner sm-page sm-page-node sm-page-node-zsB4B sm-page-home">
Then way down for the menu ID's and names.
You also could right click the menu to view the element.
My Website index | My Blog
I thought I had a break thru, but the code changes every time you load the page.
Thanks,
Andy
2 menu content blocks
I want one on homepage only
and a 2nd for the rest of the site.
I have not gotten far. I know I can add one to homepage only. I am not sure how to EASILY add the 2nd to all the other pages.
Just as an example, I did this in an HTML block in Entire Site (right under my Menu content block, I copied the HTML generated by the 2nd Menu I was originally playing with and just removed the ID's). ** note that the Contact Me link actually doesn't work in my example, not completely sure why nor do I really care.
And then in my Theme's CSS (didn't work in the CSS of the HTML block)... The menu doesn't have a great hook, but I think the class "horizontal" might work (it did for me).
The simple homepage version is really not the problem. I can add a menu to just the home page using the NEW SM interface.
It's the 2nd menu. If I add that to the entire site, like I want to, I then have to hide it on the home page. Do such will hide all the menus on the homepage... using the code I came up with.
It's not ideal - there may be extra maintenance time required down the road if you change the formatting or layout of your navigation - but it should work, as demonstrated on my site (using background colors instead of display: nones).
What links do you plan to have on your simple version? I am a little concerned that my idea won't support the native Contact Me popup, but I think all other links should work ok.
Andy
OK. I have am html menu on the homepage only.
I also placed a 2nd menu using the SM interface.
Now I cannot figure out how to hide that 2nd menu on the home page. Any ideas.
Sierra theme
Got it.
a.s.
I would think that any created site wide widget would carry a specific ID or at least a static class name.
Basically referring the a menu and banner.
I have not found a way to place a different banner for say my family folder/category and have it flow
down to all below.
My Website index | My Blog
Not even close. I didn't get my site migrated during the 1st wave and had to get backdoored into the migration.
I just started on my site. Been doing the others 1st and learning along the way.
I did not want to start customizing pages until I got this nav thing figured out as I am not sure what will show up on the customized pages after they are taken off the regular gallery grid so to speak.
Will site wide changes show up?
I haven't played with much more than Custom Pages, but yeah, it appears the Entire Site stuff flows down to custom pages, folders, etc... Unless you have specifically overridden the thing you are changing. The Independent Homepage setting is the only thing that really breaks out of the mold (just the homepage of course, as that's what it's made for)...
a.s.