Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Embedding an external site into wordpress

Discussion in 'Misc WordPress Requests' started by bytesizekieran, Oct 26, 2017.

  1. bytesizekieran

    Guest

    Reply To: Embedding an external site into wordpress, by bytesizekieran

    Cheers for the help, this site is indeed on Premium Plan and I’ve found where they had the previous embeded site working

    Using the below code
    <?php

    /*
    Template Name: Specs
    */

    get_header();

    ?>

    <div class=”section-row specs”>
    <div class=”max-container”>
    <h1>Specs</h1>

    <div class=”breadcrumb”>Home / Specs </div>

    </div>

    <div id=”frame-holder”>

    </div>

    <script>
    var frame_url = ‘https://sites.google.com/a/rte.ie/digitaladspecs/’,
    elemen = document.getElementById(‘frame-holder’);

    if(window.location.hash){
    var url_hash = window.location.hash.substr(1),

    url_hash = url_hash.replace(“+”, “/”);

    frame_url = frame_url+url_hash;
    }

    elemen.innerHTML = ‘<iframe id=”rteframe” src=”‘+frame_url+'” width=”100%”></iframe>’;
    </script>

    </div><!– END .section-row; –>

    <?php get_footer(); ?>

    Got access to the FTP and updated with a new google site link and now the page is appearing blank.
    https://sites.google.com/rte.ie/specs/

    Reply To: Embedding an external site into wordpress
     
    #1

Share This Page

Web Hosting