*

jcarrolo01

  • *****
  • 256 posts
Alt attributes for the images...
« on: March 07, 2021, 09:07:20 PM »
Hello,

When we add a image in blog that don't have all attributes for the image, what can be done about this?


Best Regards
João Carrolo

*

MB Themes

Re: Alt attributes for the images...
« Reply #1 on: March 08, 2021, 08:19:20 AM »
@jcarrolo01
I think only image inserted via rich editor may not have alt attributes.
If not defined in editor, nothing can be done about it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

jcarrolo01

  • *****
  • 256 posts
Re: Alt attributes for the images...
« Reply #2 on: March 09, 2021, 11:41:35 PM »
Hello...

No, i'm not talking about images inserted via rich editor.

Take a look on this lines:
Code: [Select]
  <a class="blg-img" href="https://www.klassificados24.com/blog/article/comentar-e-atribuir-uma-classificao-aos-anncios-b2">
    <div class="blg-img-wrap">
      <img src="https://www.klassificados24.com/oc-content/plugins/blog/img/blog/2.jpg" />
    </div>
  </a>

Best Regards
João Carrolo

*

MB Themes

Re: Alt attributes for the images...
« Reply #3 on: March 10, 2021, 08:47:32 AM »
@jcarrolo01
Oh I see now, in loop-single.php of plugin find this line:
Code: [Select]
      <img src="<?php echo blg_img_link($b['s_image']); ?>" />

Replace with:
Code: [Select]
      <img src="<?php echo blg_img_link($b['s_image']); ?>" alt="<?php echo osc_esc_html(blg_get_title($b)); ?>"/>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots