Adding a FB like button to the homepage?
Hi!
I must say this is one of the best templates available out there. We use it for a student project and we are more than delighted with the array of opportunities it offers. I was able to customize and install all the necessary social network plugins. But I am having difficulty at including a FB like button on the home page, under each individual post. Can someone help out with this? Thanks! |
Did you search on wordpress.org for a plugin?
|
Quote:
|
which ones did you try? I'm unaware of any that don't work.
|
Quote:
It works flawlessly on article pages, but on the front page it doesn't display the FB like button. And yes, I have checked 'Home' in the configuration of the plugin. |
This looks to me like a 'designed feature' of the the plugin or a bug with the plugin. It does not add teh like on an excerpt, and that makes a certian sense but you will have to take this up with the plugin developer.
If you change the home page to display full posts, the like shows up - do this by editing the virtual template 'postformat.php' and change the line HTML Code:
<?php bfa_excerpt( 55, ' ...' ); ?> HTML Code:
<?php the_content(); ?> if this is an issue, you need to take it up with the plugin developer. |
Thank you for your reply, but unfortunately showing the whole posts is not an option in my case.
I assume that some people here have working plugins with this theme, maybe someone could share their experience with a plugin that works? |
I'd talk to the plugin developer.
meanwhile you could edit the 'main.php' and right after line 57 - which is HTML Code:
add_filter('the_content', 'Add_Like_Button'); HTML Code:
add_filter('the_excerpt', 'Add_Like_Button'); HTML Code:
<?php bfa_excerpt( 55, ' ...' ); ?> HTML Code:
<?php bfa_excerpt(); ?> If you do this, keep notes so you can redo the fix the next time the plugin updates. |
All times are GMT -6. The time now is 03:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.