guerrilla 0 Report post Posted August 19, 2011 Can't believe something that should be so simple has become such a nightmare. It used to be I could find the actual code for theme templates, but now I need to spend half a day trying to find anything because instead of code I get cryptic references to some other function. I need to add a Facebook Like button to my posts in a site using Platform Pro. How can I do this? I've got my Facebook code, but I can't find the single.php code where I can paste my Facebook code. What am I missing here (aside from the assumption that I want to be a full-time coder/developer getting a minor in Platform Pro)? Thanks to anyone who can help me get the Facebook Like button functioning. Share this post Link to post Share on other sites
Rob 547 Report post Posted August 19, 2011 You can add it as a hook in features.php OR, you can use a plugin to add it. There are many. For the plugins, go to http://www.wordpress.org/plugins/extend. For the hook method, go to http://www.pagelines.com/docs/base-child-theme. Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites
Rob 547 Report post Posted August 19, 2011 Platform Pro is a totally different concept in site design than "themes" you'll find all over. It allows greater flexibility and drag/drop capability other themes don't even try. You don't need a college degree in Pagelines, nor a lifelong career in its use to become incredibly proficient quickly. That said, any web design effort requires a degree of learning, research and trial/error efforts. I'll go out on a limb here and urge you very strongly to go to http://www.pagelines.com/docs and read through the documents, watch the videos (I did some of them several times) and try the different things until you learn how to create exactly what you want. It won't take months, not even weeks. In a day I had my Platform Pro up, running and themed basically as I wanted. From there, tweaking only took a few hours a month. I'll go even further by saying that our forums are staffed by some great people who don't hesitate to try their very best to answer every question and offer the best help possible. Few, if any themes will ever offer this level of support. Of course, I'm a bit prejudiced. I bought my copy in June and since then, I've converted portions of my website over to it as a prelude to a complete conversion. We only have tens of thousands of posts which have been so easy to include thanks to Pagelines. Check one of them out at http://www.epicurus.com/Glossary (with over 19,500 posts). Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites
guerrilla 0 Report post Posted August 20, 2011 @rangelone First, thank you for taking the time to answer my question. I appreciate the support community for Pagelines, however, I wish to point out that if it wasn't becoming more and more difficult to make even simple changes to the themes, this level of support would not be necessary. I *have* gone through all the Pagelines Docs, watched the videos and worked with several versions of Pagelines themes including Platform Pro. My frustration is that it appears that the direction Wordpress theme developers are taking is obfutiscation instead of clarification. I can only assume that at least part of this is ego (for the same reason the Perl Journal had a highly-prized monthly Obfusticated Perl contest) and part job security for web code hackers. It should *not* take me several hours to several days to add a single cut-and-paste script that adds what is now an essential promotional element to my site. I can't add a hook until I know exactly where the [expletive deleted] hook is suppose to connect in the thousands of lines of [expletive deleted] code. This is why I abandoned Thesis; every time I wanted to make even the slightest addition or change, I had to waste hours writing a hook and then figuring out how to get it to appear where I wanted it and then writing the CSS to get it appear how I wanted it. Alas, none of the plugins for Wordpress are reliable at present plus each plugin adds download issues so I try to limit them. And two of the Facebook Like plugins seem to have a conflict with my Platform Pro theme (or at least appear to create an instability). I gather from the lack of solutions beyond "go code hack for yourself" or "try someone else's code hack" that no one is going to tell me where I can drop my Facebook Like button script in Platform Pro to have it appear on posts. Since the last time I asked a code hacking question I was told I shouldn't hack my Pagelines theme code, I would find this highly amusing if I wasn't under such a heavy deadline pressure. Unfortunately, while I have to get back to work this weekend getting all the rest of the updates, changes and material finished, I know that the first thing everyone will point out is the lack of a Likes button on the posts. Frankly, a *very* useful support feature would be a cookbook of code hacks for common issues like adding necessary features like the Facebook Like button, Google fonts not listed in the Typography drop-down menu and so forth. Thank you again, Rangelone, for the effort. If I ever get a chance to figure out how to drop in the Facebook Like button code, I'll be sure to document it and make a post for my site to help others. (And perhaps add it to this discussion in case someone else comes here with the same problem.) Share this post Link to post Share on other sites
guerrilla 0 Report post Posted August 20, 2011 After 90 minutes, I have the Facebook Like button on the posts but not exactly where I want it. Apparently that is the limitation. I can only have it above or below the loop but not by the "Comments" link after the title (apparently I have to use the standard hooks of before, after, top or bottom of the The Loop unless I want to hack the Platform Pro code). I'll write up a post for my site telling other WP users precisely what needs to be done and the limitations unless they want to spend considerably more time (which probably would not be cost-effective for 99.9% of my SMB readers who are using Pagelines). Thanks again to Rangelone for answering my post. Share this post Link to post Share on other sites
catrina 103 Report post Posted August 20, 2011 Do you need further assistance? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
macosworld 0 Report post Posted September 2, 2011 Hi! Have similar question. I want to add facebook and twitter share buttons under the each thumbnail on the first page. How can i do this? Thanks! Share this post Link to post Share on other sites
christian_w 0 Report post Posted September 2, 2011 I'd be also interested in a solution. I already found this modification/ additional line to the funktions.php that will add a Google+ button to the social bar under each posting. [code] add_action( 'wp_head', create_function('','echo "";')); add_filter( 'pagelines_before_sharebar', create_function('', 'return "";'));[/code] I tried to modify these two lines to display a Facebook Like-button as well as the Twitter/ Tweet this-button beneath each posting but I failed miserable. Does anyone has a solution? I'd figure that this might be a common modification. Thanks in advance. Chris Share this post Link to post Share on other sites
catrina 103 Report post Posted September 2, 2011 Have both of you already tried using a plugin? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
macosworld 0 Report post Posted September 4, 2011 What kind of plugin? Share this post Link to post Share on other sites
catrina 103 Report post Posted September 4, 2011 A plugin like this one: http://wordpress.org/extend/plugins/facebook-like-button/ Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
macosworld 0 Report post Posted September 4, 2011 The goal is to put the like button for FB and G+ under thumbnail on the front page. Here ??“ http://cl.ly/25361n0X241b0Y1w2Y2q Share this post Link to post Share on other sites
catrina 103 Report post Posted September 4, 2011 If you're also going to add a G+ button, that will require a separate plugin (like this one: http://wordpress.org/extend/plugins/google-plus-one-google1/). A hook and CSS can be used to determine the placement of these buttons. Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
christian_w 0 Report post Posted September 5, 2011 Hello Catrina, I installed the Facebook plugin you recommended and it is working just fine. But now I am running into problems trying to position the Like-Button. I would like to place it in the sharebar next to a Google+ button. I tried to modify the hook I posted above but I end up with a fatal error each time. Any further hints would be highly appreciated ;) Share this post Link to post Share on other sites
kastelic 6 Report post Posted September 5, 2011 Hey guys, if you have trouble placing the like button try some of these hooks: [code] MAIN CONTENT pagelines_before_theloop pagelines_inside_top_theloop pagelines_inside_bottom_theloop pagelines_after_theloop POSTLOOP pagelines_loop_post_start pagelines_loop_page_title_after pagelines_loop_post_header_start pagelines_before_excerpt // 1.5.1 pagelines_after_excerpt pagelines_loop_before_post_content pagelines_loop_after_post_content pagelines_loop_post_end pagelines_loop_clipbox_start pagelines_loop_clip_start pagelines_loop_clip_excerpt_end pagelines_loop_clip_end pagelines_loop_clipbox_end COMMENT FORM pagelines_before_pl_comments pagelines_inside_top_pl_comments pagelines_inside_bottom_pl_comments pagelines_after_pl_comments POST NAVIGATION pagelines_before_postnav pagelines_inside_top_postnav pagelines_inside_bottom_postnav pagelines_after_postnav POST AUTHOR INFORMATION pagelines_before_postauthor pagelines_inside_top_postauthor pagelines_inside_bottom_postauthor pagelines_after_postauthor POSTS INFO pagelines_before_postsinfo pagelines__inside_top_postsinfo pagelines_inside_bottom_postsinfo pagelines_after_postsinfo PAGINATION pagelines_before_pagination pagelines_inside_top_pagination inside_bottom_pagination pagelines_after_pagination CONTENT SHARING TOOL pagelines_before_sharebar pagelines_inside_top_sharebar pagelines_inside_bottom_sharebar pagelines_after_sharebar [/code] Share this post Link to post Share on other sites
christian_w 0 Report post Posted September 8, 2011 Thank you kastelic for your support. But my problem is not where to place the button but rather how. As mentioned above I already inserted a Google+ Button in sharebar - using the following code in functions.php [code] // Google+ Button // add_action( 'wp_head', create_function('','echo "";')); add_filter( 'pagelines_before_sharebar', create_function('', 'return "";')); [/code] When I am trying to add a second hook for the FB Like Button (using the Plugin Catrina suggested) the Google+ Button disappears. [code] // FB-Like Button // add_action('pagelines_before_sharebar', 'add_fb_like'); function add_fb_like(){ ?> Share this post Link to post Share on other sites catrina 103 Report post Posted September 9, 2011 If the FB Like button could be implemented using a hook instead of a filter, it could be placed inside the same DIV (which you can create yourself to look like the sharebar and put inside a hook) as the Facebook like button, but you'd have to find a different Google+ plugin that uses a shortcode to insert the button. Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse 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 Login via PageLines Signup To PageLines Sign in to follow this Followers 0
catrina 103 Report post Posted September 9, 2011 If the FB Like button could be implemented using a hook instead of a filter, it could be placed inside the same DIV (which you can create yourself to look like the sharebar and put inside a hook) as the Facebook like button, but you'd have to find a different Google+ plugin that uses a shortcode to insert the button. Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites