Keyword

Read more .............. & title tags

  • Alan Morris
  • Alan Morris's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 month ago #131545 by Alan Morris
Read more .............. & title tags was created by Alan Morris
I have categorie pages for my K2 items each with an image, and a 30 word maximum intro text before the read more button. How can I add 'alt' tags to the 'read more' buttons?

For example on this page the read more buttons have no alt tags and I would like to add descriptive alt tags for SEO.

Link: Link to page

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
10 years 1 month ago #131546 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Read more .............. & title tags
Hi,

In your template overrides folder, find this file: category_item.php
Then find this section:
<?php if ($this->item->params->get('catItemReadMore')): ?>
	<!-- Item "read more..." link -->
	<div class="catItemReadMore">
		<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
			<?php echo JText::_('K2_READ_MORE'); ?>
		</a>
	</div>
	<?php endif; ?>
Where you can add alt attribute to the <a> tag

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum