Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter der_velli

    (@der_velli)

    Fixed it already ??

    i just put a

    <style type="text/css">
    <!--
    #pis_posts_in_sidebar-12 {
    display:none;
    }
    
    -->
    </style>

    after the
    <?php if ( $nopost_text ) { ?>

    in the “posts-in-sidebar.php”

    ??

    i needed the specific “-12” class-name “pis_posts_in_sidebar-12”
    Because i use the widget twice on the site …

    Plugin Author Aldo Latino

    (@aldolat)

    Hi Alex,
    glad you found a workaround, but please note that it’s not advisable to edit any plugin’s file because you will have to re-edit them in case of update.

    Also, consider that in the next version you will have the possibility to hide the widget if no posts are found.

    Thread Starter der_velli

    (@der_velli)

    Of course your right – but isnt it always a problem to fix and hack plugins … works only with CSS.
    Any other idea?

    Plugin Author Aldo Latino

    (@aldolat)

    The next version will fit perfectly with your needs. ??
    I hope to release it in the next few days.

    Thread Starter der_velli

    (@der_velli)

    woohoooo! ??
    thank you for your work btw !!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide the whole widget if there are no posts’ is closed to new replies.