Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #833521

    Hello,

    I would like to use this plug-in to add an author box to my blog posts: https://wordpress.org/plugins/simple-author-box/

    When I use it on the default setting, it adds the box to both my posts and my portfolio items, but I just want it on my posts. The plug-in support says that “If you want to manually insert the Simple Author Box in your template file (single post view), you can use the following code snippet:”

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

    The problem is that I have no idea where to put to this snippet to make show up on single-entry blog posts only. Do you have any ideas? I am running an Enfold child theme with my own functions.php file.

    Sample Porfolio Entry: http://mjm.flywheelsites.com/work/ (Purchase code hidden if logged out)(Purchase code hidden if logged out) /
    Sample Blog Post: http://mjm.flywheelsites.com/fall-love-audience/

    Thanks!

    #834765

    Hey,

    The easiest way would be adding following code to Quick CSS in Enfold theme options under General Styling tab

    .single-portfolio .saboxplugin-wrap {
        display: none!important;
    }

    If you would like to edit the file, please go to includes/loop-index.php file and find following line

    
    echo '<footer class="entry-footer">';

    And add your code right above that line as following

    
    
    if ( function_exists( 'wpsabox_author_box' ) && is_single() ) echo wpsabox_author_box();

    Best regards,
    Yigit

    #835414

    Thanks, Yigit!

    Adding it to quick CSS didn’t work, but adding the code to the loop-index.php file worked perfectly!

    #835458

    Hi,

    I’m glad Yigit was able to help. If you need anything else, please let us know here in the forums.

    Best regards,
    Jordan Shannon

    #837608

    This topic can be closed. Thanks!

    #837616

    Hi,

    No problem. Let us know if you need additional help.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Author Box’ is closed to new replies.