Changing h-tags on header for categories.. (2 posts)

  1. turok20
    Posted 5 years ago #

    I found out how to change the H tags for pages and post but i cant figure out how to change it on categories. For pages and post it uses the title of post for the H1 tag and the site name for H2. Under categories it uses site name for H1 i would like to change it to H2 and the category title ass H1.

    Any suggestions i am not too techie with editing the php. files though i edited the header php for post and page with this..

    <?php /* The site title and description */
    if (is_singular() && !is_front_page()) {
    $title_tag = 'h2';
    $desc_tag = 'h3';
    } else {
    $title_tag = 'h1';
    $desc_tag = 'h2';

    i would like to include the category in here if its possible anyone know how?..

    Also when doing this the font size changes for the site-name under pages and posts. The site-name font size turns into h2.....


  2. Michael
    Forum Moderator
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic