One idea:
1. Remove the Starbox abh_box shortcode from where it is now.
2. Create a new sidebar like you did for the ads.
3. Add the abh shortcode to the sidebar widget.
4. Add the dynamic sidebar in single.php just below the_tags:
<?php the_tags('<p class="post-tags"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?>
<?php dynamic_sidebar('abh_box'); ?>
<?php if ( ( ot_get_option( 'author-bio' ) != 'off' ) && get_the_author_meta( 'description' ) ): ?>
5. You could either delete the default author-bio <div> or use this css, or probably just disable the theme option:
.author-bio {
display: none;
}
So far so good, but not that shortcode should be added in the widget sidebar.
What have I done has been disabled biography box that comes by default theme options, I disabled the plugin starbox, I created a new sidebar in sidebar ID, I put abh_box, I added the dynamic sidebar in single.php just below the_tags:
<?php the_tags('<p class="post-tags"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?>
<?php dynamic_sidebar('abh_box'); ?>
<?php if ( ( ot_get_option( 'author-bio' ) != 'off' ) && get_the_author_meta( 'description' ) ): ?>
The theme supports the built-in shortcodes in text widgets. Maybe for other shortcodes you need to add this to your functions.php:
add_filter('widget_text', 'do_shortcode');
I still do not understand it well.
What I see in your site is “[starbox]” just above the related posts. It appears that the widget doesn’t know what to do with that shortcode so it outputs the “[starbox]” as text. I would try adding the filter I posted above to see if that enables the shortcode in the widget.
once added that, what would be the code that would be introduced into the text widget
If you leave the shortcode in the text widget then it should generate whatever would be created by the shortcode when the page is created.
I am finding it difficult, and in the end it sure is silly, if not too much trouble, could explain step by step, with more details, but I leave it so and now this.
Thank You.
1. In Theme Options > Sidebars, create a new sidebar. Give it an id of sidebar-abh-box.
2. In Widgets, add a text widget to the sidebar.
3. In the text widget, enter the [starbox] shortcode.
4. In your child theme functions.php file, add the filter so the widget is able to understand the shortcode:
add_filter('widget_text', 'do_shortcode');
5. In your child theme single.php file, insert the php code to add the sidebar you created:
<?php dynamic_sidebar('sidebar-abh-box'); ?>
6. Inspect the page elements to get the id or class of the text widget.
7. Add whatever css you need to position/style the abh-box.
Does that help>