Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • glenng Friend
    #934272

    "Read more" button appears on top. How can I change the button position without hover effect?

    Please see http://s33.postimg.org/klksrt28f/WWWW.jpg

    Pankaj Sharma Moderator
    #934324

    Hi
    try this :
    first take a backup of site then go to /template folder /html/com_content/featured/default_items.php
    find below code

    <?php if ($params->get('show_readmore') && $this->item->readmore) :
                    if ($params->get('access-view')) :
                        $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
                    else :
                        $menu      = JFactory::getApplication()->getMenu();
                        $active    = $menu->getActive();
                        $itemId    = $active->id;
                        $link1     = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
                        $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
                        $link      = new JURI($link1);
                        $link->setVar('return', base64_encode($returnURL));
                    endif;
                    ?>
                    <section class="readmore">
                        <a class="btn btn-primary" href="<?php echo $link; ?>" itemprop="url">
                            <span>
                            <?php if (!$params->get('access-view')) :
                                echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
                            elseif ($readmore = $this->item->alternative_readmore) :
                                echo $readmore;
                                if ($params->get('show_readmore_title', 0) != 0) :
                                    echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
                                endif;
                            elseif ($params->get('show_readmore_title', 0) == 0) :
                                echo JText::sprintf('TPL_COM_CONTENT_READ_MORE_TITLE');
                            else :
                                echo JText::_('TPL_COM_CONTENT_READ_MORE');
                                echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
                            endif; ?>
                            </span>
                        </a>
                    </section>
                <?php endif; ?>

    cut and paste it after line 112 Here >> http://prntscr.com/b83g6v
    Let me know if it helps .

    glenng Friend
    #936145

    I have done this but unfortunately it didn’t work. All still same.

    Pankaj Sharma Moderator
    #936220
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum