Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1433

General Questions/New to Joomla! 5.x • Re: Article Title in Blog Layout

$
0
0
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.

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



Viewing all articles
Browse latest Browse all 1433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>