Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Megamenu 'more news' button
(1 viewing) (1) Guest
Userguide, Report bugs, New Ideas...
  • Page:
  • 1

TOPIC: Megamenu 'more news' button

Megamenu 'more news' button 11 years, 6 months ago #9795

  • rymy
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 39
  • Karma: 0
Question is about MORE NEWS button in Megamenu (SJ News template).
Could anyone please tell me how to change text 'more news' and URL of the button (right now every "MORE NEWS" button points to <a href="#">)?

BTW
I've searched forum for issue above, of course there is at least one topic describing my problem, but unfortunately I can see only "This topic is limited. You need to login."

Re: Megamenu 'more news' button 11 years, 6 months ago #9810

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear rymy,

According to the purpose of design, the # links are inserted in "More news".

If you want to change text and link, please do the following steps.

a) go to "modules\mod_articles_latest\helper.php", finding:

if ($access || in_array($item->access, $authorised)) {
	// We know that user has the privilege to view the article
	$item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug));
} else {
	$item->link = JRoute::_('index.php?option=com_users&view=login');
}


=>

if ($access || in_array($item->access, $authorised)) {
	// We know that user has the privilege to view the article
	$item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug));
} else {
	$item->link = JRoute::_('index.php?option=com_users&view=login');
}

$item->catlink = JRoute::_(ContentHelperRoute::getCategoryRoute($item->catid));



b) go to "templates\sj_news25\html\mod_articles_latest\default.php", finding:

<?php if($moduleclass_sfx==''){?><a href="#" class="more-news"><?php echo 'More news';?></a><?php } ?>


=>

<?php if($moduleclass_sfx==''){?><a href="<?php echo $item->catlink;?>" class="more-news"><?php echo 'More news';?></a><?php } ?>


Thanks
Ticket System | Join our Clubs to download our extensions and templates
The following user(s) said Thank You: rymy
  • Page:
  • 1
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes