• Resolved bkjproductions

    (@bkjproductions)


    I did not want to have a blank H2 echoed if there was no Title specified in the parameters, so I did this modification…

    On or around line 88, change to

    		echo '<div class="cross-sells">';
    		if (trim($title)) { echo '<h2>'.__($title,WPSC_CROSSSELL).'</h2>';}
    

    This is useful when used as a widget, where the widget title is what I want to display rather than the title included in this shortcode.

  • The topic ‘Remove H2 title if not being used’ is closed to new replies.