Support » Plugin: Facebook Button by BestWebSoft » [Plugin: Facebook Like Button Plugin] facebook shortcode

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    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

    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.

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

    Plugin Author bestwebsoft

    (@bestwebsoft)

    We are glad that the issue solved.

    SIncerely,
    Oksana

    Oleg

    (@olegapplaud)

    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!

    Oleg

    (@olegapplaud)

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

    Plugin Author bestwebsoft

    (@bestwebsoft)

    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

    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!

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hello,

    please write echo fcbk_bttn_plgn_shortcode(“”) ;n instead of echo fcbk_bttn_plgn_shortcode() ;

    Best regards!

    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!

    Oleg

    (@olegapplaud)

    Thank you a lot!

    Plugin Author bestwebsoft

    (@bestwebsoft)

    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!

    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.

    nevermind, i have worked it out thank-you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Facebook Like Button Plugin] facebook shortcode’ is closed to new replies.