Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

disable responsive + unlink homepage image

  • Florida Company
  • Florida Company's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 3 months ago #137566 by Florida Company
disable responsive + unlink homepage image was created by Florida Company
this seems pretty difficult to figure out please help.

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

More
10 years 3 months ago #137567 by Yiota
Replied by Yiota on topic disable responsive + unlink homepage image
Hello,

To Disable responsiveness you have to comment out all media queries located in the template.css file.

To unlink the homepage image you will have to modify the file default.php in templates/nokkori/html/mod_k2_content/Slideshow/ or templates/nokkori/html/mod_nucontent_items/Slideshow/

In around line 54 there is this block of code
<?php if($params->get('itemImage') && isset($item->image)): ?>
        <a class="moduleItemImage" href="<?php echo $item->link; ?>" title="<?php echo JText::_('K2_CONTINUE_READING'); ?> &quot;<?php echo K2HelperUtilities::cleanHtml($item->title); ?>&quot;">
          <?php /* <img src="<?php echo $item->image; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($item->title); ?>"/>*/ ?> 
          <span style="background:url(<?php echo $item->image; ?>) no-repeat center center fixed; 
          filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $item->image; ?>', sizingMethod='scale'); 
          -ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $item->image; ?>', sizingMethod='scale')"; "></span>
        </a>
        <?php endif; ?>

Just replace the <a> element with a <span> element and remove the href and title attributes. Then in your custom.css file add this

#slideshow .itemsWrapper .moduleItemImage span {display:block;width:100%;height:100%;max-height:100%;background-size:cover!important;}

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

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

  • Florida Company
  • Florida Company's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 3 months ago #137568 by Florida Company
Replied by Florida Company on topic disable responsive + unlink homepage image
for some reason this did not work why? Its still linked I even cleared cache.

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

More
10 years 3 months ago #137569 by Yiota
Replied by Yiota on topic disable responsive + unlink homepage image
Is a link to your site available to check it out?

Thank you.

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