View Full Version : Adding text to category page
scritch
Feb-24-2008, 01:08 PM
Hi all,
I have an external link to a category page containing a couple of galleries. Since visitors are not starting on my homepage, I'd like to have some "hello" text on the category page. Is there a way to do this?
Thanks.
Allen
Feb-24-2008, 08:24 PM
Hi all,
I have an external link to a category page containing a couple of galleries. Since visitors are not starting on my homepage, I'd like to have some "hello" text on the category page. Is there a way to do this?
Thanks.
This seems to work.
Add this to your header under your nav if you have one.
<div id="catTextBox">
blab blab blab blab blab blab blab
blab blab blab blab blab blab blab
blab blab blab blab blab blab blab
blab blab blab blab blab blab blab
blab blab blab blab blab blab blab
</div>
Add this to our CSS. Replace the red with your category name. I tried to set
it so it's only on the category page and not sub-cats or galleries.
#catTextBox {display: none;}
.category.category_CATEGORY #catTextBox {
display: block;
margin: 0 auto;
padding: 5px;
width: 650px;
color: #444;
background: #ccc;
border: 2px solid red;
font-family: Comic Sans MS, verdana;
font-size: 110%;
}
.category.category_CATEGORY.subcategory #catTextBox {display: none;}
mbellot
Feb-25-2008, 07:45 AM
Allen,
Nice trick and it helped solve a problem I'm having.
Naturally it created a new one...
I have the following:
In CSS
#subcatText {display: none;}
.category.category_CATEGORY.subcategory_SUBCAT #subcatText {
display: block;
margin: 0 auto;
padding: 5px;
width: 650px;
font-size: 125%;
}
and in my HEADER
<div="subcatText">
blah blah
</div>
My problem (or may be Bill Gates' problem) is that it works the way I want in FireFox (logged in or out), the text is only displayed on the subcategory page. But in IE 6 its also displayed at the top of every gallery within the subcategory.
Annoying to say the least...
Any thought on how to easily kill it from the galleries? I have ~ 30 galleries that I would have to modify, so a manual enumeration would not be fun...
Allen
Feb-25-2008, 08:04 AM
Allen,
Nice trick and it helped solve a problem I'm having.
Naturally it created a new one...
I have the following:
In CSS
#subcatText {display: none;}
.category.category_CATEGORY.subcategory_SUBCAT #subcatText {
display: block;
margin: 0 auto;
padding: 5px;
width: 650px;
font-size: 125%;
}
and in my HEADER
<div="subcatText">
blah blah
</div>
My problem (or may be Bill Gates' problem) is that it works the way I want in FireFox (logged in or out), the text is only displayed on the subcategory page. But in IE 6 its also displayed at the top of every gallery within the subcategory.
Annoying to say the least...
Any thought on how to easily kill it from the galleries? I have ~ 30 galleries that I would have to modify, so a manual enumeration would not be fun...
Have a link to your site and we'll check.
What type pages do you want it to show. category, sub-cat, gallery?
mbellot
Feb-25-2008, 10:10 AM
Have a link to your site and we'll check.
What type pages do you want it to show. category, sub-cat, gallery?
Just the "main" subcategory page. So using Home->Hidden Cat->Hidden SubCat->galleries as the basic structure it should only appear on the one page "Hidden SubCat", not on the Hidden Cat above or any of the galleries below.
FireFox works exactly that way, IE 6 does not.
Its for an unlisted/hidden category and subcategory (using those hacks), so I'd prefer not to post a link out in the open and PMs are discouraged.
Thanks!
scritch
Feb-25-2008, 02:28 PM
Thank you thank you thank you! That was seamless, thanks to great instructions and code.
MUCH appreciated.
vBulletin v3.5.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.