Jump to content

listings_header // add image "alt" tag


n00bster

Recommended Posts

besides optimizing jreviews linked category menu items for better SEO results i noticed that category images do not have a "alt" tag. my aim is to contain also the SEO keyword in the "alt" tag.

the "alt" tag what i mean in the joomla category mask:

03.09.2020-19.28.08

the default theme category code in the joomla file (blog.php) does output also the "alt" tag:

<img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($this->category->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8'); ?>"/>

 

the theme category code from jreviews "listings_header" file where i miss the "alt" tag:

<?php echo $Html->image(WWW_ROOT . $page_image,['class'=>'jrLeft'])?>

i think it would be a fine optimization when jreviews would also output the nativ joomla "alt text" to push category SEO results.

Link to comment
×
×
  • Create New...