• The blog can be seen at:

    https://www.webceoreview.org/

    I upgraded the theme, and can’t for the life of me remember how I successfully shortened the site title before, so that it didn’t run behind the banner at the top.

    I am pretty sure it was in the header.php file, but I have tried everything.

    I want to change the default blog title “Web CEO Indepth Review|Web CEO Discount Coupon Code” to “Web CEO Review”

    Can anyone help please?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Jase07

    (@jase07)

    Anyone?

    Assuming that header.php still automatically picks up the title from the blog and has not been hard coded in the past – withing the admin area click ‘Settings -> General’ and you can change the name and description there, along with alsorts of other stuff.

    Thread Starter Jase07

    (@jase07)

    Hi,

    Thanks very much for your reply, however that is not what im asking here.

    I want to keep the title of the site what is already is, but just change what appears as the site title on the pages.

    Anyone know?

    But whats the point of keeping it as what it is already if it is never going to be displayed.

    Easiet way around though, I’d guess, would be to add a custom field on one of your pages (probably the index or homepage) with the name you want displayed and then change the code in the header to pick up that custom field instead.

    Thread Starter Jase07

    (@jase07)

    Hi,

    the point is so that I have the same site title showing up in the search engines, as I currently do now, but just a shorter site title displaying on the pages, so that it doesn’t look messy..

    Thanks for your suggestions on creating a custom field, but can you elaborate more on how exactly to do this to change the site title displayed on all the pages?

    Thanks,

    Nick

    Ok, with you now. What I’d do is add a Custom Field to either your Home page or your Index page – call it ‘title_overide’ or somthing similar, and then add the name you want displayed in Value.

    You then need to amend your header.php file so that it displays the Custom Field, not the site title. To get the custom field use the code below, but I can’t really elaborate any more on how to display that as oppeded to the site title as every single header.php file is different. If you are really struggling then post your header.php file here and I’ll take a look.

    <?php
    $post_id = 5; // This should be the id of your page that holds the Custom Field. To find out the post_id hover your mouse over the page in the pages list and look at the link that is displayed at the bottom left of your browser - the post_id will be in there.
    $key = 'title_overide';
    $single = TRUE;
    
    $title_overide = get_post_meta($post_id, $key, $single);
    ?>
    Thread Starter Jase07

    (@jase07)

    Thank you very much, it appears it was right in front of me all along, there was just a slight error in the header.php files coding..

    Thanks again,

    Nick

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How To Rename Blog Title Within Pages’ is closed to new replies.