WordPress.org

Support

Support » Themes and Templates » Celebrate » [Resolved] Front page title

[Resolved] Front page title

  • One more question! 🙂

    How can I add a title to the home page? I edited the loop-meta.php file to add the title if it was the home page, but it’s not showing up.

    <div class="loop-meta">
    	<?php if ( is_home() && !is_front_page() ) { ?>
    		<h1 class="loop-title"><br  /><br  /><?php wp_title(); ?></h1>
    		</div><!-- .loop-description -->
Viewing 1 replies (of 1 total)
  • Theme Author Han

    @hwijaya

    Try this

    <?php
    /* If viewing a singular page, return. */
    if ( is_singular() )
    return;
    ?>

    <div class=”loop-meta”>

    <?php if ( is_home()) { ?>

    <h1 class=”loop-title”>Home</h1>

    <?php }

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Front page title’ is closed to new replies.
Skip to toolbar