This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!
- AuthorPosts
- September 12, 2014 at 11:48 pm #4596
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!
- September 13, 2014 at 6:28 pm #4613
Hey there, You must be logged in to view this reply!
- September 13, 2014 at 8:27 pm #4616
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 2Thank you again!
- September 14, 2014 at 4:09 pm #4621
Hmm. I tried this. I get a blank page.
troubleshooting… - September 14, 2014 at 4:46 pm #4622
@Kalgary2 Facebook comments or Images attributes?
- September 14, 2014 at 5:14 pm #4626
Resolved fatal error: declaring yt_site_branding() more than once…
But now, the Login is showing French language… why could this be?
- September 14, 2014 at 6:46 pm #4629
[Resolved]
Above instructions work, but with another FB js reference.
Within file: fb-comment-template.php_.zipI 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! - September 15, 2014 at 4:40 am #4641
Hey there, You must be logged in to view this reply!
- September 15, 2014 at 4:43 am #4644
Hey there, You must be logged in to view this reply!
- September 15, 2014 at 7:45 pm #4670
Thanks for the “via:username”code @Jacob but unfortunately doesn’t work 🙁
- September 15, 2014 at 7:57 pm #4671
I think the duplicated logo issue was after use your updated code above (alt attr to logo) :/
- September 17, 2014 at 11:48 am #4682
Now I have duplicated logo too.
- September 17, 2014 at 5:14 pm #4689
Another thing, When I perform an analysis of my website, the analysis indicates that H1 is empty. How can I fix it?
- September 17, 2014 at 11:28 pm #4710
ok. here’s some questions:
1. $branding is declared
2. The actionyt_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 ); } }
- September 19, 2014 at 10:04 pm #4725
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!
- September 22, 2014 at 7:32 pm #4751
Hey there, You must be logged in to view this reply!
- September 22, 2014 at 7:45 pm #4755
Everything looks good but I can’t see any attachment.
- September 22, 2014 at 7:47 pm #4756
1.- The logo appears twice again :/
- September 23, 2014 at 5:05 pm #4772
Hey there, You must be logged in to view this reply!
- September 23, 2014 at 8:28 pm #4779
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!
- September 24, 2014 at 2:57 pm #4787
Hey there, You must be logged in to view this reply!
- September 25, 2014 at 3:54 am #4793
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 1Thank You!
- September 26, 2014 at 4:15 pm #4803
Hey there, You must be logged in to view this reply!
- September 28, 2014 at 7:43 pm #4816
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
- September 29, 2014 at 5:26 pm #4823
Hey there, You must be logged in to view this reply!
- October 19, 2014 at 6:16 pm #4972
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! - October 22, 2014 at 9:21 am #4987
Hey there, You must be logged in to view this reply!
- October 22, 2014 at 9:38 am #4990
Thank you @Jacob but I don’t see any attachment hehe
- October 23, 2014 at 4:11 pm #5004
Hey there, You must be logged in to view this reply!
- October 5, 2015 at 6:50 pm #11623
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
- October 7, 2015 at 5:27 pm #11658
Hey there, You must be logged in to view this reply!
- AuthorPosts
- 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!