Archived

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

  • 0

Resolved Change <H6> To <H2> Element Depending Of The Current Page


Question

Posted · Report post

Hi, first of all sorry for my english if i write something wrong, im not native speaker.

i´m creating a custon child theme for my site and everythig is just fine, im just having a hard time trying to make my site title an <h1> element on the front page and <h3> element if its not in the front page. Trying to do the same with the site description. I have several days trying to do this but no success. Any help/advice??

Note: I know almost nothing of PHP

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, you'd be able to change the font size depending on the page using css. You'd need to find out the font sizes for the various h tags you want to edit. An example of the css is below, but you'd need to switch the content below to reflect the id's/selectors on your site to make it work. You can find these out using firebug www.getfirebug.com


.sitetitle {font-size:14pt;}

To make it page specific. Add the page id before the css.

.page-id-5 .sitetitle {font-size:14pt;}

To find out more on css please check out http://www.w3schools.com/css/

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks James, but the tweak i need to make is not for the font size, i need to change the elements from H6 to H2, this is not for style is for SEO.

I don´t know why the tag line is encoded with <h6> when it´s my site´s description, i think it should be at least <h2> I need my title in the front page to be <h1> and the tagline <h2> but only on the front page, on the other pages i need them to be both <h3>

Excuse my bad writing again. Thanks a lot

Share this post


Link to post
Share on other sites

Posted · Report post

Your English is fine.

Unfortunately, you would have to edit the core files to change this. We're not allowed to support that, however, you can hire one or our Pros to edit the proper files and give you the SEO effect you want. Please see http://www.pagelines.com/pros

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks men

Share this post


Link to post
Share on other sites