Skip Navigation

[Résolu] iframe does not work when Views is active

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I use an [iframe] shortcode on page content is not showing up anymore. When I deactivate Views, the problem is solved.

Solution:

The user is using an empty content template for that page, disable the content template will be able to fix the problem

Relevant Documentation:

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.

Marqué : ,

This topic contains 4 réponses, has 2 voix.

Last updated by Dido Il y a 3 années.

Assigned support staff: Luo Yang.

Auteur
Publications
#1107735

Hi,

I use an iframe code on hidden link but the content is not showing up anymore.

here you see a post, where it works well
hidden link

on the page it is not working. When I deactivate Views, the problem is solved.
I want to dequeue the scripts of Views in the functions. Can you give me the code?
It is for 2 pages.
or do you have a better idea? Or is it a bug?

#1108113

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

I assume you are using another plugin "iframe" (https://wordpress.org/plugins/iframe/) to setup the iframe code in your website

So it is a compatibility problem, I have tried the "iframe" plugin in my localhost, download from:
https://wordpress.org/plugins/iframe/

the shortcode [iframe] works fine in the post content and Views content template, please check these in your website:
1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

2) Enable PHP debug mode, copy/paste debug logs here
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

3) If the problem still persists, please provide database dump file(ZIP file) of your website, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1110151

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Thanks for the details, I am downloading the file, will update here if there is anything found

#1110158

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Here are what I found:

Please edit the problem page "Vind een coach", in section "Content Template", you are using option "Sjabloon for Pagina's",
but the content template "Sjabloon for Pagina's" is empty content template, so it conducts the problem:
the content is not showing up anymore.

To fix it, you can choose "none", don't use content template for the page "Vind een coach"

#1110301

Hi Luo, that makes sense. It was related to Views, but in wich way?? You discoverd, great.
The point is, another person is working on a translation of the website.
She chooses a content template, maybe by accident. This explains everything.