Adding the same menu to all galleries in one folder only?

guyguy Registered Users Posts: 191 Major grins

Hi, is there a way to add the same droip down menu to all galleries in one custom folder without having to rebuild it each time.
Example: I'd like to add this simple drop down menu (All Japan 2018 Galleries) to each gallery in this folder but nowhere else.
https://guy.smugmug.com/Travel/Japan/Japan-0918

Thanks

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited October 1, 2018

    It looks like, because the menu is in the body area you'll have to add it to every gallery/folder you want it in.

    Al - Just a volunteer here having fun
    My Website index | My Blog
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited October 1, 2018

    If you added it in the header area, CSS could be used to hide it everywhere and only show in the top 2018 Japan folder and flow down to sub-folder/galleries.
    It would be one menu widget that would show on multiple pages. It would show just above the breadcrumb.

    A quick example: Showing in top folder with flow down.

       /* hide Japan menu everywhere */
    .sm-page-widget-1590207 {display:none}
       /* show Japan menu on folder, Japan-0918,  and all sub-folders/galleries */
    .sm-page-node-HLZX2 .sm-page-widget-1590207,
    .sm-page-parentnode-HLZX2 .sm-page-widget-1590207 {display: block}
    

    BTW, the 1590207 widget number is an existing number, you will have a new one for the new menu in your header.

    Al - Just a volunteer here having fun
    My Website index | My Blog
  • guyguy Registered Users Posts: 191 Major grins

    Thanks Allen, I don't think I know enough to just follow your instructions but I'll play around with them & see if I can figure it out!

Sign In or Register to comment.