• I’m trying to move the tagline to right below my blog title. I’m pretty new to CSS and coding in general so I’m not sure how to make this change. So far when I’ve tried I’ve broken everything. Any advice would be most appreciated.

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

    (@creativedreams91)

    Can you link to the website so I can see what your talking about.

    Thanks.

    Thread Starter becomingsupersonic

    (@becomingsupersonic)

    The tagline in Forever is generated through the file greeting.php.

    The file greeting.php is called in via index.php, as you can see at line 160:

    <?php
       if ( is_home() && ! is_paged() ) {
          get_template_part( 'greeting' );
          get_template_part( 'recent-posts' );
       }
    ?>

    The firest thing you’ll need to do is set up a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

    Once your child theme is ready, make a copy of the file index.php from the parent theme and place it into the child theme folder.

    Remove this line to un-display the tagline from the current spot.

    get_template_part( 'greeting' );

    Alternatively, you can “comment out” that line by adding two slashes in front of it:

    //get_template_part( 'greeting' );

    Leave the rest of that code intact.

    Next, after line 22, add this new block of code to display the tagline after the header:

    <?php
         if ( is_home() && ! is_paged() ) {
              get_template_part( 'greeting' );
        }
    ?>

    This puts the tagline just below your main menu.

    If you want to put it immediately below your site title instead, you’ll also need to copy the file.php into your child theme – why not see if you can figure out how to add it there based on what you’ve learned so far. 🙂

    Actually, I just noticed that since your site doesn’t have the four featured posts that my test site does, you’ll need to go the masthead.php route to move it above your menu, otherwise it’ll look the same as it does now. Let me know how it goes – the info I provided above should help you make the change. 🙂

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

The topic ‘Move Tagline’ is closed to new replies.