WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] How to center title under thumbnail in sidebar widget (12 posts)

  1. anefarious1
    Member
    Posted 12 months ago #

    Hello. How can I center the title text under my thumbnails in the widget? I use a narrow sidebar so some of my titles are two lines. I'd like to be able to center all the titles so they look better. Thanks!

    http://wordpress.org/extend/plugins/top-10/

  2. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    You can try .tptn_related { text-align: center; }

  3. anefarious1
    Member
    Posted 11 months ago #

    Hello Ajay. I will try this code but could you tell me which file I need to edit? Thanks!

  4. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    You can put this in the Custom Style tab of the plugin settings

  5. anefarious1
    Member
    Posted 11 months ago #

    Hi Ajay,

    I tried this but it didn't work. A page on my site is:

    http://canigivemycat.com/pregnancy-test

    You see how the title under the thumbnail (left sidebar) doesn't center? Any other ideas? Thanks!

  6. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    Can you try:

    .tptn_posts { text-align: center; }
    .tptn_title { display: block; text-align: center; }
  7. anefarious1
    Member
    Posted 11 months ago #

    Ajay that did the trick! Thanks so much

  8. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    Sounds great. Thanks for marking it as resolved.

  9. imnotatrophywife
    Member
    Posted 11 months ago #

    I am having same issue, but have no idea where to put the code listed above. If I go into my edit section of the plugin -where does it go? My images and titles are not centered on the most popular post plugin. http://imnotatrophywife.com
    Thanks!

  10. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    You need to add the code in the Custom Style tab of the plugin settings page.

  11. imnotatrophywife
    Member
    Posted 11 months ago #

    Where is this exactly. I went to plugin page, clicked settings, but where is the "custom style" tab. I went into the WordPress.org dashboard, under plugins, scrolled down to most popular posts plugin, clicked settings, scrolled down... and didn't see any "custom style."
    I think I am not in the right place!?
    Thank you

  12. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    I'm not sure what you mean by "Most popular posts" plugin.

    Please check out the screenshots of the settings page:

    https://wordpress.org/plugins/top-10/screenshots/

Reply

You must log in to post.

About this Plugin

About this Topic