Comments & Images SEO

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved
  • This topic has 30 replies, 5 voices, and was last updated 3 y, 8 mo by  Max.
Viewing 30 reply threads
  • Author
    Posts
    • #4596

      CarlosMarli
      Member

      Hi again guys I need your help, hope you can help me.

      1.- I want to use Facebook Comments Box in sparkle instead the regular comment system, I don’t want to use any plug in so I need to modify comments.php and use this code:

      <?php if ( comments_open() ) : ?>
      <div id="fb-root"></div>
      <script src="http://connect.facebook.net/es_ES/all.js#xfbml=1"></script>
      <fb:comments href="<?php the_permalink(); ?>" width="700"></fb:comments>
      <?php endif; ?>

      Can you help me to define where to put the code without affecting sparkle? I’ve tried different ways without very good results.

      2.- Some of the images alt attributes are empty or missing: logo, favicon and other images used to customize the theme, how can I add those attributes?

      Thank you!

    • #4613

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4616

      CarlosMarli
      Member

      Everything works just perfect, thank you @maxxi! 🙂

      Another thing, would be great if you add the “Via:@username” option when someone share a post on twitter 😉 (just saying)

      If you are considering to improve the SEO of Sparkle in very next updates please check this websites, they could help:
      website 1
      website 2

      Thank you again!

    • #4621

      kalgary2
      Member

      Hmm. I tried this. I get a blank page.
      troubleshooting…

    • #4622

      CarlosMarli
      Member

      @Kalgary2 Facebook comments or Images attributes?

    • #4626

      kalgary2
      Member

      Resolved fatal error: declaring yt_site_branding() more than once…

      But now, the Login is showing French language… why could this be?

    • #4629

      kalgary2
      Member

      [Resolved]

      Above instructions work, but with another FB js reference.
      Within file: fb-comment-template.php_.zip

      I replaced:

      <script src="http://connect.facebook.net/es_ES/all.js#xfbml=1"></script>

      with (REPLACE YOUR_APP_ID with your App ID):

      <script>(function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=YOUR_APP_ID&version=v2.0";
        fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));</script>

      Everything worked after that.
      Thanks for letting me share this thread!

    • #4641

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4644

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4670

      CarlosMarli
      Member

      Thanks for the “via:username”code @Jacob but unfortunately doesn’t work 🙁

    • #4671

      CarlosMarli
      Member

      I think the duplicated logo issue was after use your updated code above (alt attr to logo) :/

    • #4682

      kalgary2
      Member

      Now I have duplicated logo too.

    • #4689

      CarlosMarli
      Member

      Another thing, When I perform an analysis of my website, the analysis indicates that H1 is empty. How can I fix it?

    • #4710

      kalgary2
      Member

      ok. here’s some questions:

      1. $branding is declared
      2. The action yt_site_branding is removed, but added at the end of the function. Is this correct?

      So, does this make logo appear twice?

      I rewrote this code like this. Is it correct? (it removes the duplicate logo):

      
      remove_action( 'yt_inside_header','yt_site_branding');
      add_action( 'yt_inside_header','yt_site_branding09042014', 15); 
      
      function yt_site_branding09042014(){
      	
      	/**
      	 * Retrieve Options data
      	 */
      	$heading = is_home() ? 'h1' : 'h3';
      	
      
      	//Branding
      	$branding = '<div class="col-md-2 site-branding pull-left">
      		<'.$heading.' class="site-logo plain-text-logo"><a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( yt_get_options('plain_logo_text') ) . '" rel="home">' . yt_get_options('plain_logo_text') . '</a></'.$heading.'>
      	</div>';
      	
      	if( !yt_get_options('plain_logo') && yt_get_options('logo') ){
      		$branding = apply_filters( 'yt_site_branding09042014', $branding );
      	}
      }
      
      
    • #4725

      CarlosMarli
      Member

      Questions for next week @Jacob @Maxxi:

      1.- When I perform an analysis of my website, the analysis indicates that H1 is empty. How can I fix it?

      2.- Some errors on Google Rich Snippets:

      Error: Missing required field “entry-title”.
      Error: Missing required field “updated”.

      I found this but it need a core modification so I prefer to ask you guy before.

      3.- The @Jacob’s “via:username”code unfortunately doesn’t work 🙁

      4.- Pinterest, Vimeo & Instagram logo in Nav Bar.

      5.- The right code to add alt attributes to logo & images used to customize the theme.

      Thank you guys!

    • #4751

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4755

      CarlosMarli
      Member

      Everything looks good but I can’t see any attachment.

    • #4756

      CarlosMarli
      Member

      1.- The logo appears twice again :/

    • #4772

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4779

      CarlosMarli
      Member

      Thanks for the code @Jacob but the h1 is still empty, how can I fix it?
      And any idea with the “vía: @Username” ?

      Thank you!

    • #4787

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4793

      CarlosMarli
      Member

      1.- With the new code h1 appears twice (1 empty)
      2- Thank you for considerate this in next updates
      3.- Unfortunately this code doesn’t work even with the new attachment (js)
      4.- Thank you, works perfect
      5.- Answer 1

      Thank You!

    • #4803

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4816

      CarlosMarli
      Member

      I have test the code again, clear all the cache and try different computers/browsers.

      The logo and h1 appears twice and the “via: @username” function doesn’t work. I think I will wait for the next update this time.

      Thank you

    • #4823

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4972

      CarlosMarli
      Member

      Hi again guys, I have a question related with this topic.
      It is possible to show the “via: @Username” like this:

      Post name + URL + via: @Username

      The current one is: Post name + via: @username + URL

      Another question, do you have any plans to launch a new update soon?
      Thank you!

    • #4987

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #4990

      CarlosMarli
      Member

      Thank you @Jacob but I don’t see any attachment hehe

    • #5004

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #11623

      atishayjain
      Member

      no one is helping me 🙁 I want to install child theme so that I can use fb comment feature without plugin. I cant see custom function file under my editor

    • #11658

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 30 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2019 by wpthms.com. All Rights Reserved.