Bring Your Business to Life › Support › Popular Widget › Make title and content box appear as one unit
Tagged: title
- AuthorPosts
- March 17, 2012 at 3:40 am #45442MalinParticipant
Hi,
first of all thanks for the, imo, best popular-posts widget out there!I have only one problem left to solve until I am completely happy with this widget. The title area and the box with the content appears as two units (I’d guess there is a 5-8 px vertical gap between the two). All other sidebar widgets that I have appears as one unit with the title area and content area nicely put together. (To see what I mean, see http://milmotivationmaterial.se/, and compare the popular posts widget “populära inlägg” with the rest of the sidebar widgets).
Is there a way that I can get rid of this gap between the title and the content box?
March 19, 2012 at 8:47 pm #45528Xpark MediaKeymasterThis is a bug on the plug, you will have to edit the plugin. I will apply the fix on the next release.
just move this code in line 119 and 120
if( isset( $title ) ) echo $before_title. $title . $after_title . "\n";
just after line 123 so that the code looks like this
$output = $before_widget."\n"; if( isset( $title ) ) echo $before_title. $title . $after_title . "\n";
March 24, 2012 at 5:36 am #45641MalinParticipantThanks so much for your reply! Just wanted to let you know that I wasn’t able to make it work doing exactly as you suggested. However, moving the $before_widget. did the trick.
Now it looks like this in my plugin file:
if( isset( $title ) )
echo $before_widget. $before_title. $title . $after_title . “\n” ;And this seems to work as far as I can see…
Thanks so much for your help! - AuthorPosts
- You must be logged in to reply to this topic.