• Greetings.

    issue 1 : When i add <h1> in header.php then it not only appear in top of website’s homepage but also in other single post and page. Then it’s have “2” <h1>. i don’t want that.
    So how do i add <h1> in homepage but it’s not appear in other page.

    issue 2 : how do i add <h2> in every single post = <title post>

    Thanks in advance,
    Sam

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Samnguyen,

    Issue 1-> to achieve h1 in home page only you need to put the h1 tag under the condition.

    if (is_home())
    {
    <h1></h1>
    }

    Issue 2-> to achieve that you need to edit the single.php and make the changes as per the need.

    I hope the above was helpful.

    Kind regards.

    Manoj

    Thread Starter samnguyen

    (@samnguyen)

    Issue 1-> to achieve h1 in home page only you need to put the h1 tag under the condition.
    
    if (is_home())
    {
    <h1></h1>
    }

    where should i put it ? in header.php ?

    Issue 2-> to achieve that you need to edit the single.php and make the changes as per the need.
    could you show me how to do ? i’m not good in this

    Thread Starter samnguyen

    (@samnguyen)

    help me ! please
    This is my website :thang máy gia đình

    • This reply was modified 9 years, 3 months ago by samnguyen.
    Thread Starter samnguyen

    (@samnguyen)

    i’m still waiting for your help !

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘H1 problem ?’ is closed to new replies.