Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to modify your functions.php (best done with a child theme NOT the theme’s core.

    Assuming you’re a single author for the site, it’d be something like this in the functions.php file:

    function add_starbox(){
    if (is_single()) {
    $content .= do_shortcode('[starbox]');
    return $content;
    }
    
    add_filter( "the_content", "add_starbox" );

    You can use the same extra tags where it says [starbox] as you can with its shortcodes anywhere else.

    See if that helps.

    Theunknown1

    (@deexgnome)

    Hi, i tried your code but get an internal Server Error with that.
    If i understand you right the idea behind is to add this to the functions and after add the [Starbox] tag to the single.php as example?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Starbox and page breaks’ is closed to new replies.