SMF Support > SMF 2.0.x Support
Needing help with I think is a hook
Texan78:
Hello,
I have the SA Twitter and SA Facebook mod installed and works great. I just have some minor cosmetic edits I would like to make and I am not sure how since the code is not actually in the theme templates so I am not sure how to edit it. I believe these are done with hooks?
One thing I am trying to do is move the Facebook and Twitter login buttons side by side below the login boxes. See the first screenshot for example.
Second thing on the topics page I want to move the twitter button inline next to the facebook buttons so they are inline as well. See the second screenshot for example.
I believe these are done with hooks but I am not sure how to edit them. If it was just a normal template code edits it wouldn't be a problem, but it's not.
So if anyone could offer some assistance on how to make this happen with this that would be great.
-Thanks
themegenius:
i think it might be in the .css file of your current theme. if your using google chrome you can right click either facebook or the twitter button and select "Inspect Element" that might give you sum tips
SA™:
the code for them in in the facebookhooks.php and twitterhooks.php
for the login buttons it is
function ob_twitter
and
public static function ob_facebook
for the share buttons it is
function template_facebook_above
and
function template_twitter_above
Texan78:
If that was true and it was in my CSS shouldn't there still be a ID or Class in the template to reference? There is no reference to the code anywhere in the template related to those buttons.
Texan78:
--- Quote from: SA™ on July 29, 2012, 05:57:01 PM ---the code for them in in the facebookhooks.php and twitterhooks.php
for the login buttons it is
function ob_twitter
and
public static function ob_facebook
for the share buttons it is
function template_facebook_above
and
function template_twitter_above
--- End quote ---
Thanks SA, I will take a look and see what I can do about repositioning them.
Navigation
[0] Message Index
[#] Next page
Go to full version