<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Issue hiding header and footer - Advanced iframe pro				            </title>
            <link>https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer</link>
            <description>TinyWebGallery Discussion Board for Advanced iframe and TinyWebgallery</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 13 Mar 2026 11:10:00 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Issue hiding header and footer</title>
                        <link>https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2945</link>
                        <pubDate>Thu, 12 Dec 2024 09:45:06 +0000</pubDate>
                        <description><![CDATA[Thank you for pointing this out, Michael! I appreciate your detailed feedback and explanation.
It seems there was some misunderstanding on my part regarding the correct way to configure the...]]></description>
                        <content:encoded><![CDATA[
<p>Looks you have modified the ai_external.js</p>
<p>https://twistedlime.co.uk/wls/wp-content/plugins/advanced-iframe/js/ai_external.js </p>
<p>And made it invalid Javascript. </p>
<p>You should not modify ai_external.js by hand! <a href="https://www.onebloodrewards.me/" target="_blank" rel="noopener">OneBloodRewards</a></p>
<pre contenteditable="false">#masthead, site-header</pre>
<p>should be simply set in the administration at</p>
<pre contenteditable="false">iframe_hide_elements </pre>
<p>if you press save in the administration it is saved to the ai_external.js where is should be.</p>
<p> </p>
<p>In my example I showed you, make the settings in one script tag and then include ai_external.js afterwards.</p>
<p>You added the settings INTO ai_external.js what is not shown in the example. </p>
<p> </p>
<p>Also you have included ai_external.js 2 times to the external page. one time is more than enough! </p>
<p>Keep it simple and make the settings in the administration. In my examples I have the config before because I have over 50 examples which all work differently with one single ai_external.js</p>
<p>Best regards, Michael</p>
<p> </p>
<p></p>
<p> </p>
<p>Thank you for pointing this out, Michael! I appreciate your detailed feedback and explanation.</p>
<p>It seems there was some misunderstanding on my part regarding the correct way to configure the settings. I'll revisit the example you shared and make the necessary adjustments to ensure the settings are configured properly in the administration panel and not directly in <code>ai_external.js</code>.</p>
<p>I'll also ensure that <code>ai_external.js</code> is included only once on the external page, as per your recommendation. Simplifying the setup will definitely help maintain clarity and consistency.</p>
<p>Thanks again for your guidance, and I'll make sure to follow the best practices you outlined.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.advanced-iframe.com/forum/advanced-iframe-pro">Advanced iframe pro</category>                        <dc:creator>HealerPillow</dc:creator>
                        <guid isPermaLink="true">https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2945</guid>
                    </item>
				                    <item>
                        <title>RE: Issue hiding header and footer</title>
                        <link>https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2902</link>
                        <pubDate>Sun, 06 Oct 2024 18:39:16 +0000</pubDate>
                        <description><![CDATA[Looks you have modified the ai_external.js
And made it invalid Javascript. 
You should not modify ai_external.js by hand! 
#masthead, site-header
should be simply set in the administrati...]]></description>
                        <content:encoded><![CDATA[<p>Looks you have modified the ai_external.js</p>
<p>https://twistedlime.co.uk/wls/wp-content/plugins/advanced-iframe/js/ai_external.js</p>
<p>And made it invalid Javascript. </p>
<p>You should not modify ai_external.js by hand! </p>
<pre contenteditable="false">#masthead, site-header</pre>
<p>should be simply set in the administration at</p>
<pre contenteditable="false">iframe_hide_elements </pre>
<p>if you press save in the administration it is saved to the ai_external.js where is should be.</p>
<p> </p>
<p>In my example I showed you, make the settings in one script tag and then include ai_external.js afterwards.</p>
<p>You added the settings INTO ai_external.js what is not shown in the example. </p>
<p> </p>
<p>Also you have included ai_external.js 2 times to the external page. one time is more than enough! </p>
<p>Keep it simple and make the settings in the administration. In my examples I have the config before because I have over 50 examples which all work differently with one single ai_external.js</p>
<p>Best regards, Michael</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.advanced-iframe.com/forum/advanced-iframe-pro">Advanced iframe pro</category>                        <dc:creator>admin</dc:creator>
                        <guid isPermaLink="true">https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2902</guid>
                    </item>
				                    <item>
                        <title>RE: Issue hiding header and footer</title>
                        <link>https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2901</link>
                        <pubDate>Sun, 06 Oct 2024 10:13:39 +0000</pubDate>
                        <description><![CDATA[Thank you for the response Michael.
I&#039;ve made changes as per your comments, and using the example provided, solely for the header just now.
This is the shortcode:

Interestingly, when us...]]></description>
                        <content:encoded><![CDATA[<p>Thank you for the response Michael.</p>
<p>I've made changes as per your comments, and using the example provided, solely for the header just now.</p>
<p>This is the shortcode:</p>
<pre contenteditable="false"></pre>
<p>Interestingly, when using the shortcode generator it didn't insert the last two settings, I copied them from your example.</p>
<p>I created the config file for ai_external.js, and checked it's being included. </p>
<pre contenteditable="false">/**
 *  Advanced iframe pro external workaround file v2024.5
 *  Created: 2024-10-06 09:05:21
*/
/* jslint devel: true, evil: false */
// I added this for IOS debugging as there it is hard to find out where the problem is
var extendedDebug = false;
var aiParent = window.parent;

&lt;script&gt;
var iframe_id = "advanced_iframe";
var updateIframeHeight = "true";
var hide_page_until_loaded_external = "true";
var iframe_hide_elements = "#masthead, site-header";
var iframe_content_id = "#content, site-content";
var usePostMessage = true;
var domainMultisite = true;
var jquery_path = 'jquery.min.js';
var resize_path = 'jquery.ba-resize.min.js';
&lt;/script&gt;
&lt;script src="ai_external.js"&gt;&lt;/script&gt;</pre>
<p>  Checked the parent site, ai_external.js reference is correctly loading:</p>
<pre contenteditable="false">&lt;script src="https://MYSITE.co.uk/john/wp-content/plugins/advanced-iframe/js/ai.min.js?ver=1" id="ai-js-js"&gt;&lt;/script&gt;
&lt;link rel="https://api.w.org/" href="https://MYSITE.co.uk/john/wp-json/" /&gt;&lt;link rel="alternate" title="JSON" type="application/json" href="https://MYSITE.co.uk/john/wp-json/wp/v2/pages/9" /&gt;&lt;link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://MYSITE.co.uk/john/xmlrpc.php?rsd" /&gt;
&lt;meta name="generator" content="WordPress 6.6.2" /&gt;</pre>
<p> Cleared browser caches, but the header is still there.</p>
<p>Thoughts?</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.advanced-iframe.com/forum/advanced-iframe-pro">Advanced iframe pro</category>                        <dc:creator>John9001</dc:creator>
                        <guid isPermaLink="true">https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2901</guid>
                    </item>
				                    <item>
                        <title>RE: Issue hiding header and footer</title>
                        <link>https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2900</link>
                        <pubDate>Sat, 05 Oct 2024 19:42:32 +0000</pubDate>
                        <description><![CDATA[Hi,
you mix the solution of the same domain and the external workaround. 
iframe_hide_elements=&quot;#masthead, #site-header, #colophon&quot; 
is for the same domain if you define it in the shortco...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>you mix the solution of the same domain and the external workaround. </p>
<pre contenteditable="false">iframe_hide_elements="#masthead, #site-header, #colophon" </pre>
<p>is for the same domain if you define it in the shortcode! </p>
<p>You need to set this in the administration - then it is saved to the ai_external.js</p>
<p>Also do not use<br />use_post_message="false"</p>
<p>this should be set in the administration and set to true - false is for the free version.</p>
<p>Also see this examples:<br /><br />https://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/external-workaround-with-post-message</p>
<p>Best regards, Michael </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://www.advanced-iframe.com/forum/advanced-iframe-pro">Advanced iframe pro</category>                        <dc:creator>admin</dc:creator>
                        <guid isPermaLink="true">https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2900</guid>
                    </item>
				                    <item>
                        <title>Issue hiding header and footer</title>
                        <link>https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2897</link>
                        <pubDate>Sat, 05 Oct 2024 09:56:02 +0000</pubDate>
                        <description><![CDATA[I&#039;m displaying an iframe from a different domain, which I have control over, and have inserted the ai_external.js script in the head section.  Despite specifying the correct Divs, both the h...]]></description>
                        <content:encoded><![CDATA[<p>I'm displaying an iframe from a different domain, which I have control over, and have inserted the ai_external.js script in the head section.  Despite specifying the correct Divs, both the header and footer continue to appear in the iFrame. I've attached a screenshot of the code.</p>
<p>Any pointers as to where I'm going wrong would be appreciated.</p>
<p>This is my shortcode:</p>
<pre contenteditable="false"></pre>
<div id="wpfa-5896" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//www.tinywebgallery.com/blog/wp-content/uploads/wpforo/default_attachments/1728122162-iframe1.jpg" target="_blank" title="iframe1.jpg"><i class="fas fa-paperclip"></i>&nbsp;iframe1.jpg</a></div>]]></content:encoded>
						                            <category domain="https://www.advanced-iframe.com/forum/advanced-iframe-pro">Advanced iframe pro</category>                        <dc:creator>John9001</dc:creator>
                        <guid isPermaLink="true">https://www.advanced-iframe.com/forum/advanced-iframe-pro/issue-hiding-header-and-footer#post-2897</guid>
                    </item>
							        </channel>
        </rss>
		