New Landing How can we help? Themeforest Theme Support Flexform Remove "Home" from site title in the browser tab

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Flexform
  • #40627
    AidenMarketing
    Member
    Post count: 7

    Hello,

    Let me first say that Flexform is a great theme. I want to remove “Home” from the site title in the browser tab. It currently reads “Home | Aiden Marketing – Full Service Inbound Marketing Agency”; however, I want to read as “Aiden Marketing – Full Service Inbound Marketing Agency” for the home page.
    I want to keep the page title in the browser tab for all of the other pages on our website — just want to remove title from the browser tab for the Home page. Our website is http://aidenmarketing.com

    I tried adding some code I found in a WordPress forum to the custom css field in the theme options but that didn’t work so I have removed that. Please advise what change I need to accomplish the above desired request. If I need to edit a file, please advise which one.

    Thanks in advance,
    Stacie – Aiden Marketing

    #41133
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, in header.php you would modify

    		<title><?php wp_title( '|', true, 'right' ); ?></title>
    

    to

    
    <?php
    if(is_front_page) { ?> <title>Aiden Marketing – Full Service Inbound Marketing Agency </title>
    <?php } else { ?>
    		<title><?php wp_title( '|', true, 'right' ); ?></title>
    <?php } ?>
    
    

    Let me know if that worked!

    #58153
    AidenMarketing
    Member
    Post count: 7

    Hi Melanie,

    No the code that you provided above didn’t work or behave as you may have intended.
    When I modified the header.php file as you instructed, the result was that ALL of my pages on the website now had the page title as “Aiden Marketing – Full Service Inbound Marketing Agency”.

    For example, I have a page that is named “Inbound Marketing – Drive Traffic”. Before modifying header.php, the page title in the browser tab for this page read “Inbound Marketing – Drive Traffic | Aiden Marketing – Full Service Inbound Marketing Agency | MD DC VA”.
    (*note: My site title is set to “Aiden Marketing – Full Service Inbound Marketing Agency | MD DC VA” in the General Settings section of WordPress). After I modified the header.php file to try to fix my issue with the home page only, the result was that my Inbound Marketing – Drive Traffic page ended up with a page title in the web browser tab that read “Aiden Marketing – Full Service Inbound Marketing Agency”.

    I didn’t expect the code to impact ALL of my pages. Can you please review the code you provided to m and advise if there is an edit needed or different code needed? Again, as stated in my original post/opening of this support ticket, I would like to remove the name of the page from the HOME page in the page title in the web browser.

    Please advise & thank you for your help in advance.

    #58206
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    The easiest and best way to do this is install one of the following 2 plugins:

    https://yoast.com/wordpress/plugins/seo/

    or

    All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic

    These plugins let you decide the title for each of your pages. They also have other cool features that will help you with seo.

    – Kyle

    #58319
    AidenMarketing
    Member
    Post count: 7

    Hi Kyle,

    I already have that SEO by Yoast plugin installed on our website, but wasn’t aware that I there was an option to change the title structure for individual pages.

    I was able to change the title settings for the home page only and now the title appears properly in the web browser tab for our home page. I’ll do a Google search tomorrow to confirm if the change propagates out so that the title for our website in search results no longer reads “Home | Aiden Marketing – Full Service Inbound Marketing Agency | MD DC VA”.

    Thank you for your help in directing me to make the change via the SEO by Yoast plugin settings options.

    #58446
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register