H2 Tags in Carousel - Affecting On-Page SEO?

I just noticed that all of the post titles in the carousel are showing up as H2 tags on every page. I’m concerned this is confusing Google as to what keywords I want ranked on each post.

How can I change this to not affect my on-page seo efforts?

Hello Justin,

Thanks for asking. :slight_smile:

Please note that this will require some custom development work which falls outside the scope of support we can offer.

Having said that here’s how you can make the necessary changes. You can change the H2 tag for post carousel from /wp-content/themes/x/framework/functions/frontend/ethos.php. However, before making any changes please make sure to install and setup child theme on the website. Upon installing child theme, please copy above file and paste under /wp-content/themes/x-child/framework/functions/frontend/ethos.php. After that please focus on the the block of code from line number 163 to 169. Please look for class h-entry-cover and change the H2 tag as per your requirement.

You can use following resources to download and setup child theme.

Download Child theme from following source: https://theme.co/apex/child-themes

Please take a look at following article to setup child theme:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.