Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Image alt, title, caption ?

altcaptionDescriptionimage
    • 9 years, 9 months ago Lookie
      Participant

      Expired

      Hello,

      I have a question regarding image alt, title and caption properties in “Gallery Grid” mode on Portfolio Item. I have added Titles in “Add/Edit Slides” but I can’t figure it out how to set it up to work when in browser.
      What I would like to have is a title / caption and alt attribute on each image when in gallery grid mode, obviously for seo reasons. So when a user hovers over an image title / alt displays.

      Am I missing something? Thank you in advance for prompt reply and help.

      Luka

    • 9 years, 9 months ago Lookie
      Participant

      Expired

      Anybody from support? I would be grateful for any reply regarding my question.

      Thank you.

       

      Luka

    • 9 years, 9 months ago Lookie
      Participant

      Expired

      Is there any other way to solve this problem other than modifying title attr in “register_shortcodes.php”?
      $output .= ‘ title=“”>’;

      I would really appreciate any feedback!
      Thanks.

      Luka

       

    • 9 years, 9 months ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      Please go to file include/view/portfolio/single-gallery.php and find these lines:

      <a class="lightbox-gallery" href="<?php echo esc_url($slide['image']) ?>" title="">
         <div class="visual lightbox">
         <img src="<?php echo esc_url(codeless_image_by_id($slide['attachment_id'], 'port3', 'url'))  ?>" alt="">
          <span class="moon-zoom"></span>
         </div>
      </a>

      Replace with these:

      <a class="lightbox-gallery" href="<?php echo esc_url($slide['image']) ?>" title="<?php echo $slide['title']  ?>">
      <div class="visual lightbox">
        <img src="<?php echo esc_url($slide['image'])  ?>" alt="<?php echo $slide['description']  ?>">
        <span class="moon-zoom"></span>
       </div>
      </a>

      Best regards!

    • 9 years, 9 months ago Lookie
      Participant

      Expired

      Thank you for your support. Is there any way to use shortcode “tooltip” into the latter .php? So that the images would display title tag as tooltip?

       

      Best regards,

      Luka

    • 9 years, 9 months ago Mirela
      Participant

      Hello,

      Sorry but that is not possible.

      Best regards!

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password