Iframe height do not resize to match my theme! (how to change heightCalculationMethod)

User avatar
axew3
w3all User
w3all User
Posts: 1936
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Iframe height do not resize to match my theme! (how to change heightCalculationMethod)

Post by axew3 »

... this is an excerpt of another old post,
how to resolve any resize problem, with any theme:

open the overall_footer.html
just after the js code you added, or before the closing </body>) tag:
add this:

Code: Select all

<div data-iframe-height=""></div>
(or assign data-iframe-height attribute to another element page on the very bottom)
Save, recompile template.

Now open your wordpress page-forums.php template page and
where this line:

Code: Select all

// heightCalculationMethod: 'documentElementOffset', // If iframe not resize correctly, un-comment (or change with one of others available resize methods)
change into:

Code: Select all

heightCalculationMethod: 'taggedElement', // If iframe not resize correctly, un-comment (or change with one of others available resize methods)