iframe with iFrameResizer

sample page: https://www.lenamedia.de/dev2/

I would like to embed an iFrame.

Description:


iframe link: https://solarrechner.eturnity.io/sw_burg/

For WordPress, it is best to load the script via functions.php in the child template. Integrate the following code into your functions.php:

function iFrame_Resizer() {

        wp_register_script( 'iFrameResizer', 'https://solarrechner.eturnity.io/sw_burg/static/iframe-resizer-client.js', array(), '', true );

    wp_enqueue_script( 'iFrameResizer' );

  }

add_action( 'wp_enqueue_scripts', 'iFrame_Resizer' );


But it does not work (dynamic size). What can I do? At what point must the script be inserted? functions.php, theme-functions-php (tried both)? 

How can I make it persist after a theme update (step 2 if it works.).

Comments

  • Hi,

    Sorry, but what you ask for requires file customization that is not allowed in reference to the Item Support Policy. http://themeforest.net/page/item_support_policy

    So if you want to modify files and don't know how, you should contact your web developer. Item Policy says:

    Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customization services or checking out the great service providers on Envato Studio.


    If you are using a child theme and it is configured correctly, then all changes you made there will persist after the theme update.


    Thanks

Sign In or Register to comment.