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

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Iframe height do not resize to match my theme! (how to change heightCalculationMethod)

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

by axew3 » Sat Mar 07, 2020 5:52 pm

... 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) 

Top