WordPress.org

Forums

BizStudio Lite
[resolved] h1 tag not vailable in custom frontpage BizStudio Lite (7 posts)

  1. Ankur
    Member
    Posted 1 year ago #

    I use BizStudio LLite v 1.0.12 and activate custom layout for front page.
    How to insert h1 tag in custom layout front page? please help

  2. Gunjan Rai kanungo
    Member
    Posted 1 year ago #

    Hi,

    You can add h1 tag in front page custom layout from front-page.php file in your theme folder. Open front-page.php file and add h1 tag in html code.

    Best,
    Gunjan

  3. Ankur
    Member
    Posted 1 year ago #

    Thank you very much.... I add
    <?php
    if ( is_front_page() ) {?>
    <h1>Header for frontpage</h1>
    <?php
    } else {
    ?>
    <h2>Header for other pages</h2>
    <?php
    }?>
    on fron-page.php and now h1 tag is available in frontpage of my site

    http://www.ankurs.net/

  4. Ankur
    Member
    Posted 1 year ago #

    I remove
    ?php
    if ( is_front_page() ) {?>
    <h1>Header for frontpage</h1>
    <?php
    } else {
    ?>
    <h2>Header for other pages</h2>
    <?php
    }?>
    and add only
    <h1>Header for frontpage</h1>
    to front-page.php.

  5. Gunjan Rai kanungo
    Member
    Posted 1 year ago #

    Please let us know if you have any issue.

    Best,
    Gunjan

  6. Ankur
    Member
    Posted 1 year ago #

    Please told me to syntax to center my h1 tag of front-page.php
    "<h1>Header for frontpage</h1>"

  7. Gunjan Rai kanungo
    Member
    Posted 1 year ago #

    Hi,

    For making h1 tag text in center use text-align: center; property of CSS.

    Thanks

    Best,
    Gunjan

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic