• Resolved asmita2410

    (@asmita2410)


    hi, as you can see there are two stories having h2 tag but i want to remove it , how and the steps to be followed, as it taking story title not thumbnail title?https://www.namecoinnews.com/web-stories/ , its also repeating check on SEO meta

    <div class="web-stories-list__story-content-overlay"><h2>99 Million XRP Transferred, Sparking Whale Activity </h2><time class="story-content-overlay__date">On Aug 26, 2024 </time></div>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Why two stories? There are like 20 stories on that page, and all of them have an <h2> tag for the title. There’s nothing wrong with that though, it doesn’t matter for search engines. Also note the heading tag for the stories grid can’t be changed or removed anyway.

    Thread Starter asmita2410

    (@asmita2410)

    No actually , in a front view they dont want thunmail title, should be h2 and previoulsy it was just div

    <div class=”story-content-overlay__title”>

    Bitcoin and Ethereum: Stability in a Volatile Range </div> like this , and now that only two stories have h2 tag , that they dont need.

    Plugin Author Pascal Birchler

    (@swissspidy)

    No actually , in a front view they dont want thunmail title, should be h2 and previoulsy it was just div

    <div class=”story-content-overlay__title”>

    Actually, it looks like in our plugin it is always a div! See https://github.com/GoogleForCreators/web-stories-wp/blob/c59bd62e1a7a98c0bf8001b968d51a9083c610aa/includes/Renderer/Stories/Renderer.php#L748-L750

    You have some custom JavaScript on your site that is turning the divs into h2s.

    <script data-type="vc_custom-js-" header>document.addEventListener("DOMContentLoaded", function() {
    var titleElement = document.querySelector('.story-content-overlay__title');
    if (titleElement) {
    var h2Element = document.createElement('h2');
    h2Element.innerHTML = titleElement.innerHTML;
    titleElement.parentNode.replaceChild(h2Element, titleElement);
    }
    });</script>

    So this is coming from you, not the Web Stories plugin. You need to fix this on your site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.