Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Remove "Home" from site title in the browser tab
New Landing › How can we help? › Themeforest Theme Support › Flexform › Remove "Home" from site title in the browser tab
- This topic has 5 replies, 3 voices, and was last updated 10 years by Kyle – SUPPORT.
-
Posted in: Flexform
-
January 7, 2014 at 2:00 am #40627
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.comI 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 MarketingJanuary 8, 2014 at 4:12 pm #41133Hi, 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!
March 17, 2014 at 3:16 pm #58153Hi 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.
March 17, 2014 at 4:24 pm #58206Hi
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
March 17, 2014 at 9:47 pm #58319Hi 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.
March 18, 2014 at 9:53 am #58446No problem! 🙂
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.