No article title on the images [Minifrontpage]

The theme are :
  • carrouselxt
  • carousel
  • mansonryxt
1 week 4 days ago #7 by Theomart

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

  • Posted by TemplatePlazza (5467) Offline
If you have already created a template override, you can edit the following three files:
/templates/[YOUR ACTIVE TEMPLATE NAME]/html/mod_minifrontpagepro/carousel.php
/templates/[YOUR ACTIVE TEMPLATE NAME]/html/mod_minifrontpagepro/carouselxt.php
/templates/[YOUR ACTIVE TEMPLATE NAME]/html/mod_minifrontpagepro/masonryxt.php

1. carousel.php and carouselxt.php
Find the following code:
<div class="mfp_carousel_item" itemscope itemtype="https://schema.org/Article" aria-labelledby="mfp_title_<?php echo (int)$item->id; ?>">

Replace it with:
<div class="mfp_carousel_item" itemscope itemtype="https://schema.org/Article" aria-labelledby="mfp_title_<?php echo (int)$item->id; ?>" onclick="if(!event.target.closest('a')){ window.location.href='<?php echo $item->link; ?>'; }" style="cursor: pointer;">

Then remove the following code:
[code]<h4 class="mfp_carousel_title" id="mfp_title_<?php echo (int)$item->id; ?>" itemprop="headline"> <a href="<?php echo $item->link; ?>" itemprop="url" aria-label="Read: <?php echo htmlspecialchars($item->title); ?>"> <?php echo HTMLHelper::_('string.truncate', strip_tags($item->title), $title_truncate); ?> </a> </h4>
[/code]

2. masonryxt.php

First, find:
<div class="<?php echo $is_hero; ?> mfp_masonryxt_item_as_bg">

Replace it with:
<div class="<?php echo $is_hero; ?> mfp_masonryxt_item_as_bg" onclick="if(!event.target.closest('a')){ window.location.href='<?php echo $item->link; ?>'; }" style="cursor: pointer;">

Next, find:
<div class="<?php echo $is_hero; ?>">

Replace it with:
<div class="<?php echo $is_hero; ?>" onclick="if(!event.target.closest('a')){ window.location.href='<?php echo $item->link; ?>'; }" style="cursor: pointer;">

Finally, remove the following code:
<h4 class="mfp_masonryxt_title">
<a href="<?php echo $item->link; ?>" itemprop="url">
<?php echo HTMLHelper::_('string.truncate', $item->title, $title_truncate); ?>
</a>
</h4>
1 week 3 days ago #8 by TemplatePlazza

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

Hello, 
While I found and replaced the lines of code indicated for "carousel" and "masonryxt," the following line does not appear in the "carouselxt" file...
<div class="mfp_carousel_item" itemscope itemtype="https://schema.org/Article" aria-labelledby="mfp_title_<?php echo (int)$item->id; ?>">
There is only this line of code:
[code][code]<h4 class="mfp_carousel_title" id="mfp_title_<?php echo (int)$item->id; ?>" itemprop="headline"> <a href="<?php echo $item->link; ?>" itemprop="url" aria-label="Read: <?php echo htmlspecialchars($item->title); ?>"> <?php echo HTMLHelper::_('string.truncate', strip_tags($item->title), $title_truncate); ?> </a> </h4>
[/code][/code]
 
1 week 3 days ago - 1 week 3 days ago #9 by Theomart
Last edit: 1 week 3 days ago by Theomart.

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

  • Posted by TemplatePlazza (5467) Offline
Ah ok, it's :
<div class="mfp_carouselxt_item">
Replace it with:
<div class="mfp_carouselxt_item" onclick="if(!event.target.closest('a')){ window.location.href='<?php echo $item->link; ?>'; }" style="cursor: pointer;">
           
1 week 3 days ago #10 by TemplatePlazza

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

Powered by Kunena Forum