Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Adding a FB like button to the homepage? (http://forum.bytesforall.com/showthread.php?t=20285)

GeoTop May 8, 2013 09:47 AM

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!

lmilesw May 8, 2013 09:49 AM

Did you search on wordpress.org for a plugin?

GeoTop May 8, 2013 10:17 AM

Quote:

Originally Posted by lmilesw (Post 100317)
Did you search on wordpress.org for a plugin?

Yes, I have, but I was unable to find a plugin that would work under this template.

juggledad May 8, 2013 10:28 AM

which ones did you try? I'm unaware of any that don't work.

GeoTop May 8, 2013 10:49 AM

Quote:

Originally Posted by juggledad (Post 100321)
which ones did you try? I'm unaware of any that don't work.

For example, this one: http://wordpress.org/extend/plugins/...k-like-button/

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.

juggledad May 8, 2013 11:47 AM

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, ' ...' ); ?>
to
HTML Code:

<?php the_content(); ?>
as a side not I tried this with Atahualpa which has the option to display both full posts and excerpts on the front page, the full posts had the like buttons, the excerpts did not.

if this is an issue, you need to take it up with the plugin developer.

GeoTop May 8, 2013 03:12 PM

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?

juggledad May 8, 2013 03:38 PM

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');
you could add
HTML Code:

add_filter('the_excerpt', 'Add_Like_Button');
then in the theme, edit the 'postformat.php' virtual template and change
HTML Code:

                <?php bfa_excerpt( 55, ' ...' ); ?>
to
HTML Code:

                <?php bfa_excerpt(); ?>
you will see the buttons.

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.