WordPress.org

Ready to get started?Download WordPress

Forums

Smart WYSIWYG Blocks Of Content
Remove title tag when the title is empty (3 posts)

  1. cschlens
    Member
    Posted 3 years ago #

    I used a swboc widget and left it's title blank, but an empty h3 tag is still being rendered on the front end. Is there a way to remove this?

    http://wordpress.org/extend/plugins/smart-wysiwyg-blocks-of-content/

  2. cschlens
    Member
    Posted 3 years ago #

    I found a fix. On line 51 of smart-wysiwyg-blocks-of-content.php
    Replace:
    echo $before_title.$swboc_title.$after_title;
    with:

    if ($swboc_title !== '') {
         echo $before_title.$swboc_title.$after_title;
    }
  3. Coen Jacobs
    Member
    Plugin Author

    Posted 3 years ago #

    You are absolutely right. Will fix this in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic