Change Title from h4 to h2
- Posted by Jose (33) Offline
How to change <h4 class="mfp_infinity_title">Title</h4> to <h2 class="mfp_infinity_title">Title</h2>
3 years 1 month ago #1
by Jose
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5261) Offline
Hi, You can do that via template override. Please open file infinity_ajax.php
At lines 74-78 you will see this code :
change that into
3 years 1 month ago #2
by TemplatePlazza
At lines 74-78 you will see this code :
<h4 class="mfp_infinity_title">
<a href="<?php echo $item->link; ?>" itemprop="url">
<?php echo JHtmlString::truncate(strip_tags($item->title), $title_truncate); ?>
</a>
</h4>
change that into
<h2 class="mfp_infinity_title">
<a href="<?php echo $item->link; ?>" itemprop="url">
<?php echo JHtmlString::truncate(strip_tags($item->title), $title_truncate); ?>
</a>
</h2>
Please Log in or Create an account to join the conversation.
- Posted by Jose (33) Offline
Ok thank you, I made the change from h4 to h2.
I have a problem with the "Read More" override:
If I make the change indicated for href the error page appears: This site can’t be reached because it redirects to a link without domainname.com
<a href="/<?php echo $item->link; ?>" style="font-size:16px;font-weight:700;color:white;background:blue;display:inline-block; padding:5px 7px;">Read More</a>
If I suppress the slash in href it shows the article on the home page, although the url shown is the correct article address.
<a href="<?php echo $item->link; ?>" style="font-size:16px;font-weight:700;color:white;background:blue;display:inline-block; padding:5px 7px;">Read More</a>
What is the solution to show the article in the correct menu item?
3 years 1 month ago #3
by Jose
I have a problem with the "Read More" override:
If I make the change indicated for href the error page appears: This site can’t be reached because it redirects to a link without domainname.com
<a href="/<?php echo $item->link; ?>" style="font-size:16px;font-weight:700;color:white;background:blue;display:inline-block; padding:5px 7px;">Read More</a>
If I suppress the slash in href it shows the article on the home page, although the url shown is the correct article address.
<a href="<?php echo $item->link; ?>" style="font-size:16px;font-weight:700;color:white;background:blue;display:inline-block; padding:5px 7px;">Read More</a>
What is the solution to show the article in the correct menu item?
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5261) Offline
This is likely a known issue with default Joomla itemid behaviour. Please try to create a hidden menu item (can be category / blog page layout) for your content category where the module showed. We have youtube tutorial for that issue you can check :If I suppress the slash in href it shows the article on the home page, although the url shown is the correct article address.
Please Log in or Create an account to join the conversation.
- Posted by Jose (33) Offline
Excuse me, could you give me an explanation with more details, since I don't really understand what to do?
3 years 1 month ago #5
by Jose
Please Log in or Create an account to join the conversation.
- Posted by Jose (33) Offline
I made a solutions salad that solved the problem:
1. I used your override solution without the slash:
<?php } ?>
<a href="<?php echo $item->link; ?>" style="font-size:16px;font-weight:700;color:white;background:#083061;display:inline-block; padding:5px 7px;">Leer Artículo completo</a>
2. Change the alias to the original menu item "Cuba" to (Alias: noticias-de-cuba-original) Hidden, Articles » Single Article, and "unpublished"
3. I created a new menu item:
Cuba (Alias: cuba-noticias) Articles » Category Blog and published to replace the original menu item Cuba.
Although I don't know exactly which change or changes solved the problem after many tests
3 years 1 month ago #6
by Jose
1. I used your override solution without the slash:
<?php } ?>
<a href="<?php echo $item->link; ?>" style="font-size:16px;font-weight:700;color:white;background:#083061;display:inline-block; padding:5px 7px;">Leer Artículo completo</a>
2. Change the alias to the original menu item "Cuba" to (Alias: noticias-de-cuba-original) Hidden, Articles » Single Article, and "unpublished"
3. I created a new menu item:
Cuba (Alias: cuba-noticias) Articles » Category Blog and published to replace the original menu item Cuba.
Although I don't know exactly which change or changes solved the problem after many tests
Please Log in or Create an account to join the conversation.