VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.


joomfreak-logo

It's time to pass this project on to someone passionate about continuing its journey. joomfreak offers a unique opportunity to build upon a well-established platform and keep providing the Joomla community with quality templates and tools.

If you're interested, we'd love to hear from you!
[email protected]

Welcome, Guest
Username Password: Remember me

TOPIC: Read more?

Re: Read more? 06 May 2015 08:45 #6647

I did not understand what I should do.
You can also show some screenshots?
thanks

  • Posts:25
  • hanz
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: Read more? 07 May 2015 03:06 #6649

Edit templates/jf_creativia/html/com_k2/jf_creativia/item.php file, modify:
 
<?php if(!empty($this->item->fulltext)): ?>
<?php if($this->item->params->get('itemIntroText')): ?>
<!-- Item introtext -->
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemFullText')): ?>
<!-- Item fulltext -->
<div class="itemFullText">
<?php echo $this->item->fulltext; ?>
</div>
<?php endif; ?>
<?php else: ?>
<!-- Item text -->
<div class="itemFullText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
 

to:
 
 
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('.itemReadMore a').click(function(e){
e.preventDefault();
jQuery('.itemFullText1').slideToggle();
});
});
 
 
<?php if(!empty($this->item->fulltext)): ?>
<?php if($this->item->params->get('itemIntroText')): ?>
<!-- Item introtext -->
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<div class="itemReadMore">
<a class="k2ReadMore" href="#"><?php echo JText::_('K2_READ_MORE'); ?></a>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemFullText')): ?>
<!-- Item fulltext -->
<div class="itemFullText itemFullText1">
<?php echo $this->item->fulltext; ?>
</div>
<?php endif; ?>
<?php else: ?>
<!-- Item text -->
<div class="itemFullText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
 


Edit template.css, add:
 
.itemReadMore {
text-align: right;
}
 
.itemReadMore a {
color: #fff!important;
cursor: pointer;
background: #626262;
border: 1px solid #626262;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
display: inline-block;
padding: 10px 20px;
text-decoration: none !important;
}
 
.itemReadMore a:hover {
background: url(../images/trans-grad-black-20.png) repeat-x center #121212;
}
 
.itemFullText1 {
display: none;
}
 


joomfreak
Last Edit: 11 May 2015 03:35 by isupport.

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Read more? 07 May 2015 09:40 #6654

thanks for the reply
with the changes I see the button that says "read more" but clicking on charging me the same page and I do not see the text that comes after ...
how can I do to fix this?
thanks

  • Posts:25
  • hanz
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: Read more? 08 May 2015 02:56 #6658

Can you please send me your website url?

joomfreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Read more? 11 May 2015 03:32 #6675

You didn't insert javascript in templates/jf_creativia/html/com_k2/jf_creativia/item.php file:

This image is hidden for guests. Please log in or register to see it.


joomfreak
Last Edit: 11 May 2015 03:33 by isupport.

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Read more? 11 May 2015 07:56 #6680

ok
now it works!
just an observation: when I insert the "read more" changes the style of text in bold or otherwise darker. You can make sure that the character remains unchanged?
thanks a lot

  • Posts:25
  • hanz
  • Junior Boarder
  • OFFLINE
  • Karma: 0
Time to create page: 1.07 seconds
Friday 08 November 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.