Make title and content box appear as one unit

HomeSupportPopular WidgetMake title and content box appear as one unit

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45442
    Malin
    Participant

    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?

    #45528
    Xpark Media
    Keymaster

    This 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";
    
    #45641
    Malin
    Participant

    Thanks 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!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.