To insert code use <code>...</code>.
How do I add captions to my images?
  • Hey, how do I add captions to my images?

    e.g. if I go to your page http://themeforest.net/item/striking-premium-corporate-portfolio-wp-theme/full_screen_preview/128763

    When I click the second image the light box appears and I see the caption "Decit sensibus nec an"
  • 26 Comments sorted by
  • I'm having no luck with Portfolio/Gallery titles at all. KaptinLin seems to have gone very quiet (although he did respond to a recent message sent via his Themeforest profile page.

    I've followed the three different threads on this forum and I'm getting nowhere. Currently I have one page on my site which is showing up a small portfolio. Here's the shortcode I'm using:
    [portfolio column="4" nopaging="true" group="false" title="true" desc="true" more="true" moreText="Read More »"]


    Each of the portfolios within that page (there are two currently) is set to Gallery type. I've updated the portfolios.php to the latest version from this forum. Plus I've made the two changes suggested. And also updated Gallery.php. Currently the images within the portfolios aren't displaying their own titles within the lightbox view but instead the name of the whole portfolio are all using the title of the first image.

    http://glennbroadway.com/portfolio-2/

    To be honest I am really confused by the whole Wordpress terminology around portfolios and galleries which isn't helping. I think I understand how these all work now.

    Can anyone please help?!
  • Hey. I have installed the new version, and I can only get the Portfolio lightbox to display the Portfolio Title.

    I would like it to display the title or description of the individual portfolio gallery item. Is that possible?

    Thanks

    Daniel
  • Thanks, I have tried your file, but what wanted to achieve is description for each picture when portfolio type is gallery. i.e. Create a picture story with different captions below each picture. It seems that all captions within the lightbox are inherited from the portfolio decription. Is there anyway around this?
  • Hi jkristoph,

    You can edit on 'striking/framework/shortcodes/portfolio.php'

    Locate line 248,

    change

    $output .= '<a class="lightbox" href="'.$image_src[0].'" title="'. get_the_title() .'" rel="'.(($group=='true')?$rel_group:'gallery-'.get_the_ID()).'">gallery-'.get_the_ID().'</a>';

    to

    $attachment = get_post( $image_id );
    $output .= '<a class="lightbox" href="'.$image_src[0].'" title="'. $attachment->post_content .'" rel="'.(($group=='true')?$rel_group:'gallery-'.get_the_ID()).'">gallery-'.get_the_ID().'</a>';



    Regards,
    KaptinLin
  • Hi Kaptin,

    This doesn't work for me, in fact it breaks the site, I get an error message saying porfolios.php has an error!
  • Hi,

    Will the attached file helps.

    Regards,
    KaptinLin
    portfolios.zip
    4K
  • KaptinLin,

    I'm trying to attempt the same thing. Is it possible to get text different than the title, in the lightbox caption other than the portfolio's title? Perhaps the portfolio image caption?

    -----EDIT-----

    I've been messing with this all afternoon and have come to the conclusion that the above can actually be done using the WP Image Gallery. If you edit the each image's caption it changes the lightbox title to whatever is input in as the image caption. Hopefully this will help someone else out.
  • I uploaded the new portfolios.php and I'm happy to say that the image description now displays under each photo in the portfolio. Thankyou Kaptinlin!
  • Hi Jamarwright,

    Have you try the attached file above?

    It will use the description of the image for lightbox title.

    Regards,
    KaptinLin
  • Kaptin, when I installed the the portfolio.php to 'striking/framework/shortcodes/', it only grabbed the file name and used it as the description. Perhaps I installed it wrong, let me try again.
  • EXACTLY what I was hoping for and the new portfolio.php you uploaded for us, KaptinLin, worked for me – thanks!
  • hmmm...I'm still having trouble with this. Does this fix only when you insert the image into the portolio post, or will it work when you are just uploading the "featured image" I could use help. If this fix has worked for you, please drop me reply letting me know specifically how it is supposed to work. Thanks! You guys rock!
  • Hi Jamarwright,
    You can unzip the attached file to 'striking/framework/shortcodes/' folder.

    Then add lightboxTitle="image" to portfolio shortcode.

    It will use the image title for lightbox title.
    It only works when you insert the image into the portfolio gallery section.

    Regards,
    KaptinLin
    portfolios.zip
    4K
  • Hi KaptinLin,

    Thanks for all of your advice on this topic so far. I have uploaded the new portfolio.php file and now the title of the gallery portfolio appears in beneath each lightbox image.

    However I really need the caption to display instead. I've added lightboxTitle="image" to portfolio shortcode as suggested above but it doesn't seem to have made any difference.

    Please help!
    Thanks
  • Hi atmossphere,

    Not sure what happens.

    Can you give me your page link?
    And post your shortcode here?

    Regards,
    KaptinLin
  • Thank you so much for your help KaptinLin, my site is not yet live so I have emailed you the URL and login details. I hope this is OK! Look forward to hearing from you.
  • I'm having the same problem. Just shows the title of the image, not the caption.
  • @ coffeegirl

    We saw your post on the themeforest forum about having difficulty putting text content into the sidebars. To post content into the sidebars, you would use the text widget. It accepts shortcodes, html styling and more.

    And if you are still having difficulties with this or any other issues, don't hesitate to start a new thread to get the specific assistance you require. There is an update forthcoming for Striking possibly as soon as this weekend, and if not, as soon as Kaptinlin feels he has updated the product to his satisfaction, and it may contain solutions to any matters you are uncertain or having difficulties.

    Happy Striking
    Websys Team
  • Thanks, I am struggling with things a bit so hopefully an update will help. I saw the response about the sidebar but from what I can work out you can only have one sidebar and the same content is shared to all pages.

    Anyway the image issue, it's got a caption for now hwich is better than no caption. No caption made the border look like a mistake so at least some text is there. Thanks. I will keep an eye on themeforest for an update. :-)
  • Hi coffeegirl,

    You can use custom sidebar to using in the different page.

    1) go to 'striking'->'sidebar' to create the sidebar.

    2) go to the page editing page, specific the custom sidebar in 'page general options' moudule.

    3) finally, go to 'appearance'->'widgets' option page to config the widgets.

    Regards,
    KaptinLin
  • Hi, I'm afraid I'm still having real problems trying to display the caption of each image beneath photographs within my portfolio's.

    My website is due to go live in a weeks time and it is essential that every image displays its own caption.

    Currently (in every photo portfolio) the first image displays no text beneath it. The second image displays the title of the first image and this same title then continues to display across all images in the portfolio.

    Please can someone let me know why this is happening and how I can get the captions to display instead?

    Thank you so much.
  • With Version 3, my portfolios have actually stopped displaying the description under every picture, an issue which was solved by using KaptinLin's mod from earlier in the thread. Now all images have the portfolio name under the pictures.
  • Hi there,

    For caption and description instead of image title, you will wait for the new release of striking.

    Regards,
    KaptinLin
  • Hi there. Has the "image description beneath each image in gallery type portfolio" been added? I can still only get my portfolio gallery to display the portfolio title below each image. I would still like to get it to display a unique description for each one.

    The site is here:

    http://www.centuryinteriorsinc.com/our-work/

    If you click any of those galleries, you'll see it inherit the porfolio item name below each, but I would like to be able to use a unique descriptor for each, for example in this case i would like to add a "before" and "after."

    Thanks in advance.

    Daniel

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion