Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • pjotrij Friend
    #202965

    The template has a special way to show the read more. It shows it only when you hove over an article, and then it shows in the top right. I am looking for a way to restore this to the default Joomla read more button at th end of the intro text.

    Is there a way to do this?

    Pieter

    Saguaros Moderator
    #556268

    Hi Pieter,

    You will need to edit the markup of item in category page a little bit via file: templatesja_bookshophtmlcom_contentcategoryblog_item.php (see the attached file)

    and open css file: /templates/ja_bookshop (your _default_template)/css/custom.css and add this css rule:


    .blog article:hover .readmore,
    .blog-featured article:hover .readmore {
    display: block;
    position: inherit;
    bottom: 0;
    }
    .blog article a,
    .blog-featured article a {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
    }
    .blog article .readmore,
    .blog-featured article .readmore {
    display: block;
    bottom: 0;
    }


    1. blog_item.zip
    pjotrij Friend
    #556518

    Hi,

    thanks for your assistance, it works fine. Just one more question, when I have ‘Show title in read more’ off, anly the image is shown in stead of the text ‘Read more’. Can i change that to show ‘Read more”?

    Pieter

    Saguaros Moderator
    #556536

    In above blog_item.php file, replace this snippet of code:


    <section class="readmore">
    <a class="btn btn-primary" href="<?php echo $link; ?>">
    <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>

    With:


    <section class="readmore">
    <a class="btn btn-default" href="<?php echo $link; ?>">
    <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('COM_CONTENT_READ_MORE_TITLE');
    else :
    echo JText::_('COM_CONTENT_READ_MORE');
    echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
    endif; ?>
    </span>
    </a>
    </section>

    pjotrij Friend
    #556695

    Spot on! Thanks you very much

    Pieter

    kdewson Friend
    #656443

    Is this method still relevant for the latest version of JA Bookshop v1.1.4?

    kdewson Friend
    #744593

    Is this method still relevant for the latest version of JA Bookshop v1.1.4?

    TomC Moderator
    #656445

    <em>@kdewson 486148 wrote:</em><blockquote>Is this method still relevant for the latest version of JA Bookshop v1.1.4?</blockquote>

    It should be . . . make sure you have your site backed up and give it a try.

    TomC Moderator
    #744595

    <em>@kdewson 486148 wrote:</em><blockquote>Is this method still relevant for the latest version of JA Bookshop v1.1.4?</blockquote>

    It should be . . . make sure you have your site backed up and give it a try.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 4 voices, and was last updated by  TomC 8 years, 8 months ago.

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