WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Like Button
[resolved] facebook shortcode (15 posts)

  1. saxymamacreations
    Member
    Posted 1 year ago #

    unable to get the facebook shortcode to load on my home page I follwed what the plugin said "If you would like to add a FaceBook button to your website, just copy and put this shortcode onto your post or page: [fb_button]."
    http://www.saxymamacreations.com

    http://wordpress.org/extend/plugins/facebook-button-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    Where exactly you have added the shortcode? It is intended for adding to the page content only. Most likely that you've added it to the php template code.

    In order to add in to the code, use strings below:

    <?php if( function_exists( 'fcbk_bttn_plgn_shortcode' ) ) fcbk_bttn_plgn_shortcode() ; ?>

    Best regards,
    Oksana

  3. saxymamacreations
    Member
    Posted 1 year ago #

    Hi,
    Thank you for responding. I'm using a storefront theme and I went into the storefront section and then into header and I used your code but it still didn't work. Any suggestions? I have a shop and i'd like the facebook button to be on my main page.

  4. saxymamacreations
    Member
    Posted 1 year ago #

    Well I just did all the code by hand instead of using the widget, I think it'll do for now. thanks anyway!

  5. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    We are glad that the issue solved.

    SIncerely,
    Oksana

  6. Oleg
    Member
    Posted 1 year ago #

    Hello!
    I'll be glad if someone can help me sort out this problem.
    I'm trying to set this code

    <?php if( function_exists( 'fcbk_bttn_plgn_shortcode' ) ) fcbk_bttn_plgn_shortcode() ; ?>

    in .../...mytheme.../includes/gallery.php, but nothing happens at all!

    Thank you!

  7. Oleg
    Member
    Posted 1 year ago #

    Isn't there gonna be a parameter when calling the fcbk_bttn_plgn_shortcode() ?
    Thank you!

  8. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    It is necessary to write in such a way:

    <?php if( function_exists( 'fcbk_bttn_plgn_shortcode' ) ) echo fcbk_bttn_plgn_shortcode() ; ?>

    We are using echo option in order to output information.

    Best regards,
    Oksana

  9. littledove22
    Member
    Posted 1 year ago #

    Neither of these work for me. This one ("<?php if( function_exists( 'fcbk_bttn_plgn_shortcode' ) ) echo fcbk_bttn_plgn_shortcode() ; ?>")

    produces this error (ON THE PAGE!!!) :

    "Warning: Missing argument 1 for fcbk_bttn_plgn_shortcode(), called in /home/(site)/public_html/wp-content/themes/(theme)/header.php on line 74 and defined in /home/(site)/public_html/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 484"

    Who would put the error on the page instead of in the template! Wow I don't like this plugin!

  10. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    please write echo fcbk_bttn_plgn_shortcode("") ;n instead of echo fcbk_bttn_plgn_shortcode() ;

    Best regards!

  11. robertlundell
    Member
    Posted 1 year ago #

    My skillz in PHP is limited so I have no Idea what I supposed to do with the PHP code. shouldn't it be a function somewhere that are being called? So what exactly do I have to put in the header to get my own like button to be displayed?

    Br
    Robert!

  12. Oleg
    Member
    Posted 1 year ago #

    Thank you a lot!

  13. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Robert, it is necessary to write the following line in the required place of the template (php file)

    <?php if( function_exists( 'fcbk_bttn_plgn_shortcode' ) ) echo
    fcbk_bttn_plgn_shortcode("") ; ?>

    Or you can use shortcode in the content of the page - add to the editor; more detailes can be found on the page of the plugin settings - please select the word "shortcode" in the block "Position".

    If the displaying after the content of the page will be selected, then the button should automatically appear in the selected place when the settings is saved.

    Best regards!

  14. Lesley2013
    Member
    Posted 1 year ago #

    Hi,
    I've just installed this plugin... as the previous posters i'd like to use the php option as i want to place it on the right hand side of my menu bar.

    i'm using twenty twelve dark theme and here is my development site

    Whereabouts in the header.php should i place this code?

    Much appreciated.

    Thank-you.

  15. Lesley2013
    Member
    Posted 1 year ago #

    nevermind, i have worked it out thank-you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.