Wrap Readmore button Mini Frontpage Module

  • Posted by TemplatePlazza (5310) Offline
You will need to modify some code in the minifrontpage template file for that. Can you tell me what layout type you use?
8 years 11 months ago #7 by TemplatePlazza
The topic has been marked as resolved.
Default
8 years 11 months ago #8 by Robert Gilbey
The topic has been marked as resolved.
Here is code i have in css if that helps:

.minifrontpage-default a.mfp-readon {
text-align: right;
background: #000000;
color: #fff!important;
padding-left: 5px;
padding-right: 5px;
font-size: 100%;
text-decoration: none;
margin-left: 500px !important;
display:inline-block;
border-radius: 4px;
8 years 11 months ago #9 by Robert Gilbey
The topic has been marked as resolved.
Please let me know how I can wrap this. Thank you.
8 years 11 months ago #10 by Robert Gilbey
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5310) Offline
Hi Please open this file :
../modules/mod_minifrontpage/themes/default/tmpl/bottom.php
Arround lines 82 - 90 you'll see this code :
echo $item->introtext; 
				echo "<div class='clrfix'></div>";
 
				echo modMiniFrontPageHelper::showTagFP( $item->categtitle, $item->categblog, $cat_title, $cat_title_link, '<span class="mfp-categ">', '</span>' , "Show Category : ".  $item->categtitle ); 
 
				if ($fulllink !=""){
					echo '<a class="mfp-readon" href="'.$item->link.'">'.$fulllink.'</a>';
				}

Try to change that to
echo $item->introtext; 
if ($fulllink !=""){
					echo '<a class="mfp-readon" href="'.$item->link.'">'.$fulllink.'</a>';
				}
				echo "<div class='clrfix'></div>";
 
				echo modMiniFrontPageHelper::showTagFP( $item->categtitle, $item->categblog, $cat_title, $cat_title_link, '<span class="mfp-categ">', '</span>' , "Show Category : ".  $item->categtitle ); 
 
8 years 11 months ago #11 by TemplatePlazza
The topic has been marked as resolved.
That did not fix this because mfp-readon is not it's own div.
8 years 11 months ago #12 by Robert Gilbey
The topic has been marked as resolved.
Powered by Kunena Forum