I copied part of the code from the web and the full screen functionality works perfectly. But with that code, Search Console does not see the preview and does not validate errors. I find the site indexed but excluded because of this problem.
<div class="container"><iframe class="responsive-iframe" id="embededGame" src="https://example.com/c89fbdcf04fe4fe3a3731b9d9f9d6492/?gd_sdk_referrer_url=https://giocone.com/games/board/mahjong-dark-dimensions/" width="800" height="600" scrolling="none" frameborder="0" title="Start the Mahjong Dark Dimensions online game"></iframe></div>
<div class="buttoncontainer"><button aria-label="Fullscreen" class="fullscreen" onclick="goFullscreen('embededGame'); return false"><i class="fa-solid fa-expand" alt="Play fullscreen" style="color: #ffffff;"></i></button></div>
<script>
function goFullscreen(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
</script>
The code is exactly as I wrote it except for the domain name which is censored.
1 Like
It sounds like the full-screen functionality is working, but it’s causing issues with Google Search Console’s ability to see the preview and validate errors. This might be happening because the iframe content is embedded from another site, which can sometimes cause problems with search engine indexing and validation.
To resolve this, consider the following steps:
Check for Content Security Policies: Ensure that your website’s content security policy isn’t blocking the iframe content from being indexed.
Add ‘allowfullscreen’ Attribute: Make sure the iframe includes the ‘allowfullscreen’ attribute, which allows it to enter full-screen mode and might help with indexing.
Review Your Robots.txt: Double-check your ‘robots.txt’ file to ensure it’s not blocking the iframe’s content from being crawled.
Use a ‘meta’ tag: If possible, use a meta tag in the iframe content to ensure it’s indexable.
Google Search Console: Resubmit the affected page in Google Search Console to see if the issue resolves after making the above changes.
If these steps don’t resolve the issue, you might need to consult with a developer to explore alternative methods for embedding the content or handling full-screen functionality.
1 Like
Also THEIR robots.txt, and content security policies, because you’re asking Google to index a page containing another site’s content…(which… frankly if i were google i’d blank out of a result anyway, because… thats not your content.)
In fact, only a few days ago I had video reports that are excluded because it contains content from others.
But I have authorization from the site and there are thousands of sites like mine. However, they wrote the iframe differently and do not cite the source like I do.
For 2 years I have not had this video report and I hope it is not a problem for Google, because it does not depend on my mistake or someone should have explained better how to implement the games at best.
A google robot machine does not know about your magical authorization
Lately I found this guide and tried to add this game:
I didn’t add my domain to the url at the beginning, but as they wrote on the game page and then I changed the end of the url.
the iframe:
How I edited the iframe without adding fullscreen:
If my fear is true, I should have the iframe like this:
I didn’t understand the path /&width=510&height=900&language=es&gdpr-tracking=1&gdpr-targeting=1&gd_sdk_referrer_url=/games/game-path. I think it is mandatory, I instead followed what they said on the game page /?gd_sdk_referrer_url=/games/pou
If some code is wrong, I apologize I used an automatic translator for your better understanding.
I censored the urls for your forum policy. Who knows what you will understand. I have nothing to tell the truth!
Edit: this forum has full removed mine modifies. i do screenshots on what i’ve wrote. https://imgur.com/a/BBOIpID