Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #536206

    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!

    #536505

    Hi elzacka!

    Please go to Settings > General and change “Site Title” as needed.

    Regards,
    Yigit

    #536515

    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 :@

    #536538

    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

    #536562

    Thank You! Also, after enabling YOAST SEO I was able to edit how the title was displayed :)

    #536563

    Hey!

    Great! :)
    Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Show only site title in browser tab’ is closed to new replies.