Ready to get started?Download WordPress


Fancier Author Box by ThematoSoup
Adding content before the authorBox (5 posts)

  1. jinseiichido
    Posted 10 months ago #

    Hi there.

    The authorBox works great! I see that it's added at the end of my post. I had social buttons after my post, and now these social buttons are displayed after the author box.

    How can I sneak in the social buttons right before the author box?

    Thank you.


  2. Dragan Nikolic
    Plugin Author

    Posted 10 months ago #

    It depends on that social buttons plugin and if it also uses the_content filter.

    I believe someone has already posted a solution to this and it's somewhere in the forum, but you need to find it.

    Basically, you need to change the ts-fab.php (Plugins > Edit > Fancier Author Box). Locate this line:

    add_filter( 'the_content', 'ts_fab_add_author_box', 15 );

    and change that number 15 to a bigger number. Try several numbers until you achieve what you need.

    I don't suggest you do this if you're not familiar with PHP. Also, you'll need to do this every time you update the plugin.

  3. jinseiichido
    Posted 10 months ago #

    Thank you for answering my question swiftly.

    Im not using a plugin for the social buttons. I would like to display this content before the authorBox.

    <div class="kizi02">
      <?php get_template_part('this');?>
  4. jinseiichido
    Posted 10 months ago #

    I managed to find my own answer.

    comment out add_filter line then add the second line to the ts-fab.php file.

    // add_filter( 'the_content', 'ts_fab_add_author_box', 15 );
    add_shortcode( 'ts_fab', 'ts_fab_add_author_box' );

    then in your theme php editor
    <?php echo do_shortcode( '[ts_fab]' ); ?>

    thank you for this authorbox!

  5. Dragan Nikolic
    Plugin Author

    Posted 10 months ago #


    Thanks for stopping by.


You must log in to post.

About this Plugin

About this Topic


No tags yet.