Comments & Images SEO

This topic is: Not resolved

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

This topic contains 30 replies, has 5 voices, and was last updated by  Max 1 year, 2 months ago.

  • Author
    Posts
  • #4596

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #4616

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 9

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

  • #4622

    CarlosMarli
    Member
    Post count: 123

    @kalgary2 Facebook comments or Images attributes?

  • #4626

    kalgary2
    Member
    Post count: 9

    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
    Post count: 9

    [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
    Post count: 2323

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

    Login | Register | Forgot Password?

  • #4644

    Jacob
    Staff
    Post count: 2323

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

    Login | Register | Forgot Password?

  • #4670

    CarlosMarli
    Member
    Post count: 123

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

  • #4671

    CarlosMarli
    Member
    Post count: 123

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

  • #4682

    kalgary2
    Member
    Post count: 9

    Now I have duplicated logo too.

  • #4689

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 9

    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
    Post count: 123

    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
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #4755

    CarlosMarli
    Member
    Post count: 123

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

  • #4756

    CarlosMarli
    Member
    Post count: 123

    1.- The logo appears twice again :/

  • #4772

    Jacob
    Staff
    Post count: 2323

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

    Login | Register | Forgot Password?

  • #4779

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #4793

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #4816

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #4972

    CarlosMarli
    Member
    Post count: 123

    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
    Post count: 2323

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

    Login | Register | Forgot Password?

  • #4990

    CarlosMarli
    Member
    Post count: 123

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

  • #5004

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #11623

    atishayjain
    Member
    Post count: 17

    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
    Post count: 3150

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

    Login | Register | Forgot Password?

You must be logged in to reply to this topic.

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