I want to add a class to the Read More link found in //components/com_content/views/category/tmpl/blog_item.php

I want the class to be:

<a class="btn btn-primary readmore-link">

But I can't find where to edit it. The standard html output in the frontend is:

<p class="readmore">
    <a class="btn readmore-link" href="index.php?option=com_content&amp;view=article&amp;id=23:re-leve&amp;catid=17&amp;Itemid=330" title="TEST">Read more ...</a>

I know I need to edit the file with an override (putting it here):


but the only code it refers to within the file is:

<?php echo JLayoutHelper::render('joomla.content.readmore', array('item' => $this->item, 'params' => $params, 'link' => $link)); ?>

Any ideas please?

1 Answer 1


JLayoutHelper renders layouts originally from /layouts folder.

First parameter is basically path to file. Just replace . with / in your mind :).

So readmore.php is located at


Copy it to


and edit it there.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.