• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Different menu for each Gallery.

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Jun-12-2012, 04:35 PM
#1
ADWheeler is offline ADWheeler OP
Big grins
Different menu for each Gallery.
A while back you folks helped me get my smugmug page dialed in...thank you!! You guys rock!

I am growing now...and I have a special blog that is separate from my main site. As not to confuse customers, I would like to have my blog point to a gallery (got that working) but, I would like that gallery to have a menu designed like my blog.

My blog and my main site share the same basic template. Logo difference, and menu items difference. Is it possible to have two different menus for two different galleries on one account? If so, can someone briefly point me in the right direction to do the customization?

Here is my main site... http://adwheelerphotography.com If you click the galleries menu, it will bring you to my current menu on smugmug.

Here is my blog site... http://TheArtOfDecay.com Here you can see the subtle differences. Please let me know if this makes sense to you.
Old Jun-12-2012, 07:55 PM
#2
Smug Eric is offline Smug Eric
Smug Hero
Smug Eric's Avatar
Yes you can have two different menu bars. So you have right now that <div class="menu"> for your nav.

You would then create a menu2 or menuB or something like that. There you would create the second nav bar including adding the css for #menu2 and all the html in the Custom Header box for <div class="menu2">.

Then in your CSS you would add a rule to show and hide them in the proper locations. Say you wanted the original menu to show everywhere but in your wildlife non-limited gallery. In that gallery you want the menu2 to show. So the CSS would look like this:

/* hides the original menu in that gallery */
.gallery_22447814 .menu {
display: none;
}

/* hides the second menu on all other pages */
.menu2 {
display: none;
}

/* shows the second menu for that single gallery */
.gallery_22447814 .menu2 {
display: block;
}


Make sense?
__________________
Eric
Support Hero and Customeister
http://www.smugmug.com/help
Old Jun-12-2012, 08:47 PM
#3
ADWheeler is offline ADWheeler OP
Big grins
Yes Eric, it does actually. I will get to coding and code copying and see if I can get it to go....stay tuned and thanks once again!
Old Jun-12-2012, 09:19 PM
#4
ADWheeler is offline ADWheeler OP
Big grins
Eric, I have most of the code done except the CSS rules...

How do I get the MENU2 on just this page:

http://adwheeler.smugmug.com/TheArtofDecay

And of course the subcats under that? I don't see a # and have no idea what code to use for the rule.
Old Jun-12-2012, 10:20 PM
#5
ADWheeler is offline ADWheeler OP
Big grins
Okay, I think what I need is a different menu for two categories.....
Old Jun-13-2012, 06:03 AM
#6
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Because your menus are so similar and can use one set of CSS (.menu) I'd use classes to display the differences.

<li class="menu1"><a href="http://limited.adwheelerphotography.com" title="">Limited Prints</a></li>
<li class="menu2"><a href="http://limited.adwheelerphotography.com" title="">Other Limited Prints</a></li>

Use CSS to define what class shows on pages or categories.
.menu1 would be the default everywhere.

.menu2 {display:none;}
.gallery_12345678 .menu2 {display:block;}
.gallery_12345678 .menu1 {display:none;}
.category_Nature .menu2 {display:block;}
.category_Nature .menu1 {display:none;}
Old Jun-13-2012, 07:02 AM
#7
ADWheeler is offline ADWheeler OP
Big grins
Thanks... I think I have it..
Old Jun-13-2012, 07:30 AM
#8
ADWheeler is offline ADWheeler OP
Big grins
And I need a new logo for each page. Is that .logo?
Old Jun-13-2012, 11:27 AM
#9
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by ADWheeler View Post
And I need a new logo for each page. Is that .logo?
This is what ECZ created hidden in your CSS
Code:
#customLogo { background-color: transparent; background-image: url(http://adwheeler.smugmug.com/photos/i-pzst2Tp/0/O/i-pzst2Tp.png); background-repeat: no-repeat; background-position: top center; }
You should be able to change to a different photo for specific galleries by adding this to your CSS.
Code:
.gallery_1234566 #customLogo { background-color: transparent; background-image: url(http://adwheeler.smugmug.com/photos/i-pzst2Tp/0/O/i-pzst2Tp.png); background-repeat: no-repeat; background-position: top center; }
Old Jun-13-2012, 01:03 PM
#10
ADWheeler is offline ADWheeler OP
Big grins
Nice Allen, I will give it a shot. Are you using inspect element in Firefox to grab this info?
Old Jun-13-2012, 05:14 PM
#11
ADWheeler is offline ADWheeler OP
Big grins
Okay....got it all...and it is working.. one last request....how can I also get different backgrounds that do not scroll per gallery. I have searched the code but I have no idea what tags do what... sorry.. I am learning from everything you are helping me with though.
Old Jun-13-2012, 06:47 PM
#12
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by ADWheeler View Post
Okay....got it all...and it is working.. one last request....how can I also get different backgrounds that do not scroll per gallery. I have searched the code but I have no idea what tags do what... sorry.. I am learning from everything you are helping me with though.
Have no idea what you mean by "do not scroll per gallery".
Old Jun-13-2012, 07:36 PM
#13
ADWheeler is offline ADWheeler OP
Big grins
Sorry.. A different background photo for each category... (I only have 2)

And I would like the background to be fixed and not scroll with the page...
Old Jun-14-2012, 01:23 PM
#14
Smug Eric is offline Smug Eric
Smug Hero
Smug Eric's Avatar
You can set the background with a line like this for each category in your CSS. With the category name in the first line and a link to the image in the code:

.category_XXXXXX body {
background-image: url("/photos/XXXXXX_YYYYY-O.jpg");
}
__________________
Eric
Support Hero and Customeister
http://www.smugmug.com/help
Old Jun-20-2012, 08:48 PM
#15
ADWheeler is offline ADWheeler OP
Big grins
Thanks Eric!
Old Jun-20-2012, 09:10 PM
#16
ADWheeler is offline ADWheeler OP
Big grins
premature celebration....not working..
Old Jun-21-2012, 07:32 PM
#17
ADWheeler is offline ADWheeler OP
Big grins
Any ideas why? http://adwheeler.smugmug.com/galleries
Old Jun-21-2012, 08:09 PM
#18
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by ADWheeler View Post
Try it this way.

body.category_Non-Limited_Prints {background-image: url("/photos/i-GHCxM58/0/X3/DSC09011And13more-Edit-Edit-X3.jpg");}
Tell The World!  
Tags
designs , gallery , menu , multiple
Similar Threads Thread Starter Forum Replies Last Post
drop down nav bar Cujo SmugMug Customization 1 Feb-04-2010 11:03 PM
Nav-Bar help blackburnian227 SmugMug Customization 16 Feb-02-2010 12:03 PM
Remove gallery style pulldown menu Dancing monk SmugMug Customization 2 May-07-2009 06:52 AM
Is it possible to have galleries AND categories on the home page? jfriend SmugMug Customization 3 Jun-27-2008 05:43 AM
Semi-automated gallery menu with thumbs technocraft SmugMug APIs, Hacks & Tricks 0 Feb-11-2008 07:03 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump