WordPress.org

Ready to get started?Download WordPress

Forums

Celebrate
[resolved] Front page title (2 posts)

  1. jentooman
    Member
    Posted 6 months ago #

    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 -->
  2. Han
    Member
    Theme Author

    Posted 6 months ago #

    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 }

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.