I’m creating two websites, one radio station and one bands website. I want to add a player (already have a php with the player in it) to the top of the page, like a frame.
The main point is to have the player playing music while people can navigate to other pages without interrupting the player.
I’ve created the following:
<frameset framespacing="0" border="0" frameborder="0" rows="*,65">
<frame name="main" target="_self" src="http://www.website.com/index.php" scrolling="auto">
<frame name="footer" scrolling="no" noresize="noresize" src="http://www.website.com/player">
<noframes>
However this creates a loop.
Child theme for TwentyEleven:
twentyhalf
style.css
file with the content:index.php
into the child theme folderget_header()
andget_sidebar() + get_footer()
with the parent content ofheader.php
andfooter.php
, and adapt to suit your site’s framed Front PageReading Settings (/wp-admin/options-reading.php)
to “Your latest posts“./sample-page/
is the slug of a WordPress page with the “true” first WPpage. For exhibiting a “blog” page some template/shortcode will be
needed.
/radio/
is an actual folder with anindex.html
containing the audio player.ÂSample
index.php
for the child theme==============
Attention to the “Home” link in the navigation menus: this one must be directed to the frame “main”, otherwise the frameset will duplicate the footer.
==============