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

    (@bestwebsoft)

    Hi,

    Thank you for contacting us.

    Yes, it is possible for Facebook buttons.
    Please go to the plugin settings page, open “Custom code” tab, mark “Activate” checkbox in the “Editing bws-custom-code.php” section and add the following code:

    function fcbkbttn_add_custom_text( $buttons ) {
      $custom_text = "<span>PUT HERE THE TEXT YOU WANT TO BE ADDED<span>";
      return $custom_text . $buttons;
    }
    add_filter( 'fcbkbttn_button_in_the_content', 'fcbkbttn_add_custom_text' );

    Please don’t forget to change the text you want to be added in this code.

    Let us know if everything is okay now.

    Sincerely,
    BestWebSoft Support Team

    Thread Starter vbdeco

    (@vbdeco)

    Hi,

    It’s ok and work fine.

    Thank you.

    • This reply was modified 7 years, 11 months ago by vbdeco.
    Thread Starter vbdeco

    (@vbdeco)

    Is it possible to add this class to your code ?

    <h3 class="sd-title"></h3>

    If yes, could you tell me where ?

    • This reply was modified 7 years, 11 months ago by vbdeco.
    Thread Starter vbdeco

    (@vbdeco)

    Hi again,

    I don’t know why, but on another website, i’ve got a <?php the_content(); ?> on the top of the code. Where could i delete it ?

    image

    • This reply was modified 7 years, 11 months ago by vbdeco.
    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Is it possible to add this class to your code ? <h3 class=”sd-title”></h3> If yes, could you tell me where ?
    There are double quotes in your code, you should just replace them with single quotes:

    function fcbkbttn_add_custom_text( $buttons ) {
      $custom_text = '<h3 class="sd-title">PUT HERE THE TEXT YOU WANT TO BE ADDED</h3>';
      return $custom_text . $buttons;
    }
    add_filter( 'fcbkbttn_button_in_the_content', 'fcbkbttn_add_custom_text' );

    I don’t know why, but on another website, i’ve got a <?php the_content(); ?> on the top of the code. Where could i delete it ?
    This code (<?php the_content(); ?>) is a foreign code, please delete it.

    Sincerely,
    BestWebSoft Support Team

    Thread Starter vbdeco

    (@vbdeco)

    Hi,

    I can’t delete <?php the_content(); ?>. As you can see in my screen capture, this code is grey (like “/*Start your code…”).

    Is it why i asked you where i could directly delete it (in which file).

    Hope you will understand my bad english.

    Regards.

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    You can find bws-custom-code.php file using “[wp-root]/wp-content/uploads/bws-custom-code/” path.

    Sincerely,
    BestWebSoft Support Team

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add a text before “Facebook Like Button”’ is closed to new replies.