Then, in the parent window, we can set a simple script to dynamically update the height of the iframe. That way, we can send a height value from the iframe to the parent window. Theming insertFrame_getURL($url) function, you can customize the url (with token module for example). The Solution Using the window.postMessage method, we can safely communicate between the iframe and the parent window. '/myinsertFrame.js') įunction yourtheme_insertFrame_custom($onload, $iframe_params) You can also theme the function insertFrame_init to add javascript for example.ĭrupal_add_js(drupal_get_path('module', 'insertFrame'). You function may return any text that will be add as is in the IFRAME html tag. Ive tried do this: but didnt work because resized the iframes display area too.The first param is the default code of onload event, the second, an array of all tags of the filter. But the space available to me is smaller than the content width, so you have to scroll horizontaly to view all. To do this, add in your template.php a function called yourtheme_insertFrame_custom($onload, $iframe_params). To custom code with this tags, you must create a theme function. In the editor, click in the (+) icon, then search for the EmbedPress block. Then navigate to the page or post to which you want to add the responsive embed. To use it, first install and activate the plugin on your WordPress site. To include a frame of id myframe with the m圜SSClass css class When you embed content via this plugin, it automatically makes it responsive.To include the page with height of 500px and width of 300px Typically you can make an image, or video, responsive by simply assigning a 100 width with a variable height, but that doesnt work with YouTube embeds.To include the page with auto-height with a width of 100%. ![]() URL not starting with http will be considered as relative path. Values can be text, html, or htmlpage.See Features for more details. wrapper (since 2.x) : InsertFrame can include some externals pages (wrapper). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |