WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] remove Blog title from page titles (7 posts)

  1. goldmember
    Member
    Posted 4 years ago #

    how do i remove the Blog title from the end of the page titles?

    for instance, on this page (http://advancedairanalysis.com/), the title reads "Asbestos, Lead, Mold Cleanup Services in Maryland from Advanced Air Analysis | Advanced Air Analysis"

    I want to remove "| Advanced Air Analysis" from the end of it.

    The first part "Asbestos, Lead, Mold Cleanup Services in Maryland from Advanced Air Analysis" comes from the Title custom field I type in, which feeds the Platinum SEO plugin.

    here's the code from my header.php file: <title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { ?> at <?php } ?><?php bloginfo('name'); ?></title>

    please advise what i need to edit to make this happen??? thanks.

  2. mark_r-a
    Member
    Posted 4 years ago #

    I have a similar problem - I would like to remove all "bloggy" content (title, sidebar, comment etc") from custom pages (not posts), as this would make WP more like a CMS too, which would be cool.

  3. SimonJ
    Member
    Posted 4 years ago #

    @ goldmember

    The title of your blog is displayed with the <?php bloginfo('name'); ?> template tag.

    So just remove it in your <title>

    You'll probably just need to use :

    <title><?php wp_title(); ?></title>

    ...But, if you want an advice... I would suggest to use the blog name in your title, or at least something to indentify your site clearly on any post or page.

    S.

  4. goldmember
    Member
    Posted 4 years ago #

    thanks, but that did not work. any other ideas?

  5. SimonJ
    Member
    Posted 4 years ago #

    Hum... It should work... :-)

    But well, I found your problem. :-)

    Your title is always replaced by the platinum seo pack, wathever you have in your header.php, it will be replaced.

    I don't have this plugin installed, so I don't know if there is an option to disable this feature. But your problem is there... The platinum seo pack bypass your template tag in your <title> to write his own title for search engine optimization.

    S.

  6. SimonJ
    Member
    Posted 4 years ago #

    Ok... I found your solution

    Look in your Platinum SEO settings in your admin panel.

    There is a list of title format to use for post, pages, category, etc...

    You can either disable all the title rewriting by unchecking the box for "rewrite title"

    Or you can edit the fields where you see :

    %post_title% | %blog_title%

    Just remove the "| %blog_title%" where you don't want it to be displayed.

    @+

    S.

  7. goldmember
    Member
    Posted 4 years ago #

    thanks simon!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.