WordPress.org

Forums

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

  1. jinseiichido
    Member
    Posted 1 year 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.

    https://wordpress.org/plugins/fancier-author-box/

  2. Dragan Nikolic
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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');?>
    </div>
  4. jinseiichido
    Member
    Posted 1 year 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
    add
    <?php echo do_shortcode( '[ts_fab]' ); ?>

    thank you for this authorbox!

  5. Dragan Nikolic
    Member
    Plugin Author

    Posted 1 year ago #

    Great.

    Thanks for stopping by.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Fancier Author Box by ThematoSoup
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.