Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Adding a FB like button to the homepage?


  #1  
Old May 8, 2013, 09:47 AM
GeoTop
 
4 posts · May 2013
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!
  #2  
Old May 8, 2013, 09:49 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Did you search on wordpress.org for a plugin?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old May 8, 2013, 10:17 AM
GeoTop
 
4 posts · May 2013
Quote:
Originally Posted by lmilesw
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.
  #4  
Old May 8, 2013, 10:28 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
which ones did you try? I'm unaware of any that don't work.
  #5  
Old May 8, 2013, 10:49 AM
GeoTop
 
4 posts · May 2013
Quote:
Originally Posted by juggledad
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.
  #6  
Old May 8, 2013, 11:47 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
  #7  
Old May 8, 2013, 03:12 PM
GeoTop
 
4 posts · May 2013
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?
  #8  
Old May 8, 2013, 03:38 PM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem adding tweet button ragdoll Plugins & Atahualpa 5 Jun 8, 2011 02:48 AM
Adding a link button (image) to sidebar yasirsheikh Sidebars & Widgets 2 Jun 7, 2011 09:30 PM
Adding 3 latest news items to the homepage thesis Center area post/pages 2 Nov 1, 2010 06:15 AM
adding a submit button to the header search box eyelight Header configuration & styling 2 Aug 2, 2010 06:16 AM


All times are GMT -6. The time now is 11:03 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.