As you may be aware, the layout file that renders the heading with <h2>...</h2> tag is blog_style_default_item_title.php that is located in the directory \layouts\joomla\content.
The reference to this in the code you have mentioned.
What you could do is to override this layout file.
Alternatlvely, you could copy the layout file to a different name say myblog_style_default_item_title.php to the override directory and modify the file to suit your need. If you are following this approach, you have to change the code calling the layout file as shown belows:
The reference to this in the code you have mentioned.
Code:
<?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $this->item); ?>
What you could do is to override this layout file.
Alternatlvely, you could copy the layout file to a different name say myblog_style_default_item_title.php to the override directory and modify the file to suit your need. If you are following this approach, you have to change the code calling the layout file as shown belows:
Code:
<?php echo JLayoutHelper::render('joomla.content.myblog_style_default_item_title', $this->item); ?>
Statistics: Posted by imanickam — Sun Aug 11, 2024 12:36 pm