i want to put a facebook like button into the menu bottom.
is there anything like a code that i can put into the "a href" part so that the link is changing on every single page to the current page?
i want to put a facebook like button into the menu bottom.
is there anything like a code that i can put into the "a href" part so that the link is changing on every single page to the current page?
Dont understand your question - take a look at the forum rules and maybe someone can help you.
What hamburge is wanting is the facebook like button to be in the menu bar, but when you click it, it relates to each page rather than the index (i.e. multiple pages rather than one).
I have a grasp of like buttons and can fit them and get them to work, what I haven't found out yet is how to do this. Currently searching for answers
I did find this
but couldn't get it to work. Maybe someone else with more coding experience may shed some light?
At the moment I just have a single like button in my menu relating to the index.
Many thanks
It's been done many times around here - others have posted code and results. My guess (because I'm not following that link - there are so many of the same thing out there) is that you simply need to add the parts to the template directly (which isn't hard either).
Hello. My site is foolishpowers.com
The page I'm currently having a problem with is
I know this has been discussed a lot, but I couldn't find a thread that specifically talked about embedding Facebook Like buttons using the iframe HTML you can generate on the Facebook developer pages. That's what I'm trying to do.
The buttons appear, but the URL they generate for sharing...
has been changed, so (on the one occasion it actually connected to facebook) only shares my main page. Now it doesn't register on FB at all.
Has anyone made the iframe method work, or do I need to use the XFBML with JavaScript SDK option?
Thanks
(sorry if there's an existing thread that deals with this)
Jamie
As you'll see the button appr
Sorry the fragment of text at the end is a typo, please ignore it.
Somebody link to the exact page where Facebook shows how to make this iframe thing?
Personally, I hate the idea of this though - it's an iframe so they can track you better. I'm not a fan of Facebook.
If it's simple though I'll make a fast plugin with a few options.
developers.facebook.com/docs/reference/plugins/like/#
is where you generate the code.
The code I pasted from Twitter is underneath the FB iframe code on the same page, and works fine.
Thanks
jh
Ah, you are using the older version of Indexhibit - you can simply cut and paste the code to a template and make use of the url system variable to fill in that space.
I'll look into make a proper plugin for the newer version of Indexhibit.
Sorry,Vaska this will probably sound moronic...
So you mean I shouldn't be putting code into individual pages, but make a new template/theme by customising the index php inside the sample folder? So the button is embedded across every page automatically?
You could put it into individual pages - it gets a bit tedious though.
Yes, quite.
I'd like to do more efficiently.
I''ve copied the iframe code into the index php, but now I need to code it so it knows to grab the current page, for the share URL?
That's what you mean by "make use of the url system variable to fill that space"?
This thread has been closed, thank you.