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

Tower Alt and Title text

altmediatitleTower
    • 6 years, 3 months ago daniela gauci
      Participant

      Hi,

      Unfortunately all our site SEO reviews are pointing us to this issue – missing Alt and Title text eventhough they have been set in the media / image attributes.

      I have seen a few posts related to this and need your help to guide me with step by step changes that I need to do in order to show allt and title texts for my images please?

      I have a simple website with standard pages. No portfolios or blogs.

      Thanks a lot!

      Dan

    • 6 years, 3 months ago Mirela
      Participant

      Hello,

      By default the alt and title are not included in media. This is a decision of theme developers. However you can add them by customizing the responsible code. Check this related ticket for it: https://support.codeless.co/?topic=image-alt-tags-missing-on-home-page

      Best regards!

    • 6 years, 3 months ago daniela gauci
      Participant

      Hi,

      I added code in media.php, latest_blog.php and loop-grid.php.

      The alt text for media elements is being shown if I use view source but is not being displayed when mouse is placed over image. This is fine.

      However, I noticed that media which is inserted in page as a ‘Service Media’ element have empty alt tags. Any idea why?

      Thanks and regards,

      Daniela

       

       

    • 6 years, 3 months ago daniela gauci
      Participant

      Hi,

      I fixed this by updating code in services_media.php. Can you please help me fix the code for the featured staff image in element Single Staff?

      Thanks

    • 6 years, 3 months ago Mirela
      Participant

      Hello,

      Open file vc_templates/staff.php and find these lines:

      while ($additional_loop->have_posts())
                  { 
                      $additional_loop->the_post();              
                      $content = get_the_content();
                      $featured = codeless_image_by_id(get_post_thumbnail_id(), 'staff', 'url');

      Right above $featured, add this line:
      $alt = get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true);

      Now scroll down to line (38):
      $output .= '<img src="'.esc_url($featured).'" alt=" ">';
      Edit to this: $output .= '<img src="'.esc_url($featured).'" alt="'.$alt.'">';
      Result screenshot: https://ibb.co/q5YBjdt

      Find all file’s edited code here: https://codeshare.io/5eNVVx

      Best regards!

    • 6 years, 3 months ago daniela gauci
      Participant

      Thanks a lot.

      It worked and all ok!

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