Hi team, I use newsberg template. Please take a short look at https://pekk.gr/component/content/category/133-kalyteres-ksenes-tainies-2023?Itemid=435 As you see instead of the category title it always displays the text "All Stories". How is possible to change it in order to dispaly the category title? Thank's. My best. /kostas
newsberg-blog-title
Accepted answer
Marked as the solutionHello Kostas,
Thank you for reaching out to us. Unfortunately, the Newsberg template does not offer a built-in option to replace the "All Stories" text with the category title. However, this can be resolved by making a minor modification to the template override file.
To apply this change, navigate to the file located at JRoot/templates/newsberg/html/com_content/category/blog.php. Locate line 73 in this file.
Existing code
<h3 class="newsberg-blog-title"><?php echo Text::_('COM_CONTENT_TITLE'); ?></h3>
Replace with
<h3 class="newsberg-blog-title"><?php echo $this->category->title; ?></h3>
After making the change, save the file and clear your website's cache to ensure the update takes effect. This modification will enable the template to dynamically display the correct category title.
Please note that this change is not update-proof. If the template is updated in the future, it may overwrite the modified file and restore the original code. To prevent losing your changes, you may want to create a backup of the modified file or reapply the changes after any template update.
If you require further assistance, feel free to contact us.
Best regards
1 more reply
Hi Atick, It worked... I;ll keep the change for the future. Many thank's. /kostas
Please marked the issue as solved.