• Resolved kbrook25

    (@kbrook25)


    https://ohia.web.jhu.edu/

    If you scroll down to the Announcements section on the HomePage, the Featured Image on each post is left justified. If you click the post, the image is centered on the actual post page, just not on the homepage.

    What Custom CSS code will center the featured image of the post on the homepage?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @kbrook25

    The images are left aligned because of the image size that you have used.

    However to align the existing image in the center you have to use given CSS.

    For this go to Admin Panel > Appearance > Customize > Additional CSS and paste below given CSS.

    .home-section-latest-news .latest-news-item img {
        margin: 0 auto 15px auto;
    }

    Hope this helps.

    Also if you want more dedicated and swift support on the theme, please visit the theme’s official support forum where the theme’s official support team are standby to answer each and every one of your questions.

    https://themepalace.com/forum/university-hub/

    Best Regards!!

    Thread Starter kbrook25

    (@kbrook25)

    That worked perfect! Thanks so much, you rock! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Centering featured image of posts on homepage’ is closed to new replies.