Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marco Chiesi

    (@marcochiesi)

    Hi Michelle,
    I think this could be easily done. I’m just wondering if this behavior (don’t display markup around empty widgets) should be applied by default, or it should be controlled using a hook.

    Thread Starter FriendlyWP

    (@mmcginnis)

    Marco, fantastic! Either way works for me – I’m a developer and have no trouble adding the additional hook into a theme or plugin file. I agree I don’t know if this would be desired by default – could there be people out there who want a widget to display with just the title, no content, for instance? I wouldn’t put it past them. 😉

    Whatever results in less headache / upkeep for you long term would be my choice. Thanks again for considering it!

    Plugin Author Marco Chiesi

    (@marcochiesi)

    Hi Michelle,
    I’ve included the filter in the current dev version available on Github (the ZIP link is on the right). Please could you take a test?
    It should be used as followd:

    add_filter( 'black_studio_tinymce_hide_empty', '__return_true' );

    Thread Starter FriendlyWP

    (@mmcginnis)

    Wow thanks Marco! I tested and as far as I can tell it works perfectly. THANK YOU! (I’ve also thanked you via PayPal 😉 )

    Let me know if you ever need add’l help beta testing, I’m always working on WP sites and am happy to help out.

    Michelle

    Plugin Author Marco Chiesi

    (@marcochiesi)

    Hi Michelle,
    thanks a lot for your donation. If you want to help with beta testing you are more than welcome: just keep an eye on the GitHub repo (you may use the “Watch” feature if you have a GitHub account).
    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Don't display if empty?’ is closed to new replies.