first image in slides doesn't show captions

Support Area Forums Selfie first image in slides doesn't show captions

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://www.vilhelmstokstad.com
  • Author
    Posts
  • #21736
    vilhelm stokstad
    Participant

    Hi again!

    Seems like the first image in a slideshow doesn’t show the captions embedded, works fine on every other image in the slide though. workaround or fix possible?

    thanks a lot!

    #21742
    Bill Robbins
    Moderator

    Vilhelm,

    That’s a good question. The first image that’s show is the hero image. What we could do for it is make the tile of the home block the caption. Here’s how you can do that:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose page-home-template.php
    3. Find this line:
      
      <a rel="swipe-group-<?php the_ID(); ?>" href="<?php echo wp_get_attachment_url( get_post_meta($post->ID, "portfolio_hero", true) ); ?>" class="swipebox pop-open"></a>
      

      and replace it with this:


      (Be sure to copy that code from the support site and not the notification email.)

    4. Save your changes.

    See if that won’t allow you to use the title of the home block as the caption for the first item. Let me know if you have any trouble.

    Thanks,
    Bill

    #21745
    vilhelm stokstad
    Participant

    Hi, yes this does help, i just have to rename all the home blocks to captions instead. Making it a bit more difficult to tell which is which, but it will work for now. Great, thanks!

    #21746
    Bill Robbins
    Moderator

    Glad that helped out. It’s not perfect, but at least you’ll now have the ability to add them.

    Take care,
    Bill

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘first image in slides doesn't show captions’ is closed to new replies.