Jump to content


Photo
- - - - -

Reducing Font Size in H1 Tag


  • Please log in to reply
17 replies to this topic

#1 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 21 April 2011 - 02:24 PM

Currently I am using following code in my custom code to reduce the font size.

.post-title h2 a{font-size:20px}


But its not SEO-friendly to use H2 tag instead of H1.

What should i put there to keep the same font size but in H1 tag?

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 21 April 2011 - 08:19 PM

just increase the px value. no?

#3 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 22 April 2011 - 01:14 AM

If I change the H2 to H1 on same code, Text size becomes larger. And after that changing font-size px value doesnt reflect any changes. :(

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 22 April 2011 - 02:47 AM

You should add this instead:

Please Login or Register to see this Hidden Content


Change the px size accordingly.

#5 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 22 April 2011 - 04:10 PM

But your code didnt use h1 tag......

#6 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 22 April 2011 - 07:13 PM

You can't use CSS to change h2 tags to h1 tags on your page.
You either have to hide the title tag with CSS (

Please Login or Register to see this Hidden Content

) and then type in your own h1 titles in each posts' editor, or use javascript to replace every h2 tag with h1 tags.

#7 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 23 April 2011 - 01:21 AM

How to do that? I am not an expert in HTML to do all these. I just want to use google friendly h1 tag. Because when scanning for SEO, it says there is no H1 tag used in my pages.

Please Login or Register to see this Hidden Content


I have used the above code to reduce the font size of the title. How to use H1 tag with smaller font sizes.

#8 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 23 April 2011 - 04:26 PM

If you want to replace the h2 tags, you will have to replace them with h1 tags (as Jimmy suggested) inside the files. Do you know where to find the files?

#9 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 24 April 2011 - 02:48 AM

please suggest me some easy way. please guys

#10 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 24 April 2011 - 03:20 PM

That is the easiest work-around for it or if you want, you can use Javascript to replace the tags and we'll advise you from there.

#11 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 09 May 2011 - 04:26 PM

Currently using without any custom code. And my post titles are become larger than life :) How to make them small without leaving them from h1 tag. Please suggest. Please.

#12 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 09 May 2011 - 08:35 PM

What is the site url?

#13 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 10 May 2011 - 12:39 AM



#14 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 10 May 2011 - 02:24 AM

Add this CSS code and change the number to the size you want:

Please Login or Register to see this Hidden Content



#15 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 10 May 2011 - 06:16 PM

Sorry Catrina, But code not working!

#16 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 10 May 2011 - 08:23 PM

I'm unclear here. Are you trying to change h2 tags to h1? Or are you simply trying to reduce the size of both? Let's clarify

#17 chanchal

chanchal

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 11 May 2011 - 02:36 PM

Dear Munns,
Earlier I was using

Please Login or Register to see this Hidden Content

to reduce the font size of my post title, but as I realized that post title should me in h1 tag to improve the seo, i have removed the code from custom code section. Now my title again becomes large like before.

Now i want to know that is there any other code which I can use to reduce the font size and also keep my post title on h1 tag.
Hope the whole story is cleared now.
Thanks,
Chanchal.

#18 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 11 May 2011 - 03:25 PM

Hi Chanchal,
I didn't read through all of the posts above. But, couldn't you just modify your code to use an h1? Something like this:

Please Login or Register to see this Hidden Content