WordPress.org

Ready to get started?Download WordPress

Forums

Custom Community
Site Title is blank (6 posts)

  1. lasaon
    Member
    Posted 1 year ago #

    Hi,

    since Update to Version 1.16 the title in Header is blank and shows the url from the site.

    Please fix it soon.

    Greets Markus

  2. aritzalvarez
    Member
    Posted 1 year ago #

    maybe some more info needed to can help you... Link, theme, heade file or something...

    I'm not sure, but the problem must be in the header.php file, maybe calls the title using some old stuff or somenthing not suported longer in new wordpress version (but sounds pretty weird to me, that)

  3. lasaon
    Member
    Posted 1 year ago #

    Hello aritzalvarez,

    The theme is custom community, and the title is not displayed in the tabs of the browser.
    After I viewed the source code, I realized that the title in the header does not exist.
    Currently only displays the URL in the browser tab.

    The problem, however, came only with Version 1.16 of the Custom Community theme.

    Here are two links about the problem: http://www.annoyme.de and http://bbtest.teufelspack.de

    Thanks and regards

    Lasaon

  4. aritzalvarez
    Member
    Posted 1 year ago #

    you can acces to admin user?

    Cause is easy fix if you can... You must go to themes/editor and choose "header.php" to edit it.

    only must find title tags and add the title inside... change tihs

    <title></title>

    into this

    <title> <?php echo the_title(); ?> </title>

    Maybe you´ll find something between <title> and </title> but, save a backup copy and edit it... it's obviously not working.

    I guess they use some "title builder", it's a common practice... Than display the title and some additional info (like blog name and stuff like that) and maybe has some bug.

    I made a simple title builder, it's not perfect, but is mine ^^ hahahaha is this...

    <title>
    
       <?php
    
       if (is_archive()) {  wp_title(''); echo ' Archives '; }
    
       elseif (is_search()) { echo 'search results for "'.wp_specialchars($s).'"'; }
    
       elseif ( is_front_page() ) { bloginfo('name'); echo (' - '); bloginfo('description'); }
    
       elseif ( !(is_404()) && (is_single()) || (is_page())) { the_title(); echo (' - '); bloginfo('name'); }
    
       elseif (is_404()) { echo 'Error 404'; }
    
       if (is_home()) { bloginfo('name'); echo (' - Blog'); }
    
       if ($paged>1) { echo ' - pàgina '. $paged; }
    
       ?>
    
    </title>

    Feel free for copy and paste on your header file if you want, it should work propperly

  5. SeanB
    Member
    Posted 1 year ago #

    Hey aritzalvarez,

    The second code works great, although my site name seems to appear twice? Any ideas about that?

    Here is the link to the page I'm working on... http://www.edenfallband.co.uk/Wordpress/

    Sorry, I'm not good with CSS myself.

  6. konradS
    Member
    Posted 1 year ago #

    Hi SeanB, i would recommend to make a child theme to have the changes all update safe..

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.