-
AuthorPosts
-
August 2, 2017 at 3:38 pm #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/case-study-event-design-for-sioux-falls-design-week-2017/
Sample Blog Post: http://mjm.flywheelsites.com/fall-love-audience/Thanks!
August 5, 2017 at 1:21 pm #834765Hey,
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,
YigitAugust 7, 2017 at 3:35 pm #835414Thanks, Yigit!
Adding it to quick CSS didn’t work, but adding the code to the loop-index.php file worked perfectly!
August 7, 2017 at 4:38 pm #835458Hi,
I’m glad Yigit was able to help. If you need anything else, please let us know here in the forums.
Best regards,
Jordan ShannonAugust 11, 2017 at 7:09 pm #837608This topic can be closed. Thanks!
August 11, 2017 at 7:19 pm #837616Hi,
No problem. Let us know if you need additional help.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Author Box’ is closed to new replies.
