View Full Version : two easy questions
dogwood
Oct-10-2009, 10:45 AM
How do I get rid of the "no galleries found" and other circled text showing up on my SM homepage (see screen shot below)? I want just the banner showing and have hidden all my galleries.
Also-- how do I hide that RSS feed button?
http://www.petespringer.net/photos/676071805_JmEqU-X3.jpg
My SM site url (if needed): http://petespringer.smugmug.com
denisegoldberg
Oct-10-2009, 11:18 AM
This CSS will remove the feed from your homepage:
.homepage #feedHelp {
display: none;
}
If you're planning to show your galleries on pages other than your homepage, the best thing to do is probably to set your "galleries" page to show on a different page. You will find the CSS and javascript that you need to do that in this tutorial - http://dgrin.smugmug.com/gallery/2160039, in the sections titled "The Galleries". If you don't want an overall galleries page to show for your visitors, that's fine - you can preface the code to display the galleries with .notLoggedIn - which will still let you see your categories/galleries when you are logged in.
If I misinterpreted your question (or I introduced confusion), please ask again.
--- Denise
dogwood
Oct-10-2009, 12:15 PM
Denise:
Thanks but I don't want a slideshow. Just want to get rid of that circled text so it doesn't show up on my homepage. That's it. Any way to get rid of that text without replacing it with a slideshow?
I've basically hidden all my galleries but I still want a very simple homepage to appear.
Hiding the RSS feed worked though-- so thanks for that.
petespringer.smugmug.com
SamirD
Oct-10-2009, 01:11 PM
I'm wanting to eliminate the same thing he does. Would the code look like this one or the second one? (block vs none)
.notLoggedIn #galleriesBox,
.notLoggedIn #categoriesBox,
.notLoggedIn #featuredBox {
display: block;
}
.notLoggedIn #galleriesBox,
.notLoggedIn #categoriesBox,
.notLoggedIn #featuredBox {
display: none;
}
dogwood
Oct-10-2009, 01:37 PM
Neither of these worked for me, SamirD :cry
I'm wanting to eliminate the same thing he does. Would the code look like this one or the second one? (block vs none)
.notLoggedIn #galleriesBox,
.notLoggedIn #categoriesBox,
.notLoggedIn #featuredBox {
display: block;
}
.notLoggedIn #galleriesBox,
.notLoggedIn #categoriesBox,
.notLoggedIn #featuredBox {
display: none;
}
SamirD
Oct-10-2009, 02:03 PM
That sucks. :cry
Try this:
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}But this may block all the galleries all the time. :dunno
SamirD
Oct-10-2009, 02:05 PM
For some background, I'm trying to do exactly the same thing as you. I don't want people trying a url like this one and hitting that message:
http://newpics.huntsvillecarscene.com/Events
denisegoldberg
Oct-10-2009, 02:07 PM
Thanks but I don't want a slideshow. Just want to get rid of that circled text so it doesn't show up on my homepage. That's it. Any way to get rid of that text without replacing it with a slideshow?
I've basically hidden all my galleries but I still want a very simple homepage to appear.
I understood that you didn't want a slideshow. That's why I specifically mentioned the sections of the tutorial titled "The Galleries. The code in that section of the tutorial I linked above sets up a second homepage and removes the galleries from your homepage. If you don't want the second homepage, try this. Add this to your CSS:
.homepage #bioBox,
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}
.loggedIn .homepage #galleriesBox,
.loggedIn .homepage #categoriesBox {
display: block;
}
.galleries #bioBox {
display: none;
}
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: none;
}
Add this to your bottom Javascript:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
This sets up a background galleries page, in the process removing the galleries from your homepage. I've included the .loggedIn code above to continue to show the galleries on your homepage while you are logged in so you can continue to edit your galleries.
--- Denise
denisegoldberg
Oct-10-2009, 02:12 PM
I sense that you're still not going to like the solution above. Here's code to just remove the message from your homepage:
.homepage .title,
.homepage p {
display: none;
}
If you still want access to your galleries when you are logged in, change it to this:
.notLoggedIn .homepage .title,
.notLoggedIn .homepage p {
display: none;
}
dogwood
Oct-10-2009, 05:37 PM
I sense that you're still not going to like the solution above. [/code] If you still want access to your galleries when you are logged in, change it to this:
.notLoggedIn .homepage .title,
.notLoggedIn .homepage p {
display: none;
}
You have extraordinary senses, Denise :D
This code did the trick for me. Thank you!
SamirD
Oct-11-2009, 08:53 AM
You have extraordinary senses, Denise :D
This code did the trick for me. Thank you!So just removed the "no galleries" message in your first post? :scratch If it did, I'll add it to my css as well.
denisegoldberg
Oct-11-2009, 02:20 PM
So just removed the "no galleries" message in your first post? :scratch If it did, I'll add it to my css as well.
Unfortunately, I wasn't able to get that code to work for your Events category. Maybe you can find the magic though. I tried with the category name (category_Events) specified instead of .homepage.
If you get it to work, please let me know what I missed!
--- Denise
SamirD
Oct-11-2009, 09:00 PM
Unfortunately, I wasn't able to get that code to work for your Events category. Maybe you can find the magic though. I tried with the category name (category_Events) specified instead of .homepage.
If you get it to work, please let me know what I missed!
--- DeniseI'm not concerned about getting rid of it on just that category, but across my entire site. Do you know of any code that could do that?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.