Link to theme directory inside echo
-
I have a Genesis child theme. I include an iframe on the front page. Below is what I have in the functions.php This code works, but I would like to replace the absolute url to the iframe with a relative link.
// If it's the homepage, display the iframe animation function myhtml1 () { if ( is_front_page() ) { echo '<div id="animation-wrapper"><iframe src="http://myurl.com/wordpress/wp-content/themes/mytheme/homepage-animation/homepage-animation-1.html" style="width:100%;height:100% !important;" frameborder="0" scrolling="no"></iframe></div>'; } }; add_action('genesis_header', 'myhtml1', 11);
- The topic ‘Link to theme directory inside echo’ is closed to new replies.