Keyword

Slideshow

  • geo anasto
  • geo anasto's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #138895 by geo anasto
Slideshow was created by geo anasto
Goodmorning
I'd like to ask you a question about the slideshow.
is it possible to have/use the slideshow ONLY for showing some pictures or titles WITHOUT linking you to a new page ? thank you in advance

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago - 9 years 9 months ago #138896 by Krikor Boghossian
Replied by Krikor Boghossian on topic Slideshow
Hello George,

There are two ways.
The easy one:
Paste this in your custom.js file.
(function($){
  $(document).ready(function(){
    $('#slideshow a').click(function(e){
    	e.preventDefault();
  	});
  });
})(jQuery);

The more tricky one.
Open the file located under templates/numodusversus/html/mod_k2_content/Slideshow/default.php

Remove lines 56 and 58 (not 57).
Then locate the following block.
<?php if($params->get('itemTitle')): ?>
    	      <h2 class="slideTitle">
    	      	<a class="moduleItemTitle" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
    	      </h2>
    	      <?php endif; ?>

and change it to:
<?php if($params->get('itemTitle')): ?>
    	      <h2 class="slideTitle">
    	      	<?php echo $item->title; ?>
    	      </h2>
    	      <?php endif; ?>

Please note that the latter method will only strip the title and the image of their links. If you are have enabled other elements as well, eg. the category, you have to remove these links as well.

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

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

  • geo anasto
  • geo anasto's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #138897 by geo anasto
Replied by geo anasto on topic Slideshow
Krikor , works great , Thank you .:)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #138898 by Krikor Boghossian
Replied by Krikor Boghossian on topic Slideshow
You 're welcome George :)

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