WordPress.org

Ready to get started?Download WordPress

Forums

Custom Community
Site URL in tab instead of site title (8 posts)

  1. Ham Radio
    Member
    Posted 1 year ago #

    When I am on my site, I see my site URL in the tab of my browser instead of my site title. Any ideas? I have double checked in WordPress settings, and when I go to themes -> customize -> site title. Everything looks good.
    I also tried WordPress default, and my site title shows in my tab so I am pretty sure it is a theme issue. Thanks :)

  2. konradS
    Member
    Posted 1 year ago #

    Hi Ham Radio,

    wow not sure if this has been always like that,

    but I created a ticket in the issue tracker of Custom Community at Github:
    https://github.com/Themekraft/Custom-Community/issues/227

    cheers, konrad

  3. aa2nd
    Member
    Posted 1 year ago #

    i also have the exact same issue with Custom Community, would appreciate any suggestion :)

  4. MRPshop
    Member
    Posted 1 year ago #

    Hi konradS,
    I also have same issue, Site URL is showing instead of Site Title.

    @and plz look at this issue also its very very important for me.
    http://wordpress.org/support/topic/website-width-issue

  5. Ham Radio
    Member
    Posted 1 year ago #

    Here is my fix:

    You need to find the header.php file of the Custom Community theme. There are two ways you can do this:

    1. Go to your WordPress Dashboard, and go to Appearance -> Editor -> header.php.

    2. Log into your hosting cPanel, or FTP and go to public_html -> (Your Website Directory) /wp-content/themes/custom-community/header.php.

    After finding the header.php file, open it up and find <title><?php wp_title(); ?></title> For me, it was line 9.

    Replace that, with this:

    <title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); }
    elseif (is_single() ) { single_post_title(); }
    elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); }
    else { wp_title('',true); } ?></title>

    Save the file, and resfresh your browser.

  6. aa2nd
    Member
    Posted 1 year ago #

    thank you Ham Radio, I changed header.php as you said, i only have an issue with my home page, because it is linked to a static page named Home(settings>reading>front page displays>a static page) when i'm in my home page i see
    Home: Site Title

    while i'd like to see
    Site Title: Tagline

  7. aa2nd
    Member
    Posted 1 year ago #

    i figured it out, i replaced
    <title><?php wp_title(); ?></title>

    with:

    <title><?php bloginfo('name'); ?> | <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title>

    thanx to http://codex.wordpress.org/Function_Reference/wp_title

  8. Ham Radio
    Member
    Posted 1 year ago #

    Your Welcome, and thanks for that refrence too.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.