Add read more to Infinity

Exist a workaround to add read more to "Theme Infinity" add the end of "Introtext Chars Limit"?
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 change the settings for the load more button from here :
https://www.dropbox.com/s%2Fkdgq7k4zk1x48ys%2Fmodules%2520mod_minifrontpagepro%2520-%2520j39%2520-%2520administration%25202021-11-09%252006-07-56.png?raw=1
Have you tried it?
3 years 1 month ago #2 by TemplatePlazza

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

Maybe I didn't explain clearly: I'm looking for a way to add "Read More" after or below of the 3 points at the end "Introtext Chars Limit"
3 years 1 month ago #3 by Jose

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

  • Posted by TemplatePlazza (5261) Offline
Ah I see. You can create a template override for that. If you don't know how to create template override then you can follow this video


After you have created a template override for minifrontpagepro, then open file infinity_ajax.php
https://www.dropbox.com/s%2Fg5eav95n9vhqj99%2Ftemplates%2520customise%2520%2528protostar%2529%2520-%2520j39%2520-%2520administration%2520%25202021-11-09%252007-07-54.png?raw=1

Then add this code
<a href="<?php echo $item->link; ?>">Read More</a>

at line 117 before the show tags code
<?php 
        // show tags
        if($show_tags){

https://www.dropbox.com/s%2F0bsvclc6qa0lcvr%2Ftemplates%2520customise%2520%2528protostar%2529%2520-%2520j39%2520-%2520administration%25202021-11-09%252007-09-58.png?raw=1

Hope this helps
3 years 1 month ago #4 by TemplatePlazza

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

I did the template override as you indicated, but the "Read More" font size is too bigger. How to reduce the font size?
Now the "Read More" font size is:
Style normal
Weight 500
Size 40px
Line Height 48px
3 years 1 month ago #5 by Jose

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

  • Posted by TemplatePlazza (5261) Offline
You can add either an existing css class to the link such as
<a href="/<?php echo $item->link; ?>" class="your-css-class">Read More</a>
or you can also add an inline css just like this :
<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>
3 years 1 month ago #6 by TemplatePlazza

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

Powered by Kunena Forum