jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Carousel: Empty heading tags are created

Open mrekici opened this issue 3 years ago • 13 comments

Impacted plugin

Jetpack

What

Empty heading tags

How

I am using the jetpack carousel. After loading the page, before images are selected, jetpack generates empty heading tags:

<h2 class="jp-carousel-photo-title"></h2>
<h2 class="jp-carousel-photo-caption"></h2>
<h3 class="jp-carousel-caption" itemprop="caption description"></h3>

How can I turn this off so that no empty heading tags are generated?

Thanks.

mrekici avatar Feb 24 '23 01:02 mrekici

Those are indeed added to the markup on page load, but they should then be populated when the page finishes loading. Do you not see any text inside the heading on your end? If could, could you post a URL where you see the issue here, so we can take a closer look?

Thank you!

jeherve avatar Feb 27 '23 16:02 jeherve

Thanks for the reply. The issue is that I don't see the headings, as they are generated without a command.

Website: https://emreekici.com/about-me-sound-engineer/

Example: <h2 class="jp-carousel-photo-title"></h2>

The issue is a problem for me as these are considered headings for SEO, and there is no heading and no text under the heading.

Thanks again for the help!

mrekici avatar Feb 27 '23 23:02 mrekici

Thanks for the extra details!

There seems to be something wrong on your site at the moment. I think that some of your caching and concatenating options[^1] are causing lots of JavaScript files to not be loaded properly on your site:

image

This, in turn, breaks Jetpack's Carousel feature. The headings should be injected via JavaScript into the Carousel view when the page finishes loading, but since JavaScript files are broken on your site, this doesn't happen. Once you fix that issue, you should see the headings appear as planned.

Give it a try, and let me know how it goes!

[^1]: You may be able to disable your caching plugin. Since your site is hosted on WordPress.com, it already comes with its own caching solution. You can read more about it here.

jeherve avatar Feb 28 '23 18:02 jeherve

Yes, this problem can be harmful to SEO. We don't want Jetpack to use H2 and H3 here.

You can also visit this issue on my page. https://xiaomiui.net/redmi-13c-spotted-on-gsma-imei-database-51567/

bugrevealingbme avatar Sep 29 '23 07:09 bugrevealingbme

We're seeing these tags loaded on a page with no carousel, so no content is added to the tatgs - is that intentional?

I've turned off the Jetpack Carousel on the site in question since we're not using it, but let me know if you'd like me to provide an example.

stronenv avatar Oct 05 '23 08:10 stronenv

@stronenv If you can give me an example that would indeed be helpful, thank you! Those tags should only be added when using the Carousel.

jeherve avatar Oct 05 '23 10:10 jeherve

Hey @jeherve!

Sure, I was able to reproduce it on a fresh site: https://stronenvtestingjpcarousel.wpcomstaging.com/

^ That's on WordPress.com, which might be relevant.

stronenv avatar Oct 06 '23 10:10 stronenv

@stronenv I see it now, thank you!

jeherve avatar Oct 10 '23 09:10 jeherve

@jeherve User in 7438445-zd-a8c is also observing Carousel code loading on pages which do not have a carousel, including empty heading tags, which they are concerned about for SEO reasons.

I advised user to turn off image carousels in Jetpack settings to remove the extra code.

kathrynwp avatar Dec 18 '23 15:12 kathrynwp

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 7438445-zen
  • [ ] 8419082-zen
  • [ ] 9617475-zen

github-actions[bot] avatar Dec 18 '23 15:12 github-actions[bot]

The issue was observed when checking through the WAVE tool - https://wave.webaim.org/report#/helendentwrites.com

8419082-zd-a8c

rickmgithub avatar Jul 16 '24 12:07 rickmgithub

Another report: 9617475-zd-a8c

rinazrina avatar Apr 07 '25 10:04 rinazrina

Adding another report: 11060290-zd-a8c

jromales avatar Apr 02 '26 16:04 jromales