WordPress.org

Ready to get started?Download WordPress

Forums

Clean Retina
sitname missing in title & meta tag (10 posts)

  1. rbfly
    Member
    Posted 1 year ago #

    Hi,
    since I use Clean Retina theme I've noticed that my webadres missing in the title tag. According to SEO Yoast plugin, it should be like this:
    Vision SPEED wading jacket | rbflyfishing.com

    But on my side is missing sitname and it looks that way:
    Vision SPEED wading jacket |

    I've checked the SEO settings and they are the same as before. I wonder could it be that something from the Clean Retina theme affects and makes the problem?
    Has anyone encountered the same problem or have any suggestions how I can solve it.
    Thanks!!

  2. reversiblean
    Member
    Posted 1 year ago #

    Similar problem here. I just can't locate the title tag that looks something like this..
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    Isn't that supposed to be in the header.php?

    This might be the cause of the WP SEO not being able to work properly.

    Just adding a custom meta title to homepage instead of displaying WordPress title will do it for me.

  3. rbfly
    Member
    Posted 1 year ago #

    hey,
    thanks for the help. can you describe where exactly have you written code?
    Is it in the header.php or header-extensions.php?
    Regards

  4. rbfly
    Member
    Posted 1 year ago #

    I found the problem.
    My website's logo is jpg. image instead title written with words. When I write the title in the "Settings - title for the website", then shows the web page name correctly. Now I hope I can be with the new CSS rule to hide title.
    Anyone who might have any suggestions how I can write my own css? :)

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Use CSS text indent
    http://www.w3schools.com/cssref/pr_text_text-indent.asp

    That's a common technique adopted by many industry giants like Facebook.

  6. rbfly
    Member
    Posted 1 year ago #

    hello again :-)
    I have solved the problem so I moved the title with CSS rule

    # site-title {
    position: absolute;
    left: 10000px;
    }

    I do not know if there are good ways and will work on any browser, but right now firefox is OK.
    Thanks for help

  7. skriza
    Member
    Posted 12 months ago #

    I figured it out. You have to add the line you mentioned above to the file loop-meta.php

    Here is where i added it in the file:

    <?php if ( is_category() ) : ?>      
    
    <div id="loop-meta">
      <h1 class="loop-meta-title"><?php printf( __( 'Category Archives: %s', 'retina' ), '<span>' . ucwords( strtolower ( single_cat_title( '', false ) ) ) . '</span>' ); ?></h1>
      <div class="loop-meta-description"><?php echo category_description(); ?></div>
    </div> <!-- end #loop-meta -->
    
    <?php elseif ( is_tag() ) : ?>
    
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    
    <div id="loop-meta">
      <h1 class="loop-meta-title"><?php printf( __( 'Tag Archives: %s', 'retina' ), '<span>' . ucwords( strtolower ( single_tag_title( '', false ) ) ) . '</span>' ); ?></h1>
      <div class="loop-meta-description"><?php echo tag_description(); ?></div>
    </div> <!-- end #loop-meta -->
  8. skriza
    Member
    Posted 12 months ago #

    Adding the code to the above file will include the title and tagline in the meta tags unless you leave them blank under settings.

  9. WPyogi
    Volunteer Moderator
    Posted 12 months ago #

    Do be aware that any changes you make to theme files will be lost when the theme is updated. It's generally advisable to make such changes in a Child Theme

    http://codex.wordpress.org/Child_Themes

  10. skriza
    Member
    Posted 12 months ago #

    Thanks for the info. WPyogi :} there are endless things for me to learn!!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags