View Full Version : Adding text to a page?
kygarden
Aug-09-2007, 04:23 AM
I have what I think is a fairly simply project, but I can't find a way to do it. I'd like to add text to a page that gives a brief description of galleries under subcategories. Basically, once you click the main category and you get to a page that has thumbnails of galleries in subcategories, that's where I'd like to add text to the page - like right above where all the thumbnails show up. Is there a FAQ out there for doing something like that? I did a search and didn't see what I was looking for - or it was not obvious to me what it was if there is such a FAQ out there.
Thanks
Allen
Aug-09-2007, 10:14 AM
I have what I think is a fairly simply project, but I can't find a way to do it. I'd like to add text to a page that gives a brief description of galleries under subcategories. Basically, once you click the main category and you get to a page that has thumbnails of galleries in subcategories, that's where I'd like to add text to the page - like right above where all the thumbnails show up. Is there a FAQ out there for doing something like that? I did a search and didn't see what I was looking for - or it was not obvious to me what it was if there is such a FAQ out there.
Thanks
Have a link to your site?
kygarden
Aug-09-2007, 04:20 PM
Sure, sorry. I used to have it in my signature but I've been playing around with trying to find a new name I like for the site so I've changed it a few times in the past few days. Anyway, here's the page I'd like to add some text above the list of galleries if possible :)
http://click2prints.smugmug.com/Stock%20Photos%20For%20Sale
Allen
Aug-09-2007, 05:28 PM
Sure, sorry. I used to have it in my signature but I've been playing around with trying to find a new name I like for the site so I've changed it a few times in the past few days. Anyway, here's the page I'd like to add some text above the list of galleries if possible :)
http://click2prints.smugmug.com/Stock%20Photos%20For%20Sale
This is what I came up with. Got it to show on the cat and sub-cat page
and not the galleries. What pages do you want it on?
Add this below your banner in your header code.
<div id="StockPhotoText">
some text above the list of galleries
</div>
Add this to your CSS
#StockPhotoText {display: none;}
.category_Stock_Photos_For_Sale
#StockPhotoText {
display: block !important;
text-align:center;
color: red;
font-size: 150%;
font-family: Comic Sans MS, verdana, tahoma;
}
.galleryPage #StockPhotoText,
#StockPhotoText {display: none !important;}
kygarden
Aug-10-2007, 02:15 AM
Thanks :)
For now I'd just like it on the page that has all the stock photo sub-categories. And I'm not sure what I want to put as far as the text goes but I can certainly test it to see if it's working right.
I just tried it and it works. Now I need to work on the size and color of the text. thanks!
kygarden
Aug-10-2007, 07:22 AM
FYI - I renamed a category and broke this (even after correcting the code to reflect the new category name). I discovered it doesn't like a & (ampersand) in the category name. I had to spell out AND and get rid of the &. Just thought that was curious :)
Allen
Aug-10-2007, 07:31 AM
FYI - I renamed a category and broke this (even after correcting the code to reflect the new category name). I discovered it doesn't like a & (ampersand) in the category name. I had to spell out AND and get rid of the &. Just thought that was curious :)
Try this, use two underlines for the &.
Stock Photos And Prints For Sale
Stock Photos & Prints For Sale
Stock_Photos__Prints_For_Sale
kygarden
Aug-10-2007, 07:39 AM
Thanks :) I'll give it a shot on the next one I do - if I need to. It's ok to spell out the word and for right now. Not that big a deal :)
If you're bored and want something to do...I've got the search bar on my pages now but I noticed it's RIGHT under the text I'm going to put on there. Is there an easy way to push the search bar down a line or two? I tried blank lines and also extra lines with nothing but a . in them to no effect. Search bar stayed put. No big deal, but it would be nice to move it down a tad.
Allen
Aug-10-2007, 07:43 AM
Thanks :) I'll give it a shot on the next one I do - if I need to. It's ok to spell out the word and for right now. Not that big a deal :)
If you're bored and want something to do...I've got the search bar on my pages now but I noticed it's RIGHT under the text I'm going to put on there. Is there an easy way to push the search bar down a line or two? I tried blank lines and also extra lines with nothing but a . in them to no effect. Search bar stayed put. No big deal, but it would be nice to move it down a tad.
You could just add a break.
<div id="StockPhotoText">
Still under construction...
</div>
<br />
kygarden
Aug-10-2007, 07:57 AM
Bingo. That did it. Thanks. I'm getting the hang of it. Once I have some good examples I'll be all set. I already used your first example of adding text to a category to add text to another category :)
kygarden
Aug-10-2007, 08:12 AM
Ok...one last thing on the text...LOL
Do you know how I can limit the space the text appears in to be only as wide as my banner and galleries below the text? If I type a lot, it ends up going to the left and right of the banner and galleries (wider), so it looks a little odd.
kygarden
Aug-10-2007, 08:29 AM
hey look at me...I figured it out...LOL I used an example from my banner image. I plopped in the width and margin parameter to fix it :)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.