Keyword

modify k2 content mod

  • zhoulieshu
  • zhoulieshu's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #149250 by zhoulieshu
modify k2 content mod was created by zhoulieshu
i want to move the more link to the top , can anybody share ideas,
www.dropbox.com/s/68tnz4lbjup8n1e/k2-more.png?dl=0
the website examble is below
www.lyjdys.com/

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #149264 by Krikor Boghossian
Replied by Krikor Boghossian on topic modify k2 content mod
You can override the templates of K2 and move it manually.
The more button in the category.php file should look like this:
<?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; ?>

For more information regarding overrides please read this tutorials.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

and

www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum