• Resolved longnha

    (@longnha)


    Hi,

    I’m using Top posts widget, grid image format. How can I add post title after each post please?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Velda

    (@supernovia)

    Hi,

    Right now if someone hovers over one of the images in the grid, the title will display. Showing the title below the image while keeping the grid nicely aligned is a bit tougher, but it’s definitely not impossible. It would require some design work on your end, as you’ll need to consider how you want to handle longer titles, and you’ll likely want a functionality plugin as well.

    This article can help you get started:
    https://jetpack.com/2016/01/12/hooks-customize-top-posts-pages-widget/

    Thread Starter longnha

    (@longnha)

    Hi,

    Before talking about the design, I would like to ask how to display title. The customizing on Jetpack only guide how to show date.

    Can you please help me on this?

    Thanks.

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey there!

    There’s a documentation page you’re welcome to browse about that:
    https://developer.jetpack.com/hooks/jetpack_widget_top_posts_after_post/

    If you check the script in there, what you need to do is writing the script to take the post_id, get the title, then output it.

    Hope that helps 🙂

    Thread Starter longnha

    (@longnha)

    Hi,

    I’m sorry, I’m just amateur in this. Can you please help me write the script?

    Thanks.

    Plugin Support KokkieH

    (@kokkieh)

    Hi there,

    We’re not able to provide help with custom coding like this, no.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Top post Grid image – add post title’ is closed to new replies.