Posted by billp44ruby on October 10, 2012 at 10:56pm
I am trying to use the Facebook Share module (http://drupal.org/project/facebookshare) within an Omega theme site. The issue I'm having is that the Facebook Share icon is not showing up on nodes or showing up intermittently (or for a reason I haven't been able to fathom). According to the Facebook Share dev team, my page needs to have the following just before the tag
<?php
print $closure;
?>They recommend that this php snippet be inserted via the page.tlp.php file. As I understand it, Omega does not have a page.tlp.php file. So how would I get this $closure variable inserted right before the tag?
Comments
Just off the top of my head,
Just off the top of my head, you could add it in the html.tpl.php file. Seems like kind of a hack, but you could insert it there before the closing body tag you're referring to. Just copy the default Omega html.tpl.php to your subtheme and alter it there.
At least this would allow you to test your theory about adding the closure code.
What version of Drupal are
What version of Drupal are you using?
If I understand correctly, the $closure variable was dropped in D7.
Learn more at iRolo.net.
I did some basic research,
I did some basic research, this module is not very active. The last issue to be marked fixed is over a year old.
You might want to look into ShareThis instead: http://drupal.org/project/sharethis
Learn more at iRolo.net.
We are using the ShareThis
We are using the ShareThis module with the Omega themes for our YaleSites instance of Drupal and it's working well without any coding necessary. I'm sure this depends on what you are wanting to do.
Nancy Flowers-Mangs
Thanks all!
I appreciate you pointing out ShareThis to me! It's a far superior module and easy as can be to implement.