Hi,
after backing-up the template, I tried a "brute force" solution (as I do not know neither css nor php codes).
I've modified JOOMLAROOT/templates/jp-bw/roksprocket/layouts/mosaic/themes/default/item.php
Instead of text in bold:
<div class="sprocket-mosaic-image-container">
<a href="<?php echo $item->getPrimaryImage()->getSource(); ?>" data-uk-lightbox title="<?php echo $item->getPrimaryImage()->getAlttext(); ?>"><img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" class="hover-effect" />
<p class="view">+</p></a>
I wrote:
<div class="sprocket-mosaic-image-container">
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>" ><img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" class="hover-effect" />
<p class="view">+</p></a>
Then, as my "read more" link was no longer useful, I removed it simply by deleting the following line in bold:
<?php if ($item->getPrimaryLink()) : ?>
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>" class="uk-button uk-button-primary"><span><?php rc_e('READ_MORE'); ?></span></a>
<?php endif; ?>
Now it appears to work just as I wanted to.
If a more elegant solution can better fulfill this task, I'll be glad to adopt it.
Thanks for your attention,
Giorgio
Please Log in or Create an account to join the conversation.