Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter bytesizekieran

    (@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"><a href="/" title="back home">Home</a> / 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/

    • This reply was modified 8 years, 7 months ago by bcworkz. Reason: code fixed, otherwise syntax errors occur with testing
Viewing 1 replies (of 1 total)