Keyword

I'd like to move the 'read more' button directly to the end of the intro text (joomla component)

More
11 years 8 months ago - 11 years 8 months ago #93373 by Tom
After changing:
<?php if($this->item->params->get('catItemIntroText')): ?>
          <!-- Item introtext -->
          <div class="catItemIntroText">
                <?php echo strip_tags( $this->item->introtext); ?>
          </div>
          <?php endif; ?>

<?php if ($this->item->params->get('catItemReadMore')): ?>
        <!-- Item "read more..." link -->
        <div class="catItemReadMore">
                <a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
                        <?php echo JText::_('K2_READ_MORE'); ?>
                </a>
        </div>
        <?php endif; ?>

from before
<?php if($this->item->params->get('catItemIntroText')): ?>
          <!-- Item introtext -->
          <div class="catItemIntroText">
                <?php echo $this->item->introtext; ?>
          </div>
          <?php endif; ?>

                <div class="clr"></div>
 
 
<?php if ($this->item->params->get('catItemReadMore')): ?>
        <!-- Item "read more..." link -->
        <div class="catItemReadMore">
                <a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
                        <?php echo JText::_('K2_READ_MORE'); ?>
                </a>
        </div>
        <?php endif; ?>


The preview of pictures get lost-.

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

More
11 years 6 months ago #93374 by Gizella
Dear William and GEGEFE,

I happened to find this old thread when I was searching about moving the READ MORE button directly under the introtext. I followed the directions from William and made the change in the category-item.php file. Unfortunately, the read more button stayed at the same place. My question is this: do I need to make the same change in other php files as well? GEGEFE, you were able to move the button up, this is why I am asking you as well.

I am using the newest version of K2 (just installed it yesterday) on a Joomla 2.5.9 platform.

I am still building the site and it is most of the time locked. But if it were helpful for someone to look at it, I will post the URL and unlock it for some time.

Thanks,
Gizella

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


Powered by Kunena Forum