Jump to content
Sign in to follow this  
makeylon

Facebook Like Button in Post

Recommended Posts

makeylon

This hook seems to position it above and outside of the sharebar...

Share this post


Link to post
Share on other sites
inov8ed

I ran into this problem with trying to edit the 404 page and finally had to edit the php file in the parent theme for the update to work. You may have to do that in the original file directly (which is an issue to remember when upgrading). -Adam

Share this post


Link to post
Share on other sites
makeylon

Thats the problem. I don't want to have to edit the parent theme, otherwise updates become problematic. There must be a way to accomplish it without editing the parent theme. Anybody know if there is a hook for just before or just after the icons inside the sharebox?

Share this post


Link to post
Share on other sites
bryan-hadaway

Without getting into the actual code which we're trying to avoid the trick is to "hook it" as closely as we can THEN we can style it with CSS to position it precisely. So, get it as close as you can and then update me with a link to your site so I can write the CSS for you. Thanks, Bryan

Share this post


Link to post
Share on other sites
makeylon

Which is why I asked if there was a hook for just before or just after the icons in the sharebox. That would be the closest hook to use, as thats where I want the icon placed. So is there something there? Or the one that was suggested earlier is the closest? A document with the complete list of hooks and locations would be great.

Share this post


Link to post
Share on other sites
cmunns

Even if you use the hook I suggested could you not position it with CSS to where you want it to be?

Share this post


Link to post
Share on other sites
makeylon

Yes, and thank you. It is very helpful. I was just wondering if there is a hook for inside the sharebox instead of in front/on top of it. I realize I'll probably need to position it with some css anyway, but I'd like to get it as close as possible first. So, does anybody know if there is a hook for just before or just after the icons themselves? Or is the closest hook the one previously suggested?

Share this post


Link to post
Share on other sites
kastelic

You could try using jQuery to insert the code. Put this in your footerscripts box: `

[code ]
");

Share this post


Link to post
Share on other sites
kastelic
<script>jQuery(".post-footer").prepend("<div>Facebook Like Code Here</div>");</script>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×