Support » Plugin: WordPress Popular Posts » Title Underneath Thumbnail

  • Resolved firelightx

    (@firelightx)


    Hello, I know this question was asked several years ago, but after reviewing the code it seems a whole lot has changed since then so the resolutions offered don’t quite line up anymore.

    I’m wondering if there is a way to get the title of the post to display underneath the thumbnail? I feel like this would be possible via the Custom HTML Markup settings, but haven’t had much luck. Any suggestions?

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    No need for that, actually. The title is already after the thumbnail (HTML markup wise), you just need some CSS to place it below the image.

    Since you didn’t share your site’s URL, I can only suggest a couple of changes to WPP’s stylesheet (wordpress-popular-posts/style/wpp.css):

    /* title styles */
    .wpp-post-title {
    	display:block; /*NEW*/
    }
    
    /* thumbnail styles */
    .wpp-thumbnail {
    	/*display:inline;*/ /*NEW*/
    	/*float:left;*/ /*NEW*/
    	display:block; /*NEW*/
    	/*margin:0 5px 0 0;*/ /*NEW*/
    	margin:0 auto 8px auto; /*NEW*/
    	border:none;
    }

    … where /*NEW*/ are the proposed changes. You may needto adjust the values.

    When you’re done, make sure to copy the wpp.css stylesheet into your theme’s directory to make sure these changes are not overwritten the next time WPP is updated.

    Thread Starter firelightx

    (@firelightx)

    That worked perfectly, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Title Underneath Thumbnail’ is closed to new replies.