Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-02-2006, 12:13 AM
New Pligger
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Change color of main title

I can not seem to figure out where to change the color for the main title. The settings in style.css do not seem to do anything. Any ideas?
Reply With Quote
  #2 (permalink)  
Old 03-10-2006, 02:48 PM
New Pligger
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I am also having this problem. If anyone could enlighten me on this it would be mighty helpfull!
Reply With Quote
  #3 (permalink)  
Old 04-07-2006, 08:38 AM
New Pligger
 
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
solution

Quote:
Originally Posted by amphonic
I can not seem to figure out where to change the color for the main title. The settings in style.css do not seem to do anything. Any ideas?
Don't take this the wrong way but here's the long winded, teach-a-person-to-fish answer: Considering the HTML 4.01 specification points out that in-line, html color codes are deprecated, and that CSS should be used for all style related (color, size, etc) attributes to a web page, it's a safe guess that all the colour codes, font size, font colour, etc are specified in the Cascading Style Sheet or .css file being used by the site. Check your 'view source' for it's location, or go the long way round as I did:

While poking around to change the look from default, I used the Web Developer firefox extension to display all the attributes to images on the front page, and found that there was a file called 'header.gif' that was the background for the top-bar-header-area-thing. Cool.
Next I ran a command that you should get under your belt, perhaps write it on your monitor so you don't forget it:

grep -r {text searched} *

it will scan through all the folders (-r: recursive) and files therein (*), searching for the certain {text searched} that you're looking for. So, I ran the trusty old:

grep -r header.gif *

the output showed that 'header.gif' is referenced in the file:

templates/skidoo_too/css/skidoo_too.css

ANYWAYS the main title is an href link, h1 size. So learn a bit about how CSS works if you don't already, and find where H1 is specified (a couple different ways) in the css file. Next I would (and I actually will be,) find where the term 'masthead' may appear in the pligg code using your grep command above, then either remove your link from the title, or change the class of that specific link to whatever colours you may prefer. Clear as mud? you'll find it's in

templates/skidoo_too/body.tpl

referenced therein as:

$tpl_header.tpl.

i guess the template isn't set up right yet but if you want the really short answer you could look in

templates/skidoo_too/header.tpl

and instead of the default which is:

<h1><a href="$my_base_url{$my_pligg_base}">{#PLIGG_Visual _Name#}</a></h1>

(which uses variables changed in other files) you can change it to

<H2><font color="#72fa81">I like Dragons, Horses and Ligers</font><h2>

like I did.

But, considering my first paragraph above this would not be HTML 4.01 compliant.

One caution, don't get confused by the /css folder off of the root of the pligg install as I did! The css file there refers to a header.JPG! Thank goodness it wasn't also .gif, otherwise I'm sure i would have stubbed my toe on that one and cursed my way through this early, early Friday morning.

I couldn't sleep for a couple reasons, one of them being that I installed Pligg immediately before falling asleep last night. dreaming of being the next internet sensation with my site okthisislame.com

Happy coding and hope you'll stick with it! Let me know if i haven't been clear enough.

Cheers
Rhett Nye
okthisislame.com
www.rhettnye.org

Last edited by rhettnyedotorg; 04-07-2006 at 09:05 AM..
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change title in browser BillyC "yget" 1 06-21-2008 03:52 PM
Change page title only for story page - Google hadock General Help 10 05-31-2008 08:16 PM
How to change all pligg settings - title, tags, etc? smolus General Help 1 02-18-2008 12:32 PM
[SOLVED] how to change site title mkooo Modification Tutorials 2 06-28-2007 06:00 PM
Is there anyway to change the RSS feed title? keithkiss My Pligg Site 4 12-05-2006 04:51 AM


Search Engine Friendly URLs by vBSEO 3.2.0