• Resolved pauro

    (@pauro)


    Hi there,
    First, thank you for this simple but very handy plugin

    I use this widget to pull some post in certain category, off course when the category is empty, the ‘no post found’ will appear. But the problem is, the widget title <h2> is also appear.

    How can I make the widget title disappear when there is no post within the category?

    thanks in advance
    p

    https://wordpress.org/plugins/flexible-posts-widget/

Viewing 1 replies (of 1 total)
  • Plugin Author DaveE

    (@dpe415)

    Hi Pauro,

    The simplest way to do this would be to create a custom HTML template in your theme folder and then remove lines 37-40 from your custom template:

    <?php else: // We have no posts ?>
    	<div class="dpe-flexible-posts no-posts">
    		<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
    	</div>

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Hide title when no post found’ is closed to new replies.