Anchor to articles in category blog layout
To make anchor-links to articles in category-blog layout, anchors need to be on the page. This is how to use a template override to get those anchors on the page.
For this we need a template override. It might be that the template you are using already got a template override for category-blog-items. So check first if you got this file in your template:
- Check if you got this file:
If you got this file, go to 3, else read on at 2.
- Copy this file:
- Find this code around line 18:
- replace that code with:
JHtml::core(); echo '<a id="item'.$this->item->id.'"></a>';