PDA

View Full Version : confused about code for hiding things....


thenimirra
Dec-11-2007, 07:20 PM
I keep fiddling with the code to hide certain things on certain pages and the more I change things, the more I screw everything up! :scratch :cry

Here's what I would like:

On my Homepage:
display bio box only

on my Galleries:
display galleries only

on my Featured:
display
keywords
featured photos
featured galleries

picture-yourworld.com

Thank you!

Allen
Dec-11-2007, 07:30 PM
I keep fiddling with the code to hide certain things on certain pages and the more I change things, the more I screw everything up! :scratch :cry

Here's what I would like:

On my Homepage:
display bio box only

on my Galleries:
display galleries only

on my Featured:
display
keywords
featured photos
featured galleries

picture-yourworld.com

Thank you!
Perhaps if you had a featured page you could do this. You need to add another duplicate homepage like the galleries page.

Add the bold in the middle of this script in your footer.

<script>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featured"))
YD.addClass(document.body, "featured");

</script>

Now the link http://www.picture-yourworld.com/featured will work for the
featured gallery page.

Then the CSS can be tweaked to hide things on the different pages.

thenimirra
Dec-11-2007, 07:37 PM
that's what happened...I didn't add the page correctly. I put it on my nav bar but I didn't actually create the page! I'll try that now. Thanks as always Al....


It worked! Once I created the page the RIGHT way, I was able to fiddle with the CSS too!

Smooches Al!