• I have a wordpress site. I review beauty products. In order to change the web title I made some changes in the header php title
    { wp_title(); } ?>- Beauty products Reviews, Healthy Tips </title>

    Each time I post an article, on the browser I get my article heading along with my wp title typed in header.php file. For instance if my article headline is “Top 5 hair products” on the browser it shows my websitename, Top 5 hair products, Beauty products Reviews, Healthy Tips

    How do I removed my web title from single posts? I only want the title of the articles to appear on each posts on the browser.

    Please send me the php code and let me know which php folder ( main index, header, page template, single post?

    Thank you very much in advance

    JB

Viewing 4 replies - 1 through 4 (of 4 total)
  • answered, then realized all of what you wanted, give me a min to work it out.

    you didn’t show all of your <title> tag, but I’m going to assume that’s part of it.

    you can change it to say:

    <title>
    <?php
    if (!is_single()) {
      wp_title();
    } else {
      the_title();
    }
    ?>
    - Beauty products Reviews, Healthy Tips </title>

    Thread Starter juneberry

    (@juneberry)

    <title><?php bloginfo(‘name’); if(is_home() || is_front_page()) { echo ‘-‘; bloginfo(‘description’); } else { wp_title(); } ?> Beauty products Reviews, Healthy Tips</title>

    This is the whole code.

    How do I change the single post titles?

    Thank you very much
    JB

    Thread Starter juneberry

    (@juneberry)

    The code you typed doesn’t work. Showing syntax error, Can someone please help me?

    Thank you
    JB

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove blog titles from page titles’ is closed to new replies.