Strange page title on slice theme

Discussion in 'General InkThemes Discussion and Feedback' started by aaregg, Jul 29, 2013.

Thread Status:
Not open for further replies.
  1. aaregg

    aaregg New Member

    Joined:
    Jul 26, 2013
    Messages:
    14
    Likes Received:
    0
    My page title appears as...

    sample page | Room N' ZoomRoom N' Zoom | a starting point for the long term traveler

    How do I get rid of "sample page" and the duplication of "Room N'Zoom?

    my site is www.roomnzoom.com

    Thanks,
     
  2. aaregg

    aaregg New Member

    Joined:
    Jul 26, 2013
    Messages:
    14
    Likes Received:
    0
    I found the answer to this...

    From the WordPress dashboard, go to Appearance/Editor

    On the right hand side, select Header.php

    Near the top of this file, you will find code between the <title> and </title> tags.

    Replace the code between these tags with...

    <?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;
    wp_title('|', true, 'right');
    // Add the blog name.

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo('description', 'display');
    if ($site_description && ( is_home() || is_front_page() ))
    echo " | $site_description";

    // Add a page number if necessary:
    if ($paged >= 2 || $page >= 2)
    echo ' | ' . sprintf(__('Page %s', 'slice'), max($paged, $page));
    ?>

    (Make sure to copy the original file somewhere so you can restore it, if necessary)

    The above will stop the site name duplicating in the Page Title.

    To get rid of "sample page" appearing in the Page Title:

    From the WP dashboard, choose All Pages on the left hand side.

    Along the top of this page select "Trash" where you will find the home page.

    Hover your mouse over the home page entry and select "Restore"

    Along the top of the page, select "All" (next to Published and Trash)

    Find the home page entry and hover your mouse over it and select Quick Edit

    Change the title from "sample page" to something more descriptive

    When done, select the "Update" blue button on the right hand side.

    Hover your mouse over the home page entry and select "Trash" (the page won't be deleted but will reside in the Trash folder).

    go back to your site and refresh the page. The "sample page" should no longer apear in the page title of your home page.
     
Thread Status:
Not open for further replies.

Share This Page