-
AuthorPosts
-
November 22, 2014 at 4:06 pm #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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 24, 2014 at 4:06 am #556268Hi 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 user says Thank You to Saguaros for this useful post
November 25, 2014 at 6:30 pm #556518Hi,
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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 26, 2014 at 1:33 am #556536In 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>
1 user says Thank You to Saguaros for this useful post
November 26, 2014 at 9:04 pm #556695Spot on! Thanks you very much
Pieter
August 5, 2015 at 10:06 pm #656443Is this method still relevant for the latest version of JA Bookshop v1.1.4?
August 5, 2015 at 10:06 pm #744593Is this method still relevant for the latest version of JA Bookshop v1.1.4?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 5, 2015 at 10:53 pm #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.
1 user says Thank You to TomC for this useful post
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 5, 2015 at 10:53 pm #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.
1 user says Thank You to TomC for this useful post
-
AuthorPosts
This topic contains 9 replies, has 4 voices, and was last updated by TomC 9 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum