WordPress.org

Ready to get started?Download WordPress

Forums

iframe
Modify stylesheet inside iframe (1 post)

  1. sayagdan
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags