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

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

$
0
0
Hi,

I have a blog layout with an override. The blog layout fetches the article title for the card using:

Code:

<?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $this->item); ?>
However, this renders the title with the same H2 tag as the article.

Code:

<div class="page-header"><h2 itemprop="name" class="article-title"><a href="/cars/ford-mondeo" itemprop="url">Ford Mondeo</a></h2>                </div>
But, I need an H3 tag to keep the headings in the correct order. How can I change the above code to just pull the title without the H2 tags?

I'm not worried about keeping the microdata as that will all get stripped out anyway by my microdata extension.

I'm using J5 if this makes a difference.

Regards, Brendan

Statistics: Posted by brendanhedges — Sun Aug 11, 2024 11:56 am



Viewing all articles
Browse latest Browse all 1462

Trending Articles