Menu Item
GregStarnesPhotography
Registered Users Posts: 40 Big grins
How do I make a menu item appear only when I am logged in. I would like to have the Owner Menu and its sub galleries visible only when logged in. Is there a way to do this???
Greg
www.GregStarnesPhotography.com
Greg
www.GregStarnesPhotography.com
0
Comments
.sm-page-widget-4765459 .sm-page-widget-nav-toplink:last-child {display:none !important;}
.sm-page-widget-4765459 .sm-user-owner .sm-page-widget-nav-toplink:last-child {display:block !important;}
Edit: just noticed you have two horz menus on page, need widget class to specify which one.
My Website index | My Blog
That code turns off the Owner Meny when I an both logged in and logged out. Isn't there a .logged in property or something I can use. That's what it was on my legacy smugmug site, but I can't view the code anymore.
.sm-user-owner.sm-user-loggedin .sm-page-widget-4765459 .sm-page-widget-nav-toplink:last-child {display:block !important;}
Try with and without a space between the first two.
.sm-user-owner .sm-user-loggedin
This is from your site and I'm logged in to my site. So loggedin shows but owner does not.
<body id="yui_3_8_0_1_1395291327901_791" class="sm-user-pro sm-user-loggedin sm-page sm-page-node
sm-page-node-z7J4N sm-page-home sm-page-hasbackground sm-page-initialized" style="">
My Website index | My Blog
My Website index | My Blog
Yay, I got it to work!!! Thank you!!
How did you find the widget number
I personally use the 'Firebug' tool, but there are other web tools to "see" what's going behind the hood, so to speak.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I am using firebug, but don't know which tool to use to display it
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
i am looking to find this 4765459 widget number on my site and I can't seem to do it. Its associated with my "Owner" menu when I am logged in. The code works, but I am trying to figure it out so I can learn a little.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Its the last item on my menu (navbar)
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I tested this on my site using my widget number. It should work on your site.
My Website index | My Blog