Makes Iframe changes on google Optimize - google-optimize

I have on my website an Iframe and I would like to create a variant of my page changing the content of the iframe, but I can't access the content, I only can change the container, the iframe itself, where the editor lets me adjust the SRC and if I try to edit the HTML I can't see the content, only the tag .
Is it possible to access the iframe's content to make changes?

Related

Will "noindex" tags inside an iframe affect the parent page?

I have a page on my site that gets loaded in an iframe on the homepage. This page is not supposed to be directly accesible, so I don't want it to show up in search results, so I put "noindex" and "nofollow" tags on it. Will these tags prevent the parent page (i.e. the homepage) from being indexed and followed?

Getting iframe link clicks to replace entire current page, instead of rendering within the iframe?

I have a page, home.html, which is just comprised of 2 iframes, iframeA and iframeB. The content of iframeA and iframeB are various links from my site. When I click on any link within iframeA or iframeB, I don't want that link to open within the iframe itself. Instead, I want the clicked link content to render in the entire existing browser window. Is there any way to achieve this simply, without complicated javascript?

iframe: how to scroll to a piece of text automatically after loading the page

I use Flask + iframe to make a website. I use iframe to show a google doc stored in another domain. The doc is very long, after loading the page which uses iframe to show the doc, I want the iframe to scroll to a piece of text which is unique in this doc. I can do this by ctrl+F+a piece of text, but, how to do it automatically after loading the page. Thank you very much!
if the doc is somehow displayed in html and you are able to change that html you can link to it via Javascript and the right selector (e.g. id)

wordpress menu link target to _iframe

Instead of having the link opened in a new tab I would like to the link to be opened in an iframe that's on the same page.
Example:
I have my front page with an iframe on it. If I click on the menu items i would like to have the urls loaded in the iframe.
I can't seem to find an answer for this.
Alter the iframe in your front page as below
Make sure the iframe contains a name attribute (name="main-section")
<iframe name="main-section" src="home.html"></iframe>
In your menu items make sure the target attribute redirects to main-section (target="main-section"). This is an important step.
Example:
I am pretty sure you can achieve the above steps in wordpress.

How to put an iframe inside a view on Drupal

I have a page on Drupal, and I need to put an embedded page that renders a 360 img, like an iframe, on a view:
I looked for it on the internet but have not found a solution. I created a tag on that view but I don't know where to put my iframe code to render it.
This is my config tag view:
I see you are using a body field in your view so I guess you'll want to add the iframe to that field?
If thats the case, you can enter the iframe code in your body and put the format on "FULL HTML", you might want to look into your WYSIWYG settings (/admin/config/content/formats in D8) to verify if the iframe tag is allowed.
There's also the option of using the iframe module (https://www.drupal.org/project/iframe) which allows you to add an iframe field.
Good luck
in my case, i create a block and i put the iframe code inside them, after i configure the block to show where i want
This is the creation block
But creating views, does not work because that don't let me modify the content

Resources