The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Flexible Posts Widget
[resolved] Hide title when no post found (2 posts)

  1. pauro
    Posted 2 years ago #

    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


  2. DaveE
    Plugin Author

    Posted 2 years ago #

    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>


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flexible Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic