Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

A Problem with Google Search Console

Sniper Man

New Coder
Could someone please clarify to me why Google Search Console is telling me that a video on my blog (Peace in Christ - Reflections of a Young Man™) cannot be indexed on Google because the video is not the main content of the page? Below is the code for the video:
HTML:
<div itemscope itemtype="https://schema.org/VideoObject">
            <span hidden itemprop="name">Peace in Christ</span>
    <time itemprop="uploadDate" datetime="2024-07-14T00:00:00Z"></time>
    <div itemprop="duration" content="PT1M33S">
       <meta itemprop="thumbnailUrl" content="https://thuitamaina.com/video_thumbnails/53.jpg">
       <link itemprop="embedUrl" href="https://thuitamaina.com/videos/53.mp4">
       <figure style="margin: auto; display: block;"><video class="blog_images" style="margin-bottom: 15px;" poster="https://thuitamaina.com/video_thumbnails/53.jpg" controls oncontextmenu="return false">
      <source itemprop="mainEntityOfPage" src="https://thuitamaina.com/videos/53.mp4" type= "video/mp4">
      </video><br><figcaption style="margin-right: 40px; margin-left: 40px;"><i></i></figcaption></figure><br><span itemprop="description"> Described as nice by my music producer, the hymn in the video above was a joy to produce. I'd like to express my heartfelt gratitude to my friends Boniface Muia, Francis Kariuki and David Mwakima for making the production of the hymn possible with their generous financial support.<br>
<br>
The hymn is about the peace we can find in Christ if we come to Him at any moment and pour out our longings and concerns, however small they may be. I hope it will inspire my listeners to grow in their relationship with Christ, of whom the Scriptures so faithfully testify. Happy listening!</span></div></div>
 
Off the top of my head I am thinking it might not be in the <main> element of the page or, more likely, it needs some kind of accessible name/text description. Fill in the figcaption with text related to the video and/or add a title to the video (though a title may cause a tootip to show when the video is hovered).

If you don't want a caption on screen, use a visually hidden utility class:

.visuallyhidden {
position: absolute !important;
height: 1px; width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}

This keeps the video accessible to some extent while not having the caption visible on screen.
 
Last edited:

New Threads

Buy us a coffee!

Back
Top Bottom