Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only loading once per page #42

Closed
alphabtc opened this issue May 21, 2012 · 5 comments
Closed

only loading once per page #42

alphabtc opened this issue May 21, 2012 · 5 comments

Comments

@alphabtc
Copy link

I'm trying to loop this through out my "teaser section" in wordpress but it's only loading once (on the first teaser). I'm also trying to get the post url to feed through instead of the main url.

im using the basic code for testing right now

<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src="<?php bloginfo('template_url');?>/custom/sharrre/jquery.sharrre-1.3.2.js"></script>
 <script>
$(document).ready(function(){
    $('#sharrre').sharrre({
share: {
  googlePlus: true,
  facebook: true,
  twitter: true
},
url: 'http://sharrre.com'  });
 });
  </script>

&

<div id="sharrre">
  </div>

http://test.cornonthejob.com/

@Julienh
Copy link
Owner

Julienh commented May 22, 2012

Hi,
Where is the html sharrre tag on your test page please?

@alphabtc
Copy link
Author

sorry, i reapplied your code. i was testing other options last night and crashed before i put yours back on.

the code is in this block, right next to the teaser/post titles

<div class="social_teasers"></div>

@Julienh
Copy link
Owner

Julienh commented May 22, 2012

Try to replace id by class name tag ($('.sharrre').sharrre({})) .
You need to add sharrre.php on your server for Google+, test this : http://test.cornonthejob.com/sharrre.php?url=&type=googlePlus

@alphabtc
Copy link
Author

id to class worked like a charm thank you! i dropped the php file on my sever the link now returns {"url":"","count":0}

@Julienh
Copy link
Owner

Julienh commented May 22, 2012

You're welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants