Title: iframe embed help!
Last modified: August 19, 2016

---

# iframe embed help!

 *  Resolved [contagiousmyle](https://wordpress.org/support/users/contagiousmyle/)
 * (@contagiousmyle)
 * [17 years ago](https://wordpress.org/support/topic/iframe-embed-help/)
 * Hey All,
 * I’m trying to embed my wordpress.com blog (emilyisaway.wordpress.com) on my site(
   emilyanneepstein.com). I tried doing it with just iframe html, but the size specifications
   just got messed up.
 * I installed the “embed iframe” plugin ([http://wordpress.org/extend/plugins/embed-iframe/](http://wordpress.org/extend/plugins/embed-iframe/))
   and it’s working better, however i need to change it so that there is no horizontal
   scroll.
 * How do i change the php so that the horizontal content is cropped and there is
   only a vertical scroll?
 * <?php
    /* Plugin Name: Embed Iframe Plugin URI: [http://blog.deskera.com/wordpress-plugin-embed-iframe](http://blog.deskera.com/wordpress-plugin-embed-iframe)
   Description: Allows the insertion of code to display an external webpage within
   an iframe. The tag to insert the code is: `[iframe url width height]` Version:
   1.0 Author: Deskera Author URI: [http://deskera.com](http://deskera.com)
 * 1.0 – Initial release
    */
 * include (dirname (__FILE__).’/plugin.php’);
 * class EmbedIframe extends EmbedIframe_Plugin
    { function EmbedIframe () { $this-
   >register_plugin (’embediframe’, __FILE__);
 *  $this->add_filter (‘the_content’);
    $this->add_action (‘wp_head’); }
 *  function wp_head ()
    {
 *  }
 *  function replace ($matches)
    { $tmp = strpos ($matches[1], ‘ ‘); if ($tmp) {//
   Because the regex is such a nuisance $url = substr ($matches[1], 0, $tmp); $rest
   = substr ($matches[1], strlen ($url));
 *  $width = 400;
    $height = 500;
 *  $parts = array_values (array_filter (explode (‘ ‘, $rest)));
    $width = $parts[
   0];
 *  unset ($parts[0]);
    $height = implode (‘ ‘, $parts);
 *  return $this->capture (‘iframe’, array (‘url’ => $url, ‘width’ => $width, ‘height’
   => $height));
    }
 *  return ”;
    }
 *  function the_content ($text)
    { return preg_replace_callback (“@(?:<p>\s*)?\[
   iframe\s*(.*?)\](?:\s*</p>)?@”, array (&$this, ‘replace’), $text); } }
 * $embediframe = new EmbedIframe;
    ?>

Viewing 1 replies (of 1 total)

 *  Thread Starter [contagiousmyle](https://wordpress.org/support/users/contagiousmyle/)
 * (@contagiousmyle)
 * [17 years ago](https://wordpress.org/support/topic/iframe-embed-help/#post-1035184)
 * here is the problem:
    [http://emilyanneepstein.com/photographs/blog/](http://emilyanneepstein.com/photographs/blog/)
 * I want to get rid of the horizontal scroll but still maximize the space.

Viewing 1 replies (of 1 total)

The topic ‘iframe embed help!’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [integration](https://wordpress.org/support/topic-tag/integration/)
 * [overflow](https://wordpress.org/support/topic-tag/overflow/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [scroll](https://wordpress.org/support/topic-tag/scroll/)
 * [wordpress.com](https://wordpress.org/support/topic-tag/wordpress-com/)

 * 1 reply
 * 1 participant
 * Last reply from: [contagiousmyle](https://wordpress.org/support/users/contagiousmyle/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/iframe-embed-help/#post-1035184)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
