Title: Modify stylesheet inside iframe
Last modified: August 21, 2016

---

# Modify stylesheet inside iframe

 *  [sayagdan](https://wordpress.org/support/users/sayagdan/)
 * (@sayagdan)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/modify-stylesheet-inside-iframe/)
 * hi,
    Ive been using simple dom to modify content of my page.
 * using this fonction on mywebsite.com:
 *     ```
       require('simple_html_dom.php');
   
       // call page //
       $html = file_get_html('http://www.outsidepage.com');
   
       // modify content using simple dom//
       //here i modify the 2nd position content of a list that is modified to the value Author //
       $e = $html->find('option', 0) ->next_sibling ()->next_sibling ();
       $e->innertext = 'Author';
   
       // and getting the page //
   
       echo $html; 
   
       ---
       ```
   
 * This echo the modified outsidepage.com in mywebsite.com. The advantage is that
   mywbesite.com stylesheets are modifiying outsidepage.com stylesheets in the echo
   function.
 * This is powerful enough but the links contained in outsidepage.com bring me outside
   my function page.
    Is it possible to implement file_get_html, find, echo function
   to iframe plugin?
 * Thank you for your help, and you’d be considered as a god if you help me doing
   this!
 * [http://wordpress.org/extend/plugins/iframe/](http://wordpress.org/extend/plugins/iframe/)

The topic ‘Modify stylesheet inside iframe’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe_99a44b.svg)
 * [iframe](https://wordpress.org/plugins/iframe/)
 * [Support Threads](https://wordpress.org/support/plugin/iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe/reviews/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * 0 replies
 * 1 participant
 * Last reply from: [sayagdan](https://wordpress.org/support/users/sayagdan/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/modify-stylesheet-inside-iframe/)
 * Status: not resolved