TwentyEleven的子主题:创建子主题文件夹,twentyhalf
创建style.css
文件内容:/*
Theme Name: Framed Audio
Theme URI: http://wordpress.stackexchange.com/questions/69624
Version: 1.0
Description: Index page with framed content - one frame points to a parent page with the slug of \'sample-page\' and the other for a folder at the root level named \'radio\'
Template: twentyeleven
*/
@import url("../twentyeleven/style.css");
复制父主题index.php
进入子主题文件夹get_header()
和get_sidebar() + get_footer()
父内容为header.php
和footer.php
, 并根据您网站的框架首页进行调整,设置首页显示;在里面Reading Settings (/wp-admin/options-reading.php)
“至”您的最新帖子/sample-page/
是WordPress页面上带有“的段塞”;“正确”;第一个WPpage。用于展示;博客;页面将显示一些模板/快捷码/radio/
是具有index.html
包含音频播放器。样品index.php
对于子主题
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( \'charset\' ); ?>" />
<title>HAND WRITTEN TITLE</title>
<?php wp_head(); ?>
</head>
<frameset rows="*,65" frameborder="0" border="0" framespacing="0">
<frame name="main" src="<?php bloginfo( \'url\' ); ?>/sample-page/" marginheight="0" marginwidth="0" scrolling="auto" noresize>
<frame name="footer" src="<?php bloginfo( \'url\' ); ?>/radio/" marginheight="0" marginwidth="0" scrolling="no" noresize>
<noframes></noframes>
</frameset>
</html>
==============
Attention to the "Home" link in the navigation menus: 这一个必须指向框架;“主要”;,否则,框架集将复制页脚。
==============