Jump to content
Bulldog

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

Recommended Posts

Bulldog    0
Bulldog

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


Enjoying life in the suburbs fostering bulldogs, playing with computers and software and generally being a fool.

Chris Cane

chris@cane.com

Share this post


Link to post
Share on other sites
Bulldog    0
Bulldog

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?


Enjoying life in the suburbs fostering bulldogs, playing with computers and software and generally being a fool.

Chris Cane

chris@cane.com

Share this post


Link to post
Share on other sites
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Bulldog    0
Bulldog

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!


Enjoying life in the suburbs fostering bulldogs, playing with computers and software and generally being a fool.

Chris Cane

chris@cane.com

Share this post


Link to post
Share on other sites
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Bulldog    0
Bulldog

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


Enjoying life in the suburbs fostering bulldogs, playing with computers and software and generally being a fool.

Chris Cane

chris@cane.com

Share this post


Link to post
Share on other sites
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Bulldog    0
Bulldog

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


Enjoying life in the suburbs fostering bulldogs, playing with computers and software and generally being a fool.

Chris Cane

chris@cane.com

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • janpeeters
      By janpeeters+
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
    • hutruk
      By hutruk
      Hi!

      I am using the shortcodes for tabs, as described in the documentation.

      When I insert the following code:


      [pl_tabs][pl_tabtitlesection type="tabs"] [pl_tabtitle number="1"]Title 1[/pl_tabtitle] [pl_tabtitle number="2"]Title 2[/pl_tabtitle] [/pl_tabtitlesection] [pl_tabcontentsection] [pl_tabcontent active="yes" number="1"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [pl_tabcontent number="2"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [/pl_tabcontentsection] [/pl_tabs]

      I get a strange output (in the attachment).

      Any ideas?

      Thanks in advance!

    • MooiWeb
      By MooiWeb
      Hello,

      I would like to align my qtranslate with my breadcrumb so that the flags are on the same hight.
      I'm aware of putting a code in the custom css and tryed severall codes from your site but for now, no succes

      The site i'm working on is http://nieuw.vazdias.nl

      Thx,
      Edwin



×