Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Change Colors Of Fonts In H1, H2, H3 Etc. Tags Throughout The Site.

Question

Posted · Report post

I would like to find a way to change the color of all the h1 to blue or some other color on a sitewide basis.

I can change the font, font weight etc in the Typography but I can see no way to change the color. I am new to CSS etc so I get lost easily.

Any ideas?

The sites I'm working on now are www.columbusta.com and www.uvbnb.com

Chris

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

Okay, here's an example CSS

You presently have


h2 {

    font-size: 28px;

}

If you go to Dashboard > PageLines > Site Options > Custom Code, the first data field is CSS Rules. You will see body {} Right below that line, add

h2 {

    font-size: 38px;

}

You can change the number to the size you prefer. That example increases the font by 10px. I tested it here: http://www.columbusta.com/ Now, when using Firebug, on the left you'll see an icon with a little rectangle with a blue arrow pointing into it. Click that, then click on the element you want to inspect. That allows you to see the specific CSS in the right hand box for that element. There's a little menu of related elements above the HTML code. If you see H1 or H2 click that and then the related CSS for that bit will appear on the right. If you see similar text, you'll be able to test it to resize. Now about color. This is your default:

h1, h2, h3, h4, h5, h6, a.site-title, .entry-title a {

    color: #000000;

}

If you want all the sizes the same color as well as site and entry title, just change that next line color: #000000; to a color code you want. See http://www.colorpicker.com If you only want a few of those sizes to be blue, then edit the code and paste it in the next line on your CSS like this:

h1, h2, h3, h4 {

    color: #1B28E0;

}

By the way, that's a vibrant, deep blue.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks Rob! :)

I really appreciate you taking the time to show me how to do this. I guess, I'm going to have to become a Firefox/bug user.

Your support is highly valued!

Now back to my website!

Chris

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

I did find the Text Headers Colors that makes all headers the same color in the Color Control Section.

Can I make h1, H2 one color and h3, h4 another?

Share this post


Link to post
Share on other sites

Posted · Report post

Chris,

The most effective and guaranteed way of accomplishing this is with CSS. This link will help you learn a good bit about CSS: http://www.w3schools.com/css/

Yes, you can have h1 and h2 one color, and h3 and h4 in another, or individual colors for each if you wanted.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Rob

Thanks for the quick reply. I am concerened about modifying CSS because the files may get overwritten during an upgrade of other change? Is there a way add the CSS without this risk and how do I determine where?

The sites I'm working on now are www.columbusta.com and www.uvbnb.com

I find the size of the h1/h2 tags to be quite large and I should use them for SEO purposes. Where are these sizes kept/created?

Thanks

Chris Cane (BULLDG)

a Real CSS Newbie!

Share this post


Link to post
Share on other sites

Posted · Report post

Chris,

If you use Firebug and find the CSS you want to change, paste the modified code to Dashboard > PageLines > Site Options > Custom Code in the CSS Rules area.

This writes the CSS dynamically to the database. If an update is made to PageLines or plugins, the CSS then remains constant.

Additionally, we provide the PageLines Customize plugin, which has a stylesheet that also remains outside the update process. Finally, if you're using a child theme, there's a stylesheet in that which is also immune to updates.

Share this post


Link to post
Share on other sites

Posted · Report post

I can see that I am not equipped to do this and make these types of changes. I have been a computer hobbyist sinc 1977 and working on websites since 1997 and I now lost. You guys have created a great tool in Pagelines but for a non-geek like me, it creates many challenges. I would have thought that defining the h1, h2 tags etc would have been done within the theme as it is in many other WP themes I've used.

I am going to have to get some help somewhere.

This is tough sledding for an old fart like me.

Firebug gave the attached code/file for the line I selected "UVB Narrowband or UVB NB is used in the treatment of:" on the home page of www.uvbnb.com

It is beyond me

1) How to edit.

2) How much to put in the "Custom Code" CSS area.

I'm going to go have a glass of boubon and drown my sorrows.

Chris Cane

firebug_code.txt

Share this post


Link to post
Share on other sites