I wanted my editing of header.php to achieve that only the site title is visible in browser tab. Not the full url is displayed instead of the site name.
http://www.tazk.no instead of Tazk
The code was originally:
<title><?php if(function_exists(‘avia_set_title_tag’)) { echo avia_set_title_tag(); } ?></title>
Now it is:
<title><?php wp_title(”); ?></title>
What code gets me the result I want?
Thank you in advance!
Hi elzacka!
Please go to Settings > General and change “Site Title” as needed.
Regards,
Yigit
The site title is in fact just “Tazk” in Settings > General, but the broser tabs displays for some reason the URL (www.tazk.no). Before I changed the code in header.php the tab displayed Tazk |
My goal was really to remove the “I” (vertical bar) but instead the whole URL was displayed in the browser tab :@
Hi!
Please undo the changes you made in header.php file and add following code to Functions.php file in Appearance > Editor
add_filter('avf_title_tag','avia_new_title');
function avia_new_title() {
if(is_home()){
$title = get_bloginfo('name');
}
return $title;
}
Regards,
Yigit
Thank You! Also, after enabling YOAST SEO I was able to edit how the title was displayed :)