[resolved] editing titles (6 posts)

  1. thedopesteez
    Posted 3 years ago #

    hey guys i've been fooling around with the code trying to get my titles fixed and i know it would be much easier for someone who knows to let me know what to do. anyways i've attached a couple of photos, the first is what i have and the second is of what i want. have a look, any help is greatly appreciated!

    what i have

    what i would like

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    please check the images - they look both the same.

    also please post a link to your site;
    it might be difficult to make any useful suggestions looking just at images.

  3. thedopesteez
    Posted 3 years ago #

    my apologies. i outlined the the problem in the red box at the top of the page. website is http://www.thedopesteez.com

  4. ahuggins
    Posted 3 years ago #

    You are going to have to edit your header.php file in your theme.

    You will need to know some basic php in order to change it the way you want. Alternatively you may be able to find a plugin, WordPress SEO by Yoast will allow you to edit the title without code, but you are going to have to edit each page individually and remember to edit it for every page/post you create going forward.

    If you don't know any php, you would be better off posting a "job" on the WordPress job boards and paying someone a nominal fee to make the change in the header.php file. It shouldn't be too bad, $10-$20 will probably get it done.

  5. Michael
    Forum Moderator
    Posted 3 years ago #


    have a look in header.php of your theme; look for the line with
    <title> .... </title>

    yours might look like:

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    so what you want is to show just the post title as meta title when on a single post;

    change it possibly to:

    <title><?php if( !is_single() ) { bloginfo('name'); } ?><?php wp_title(); ?></title>

    if you need more suggestion, please post the code as you have it now in header.php of your theme.

  6. thedopesteez
    Posted 3 years ago #

    hey thanks for the help! that code didn't really fix it but i messed around with it some more and got it to work how i wanted.
    this was the proper coding:

    <title><?php if(is_home()) { echo bloginfo('name'); echo ' '; echo bloginfo('description'); } else { echo wp_title(' | ', false, right); } ?></title>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.