• For pages using inline frames (iframes), they are redirected to URLs in inline frames. Please tell me how to disable it.

    In the case of desktop view with a personal computer or mobile browser, this phenomenon does not occur, so I think that it is the influence of wptouch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor WPtouch

    (@wptouch)

    Hi @moon1008

    There’s code in /wptouch/themes/foundation/modules/base/base.js that is likely doing the behavior you describe. Look for

    function wptouchFdnEscFrames() {
    	if ( window.top != window.self && window.top.location.pathname.indexOf( 'customize.php' ) == '-1' ) {
    		window.top.location = self.location.href;
    	}
    }

    and comment it out/remove it. However, changes like this done to core files will be overwritten in an event of an update.

    Thread Starter moon1008

    (@moon1008)

    thank you for your reply.

    I tried the code but I will not improve it.

    If you display a page with an embedded iframe, it redirects to the url of the iframe immediately after it is displayed, and the entire page becomes a redirected page.

    Plugin Contributor WPtouch

    (@wptouch)

    @moon1008,

    Also remove/comment out the code from base.min.js and it should accomplish what you’re after.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wptouch(free) iframe using’ is closed to new replies.