Skip Navigation

[Resolved] Iframe

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 3 voices.

Last updated by Minesh 11 months, 1 week ago.

Assisted by: Minesh.

Author
Posts
#2686188

Bonjour,

J'essaye d'insérer un iframe dans une page personnalisé, mais elle ne s'affiche pas. J'utilise Elementor et le thème Astra.

Comment faire ?
Merci

#2686227

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

How are you trying to insert an iframe into the page?

Can you explain how this is related to Toolset?

#2686241

J'ai essayé sur une page wordpress, aucun soucis elle s'affiche. Par contre sur une page personnalisé rien ne s'affiche. j'ai testé avec Textfield, Embed et WYSIWYG rien ne fonctionne.

#2686255

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

So, you want to dynamically insert an iframe into a template rather than a page, where the iframe code is stored in a custom field?

That isn't possible directly, but there is a workaround, where you use a custom field to store the value for the src attribute of the iframe and then construct the iframe element dynamically, using a shortcode to provide the value for the src attribute from the custom field.

Assuming you are using the block editor you could use a Custom HTML block or Fields and Text block in HTML mode.

Assuming that you have a custom field "iframe-src" that stores the url, your HTML would look something like

<iframe id="my-iframe" title="My Iframe" width="400" height="200" src="[types field='iframe-src' output='raw'][/types]">

Does that make sense?

#2686283

J'ai bien compris le système mais c'est une page 404 de mon site qui s'affiche à la place de l'iframe.

#2686435

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure whats going wrong with your setup.

Here is a sandbox site and you can auto-login to it using the following link:
- hidden link

Can you please try to setup the same configuration as you have on your site and check if you able to see the issue with the sandbox site?

#2686697

La configuration fonctionne sur ce site de test donc mon problème d'affichage vient peut-être de Elementor.

#2686789

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

In that case - instead of Elementor template you should try to use the Toolset content template.