WordPress.org

Ready to get started?Download WordPress

Forums

Image caption should appear when pointing cursor over image thumbnail. (5 posts)

  1. milinpatel17
    Member
    Posted 11 months ago #

    Hi,
    I have created an image gallery in my blog using the default gallery option of WP. In the gallery the image caption appears below the thumbnail of every image. I want that it should appear when I point my mouse over the image caption.

    Can anybody help me with this?

  2. alchymyth
    Forum Moderator
    Posted 11 months ago #

    this will need some adaptations to your theme's styles;

    please post a link to your site, pointing to a post with a gallery.

  3. milinpatel17
    Member
    Posted 11 months ago #

    Thank you alchymyth,

    Currently i've inserted gallery into the page itself! and I guess if the adaptation is applied then it will be applicable for posts as well as pages!

    The link to the page - http://masschool.host-ed.me/gallery/

    [bump moderated]

  4. alchymyth
    Forum Moderator
    Posted 11 months ago #

    start with adding something like this to the end of style.css of your theme, or via a custom CSS plugin:

    .gallery .gallery-item .gallery-caption { visibility: hidden; }
    .gallery .gallery-item:hover .gallery-caption { visibility: visible; }
  5. milinpatel17
    Member
    Posted 11 months ago #

    Thank you alchymyth,
    That worked for me! For now it will do the job! Will come back here if needed to take it one step further.

Reply

You must log in to post.

About this Topic