Chcę zduplikować stronę główną dla wszystkich moich stron
Chcę zduplikować moją stronę główną, a następnie wywołać strony A. strona b i c. – Abym mógł edytować tylko kilka rzeczy na wszystkich stronach. Mam już kilka stron, ale nie mogę uzyskać dokładnie takich samych bitów. Skopiowałem części style.css
Do header.php
w motywie nadrzędnym, ale nie działa – może dlatego, że na końcu wywołuje stronę główną – Jeśli usunę stronę główną div na końcu header.php, tracę większość tego, czego chcę. Oto kod
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
<style>
@import url(
body {
background-image:url( ----- this pic is not the same px as homepage!
background-position: 70px 0px;background-size: cover;background-attachment:scroll;margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;font-family: 'Crimson+Text', serif, inherit;font-variant:small-caps;font-size:16px;}
.style1 { ----up to style12----}#tst4 {position: absolute; top:105px; left:70px;}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:0;">
<tr bgcolor="#1a1e2a">
<td align="left" valign="top" bgcolor="#1a1e2a"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" cellspacing="0" bgcolor="#1a1e2a" cellpadding="0">
<tr>
<td width="20px" ></td>
<td><span class="style1">My homepage title is three words</span></td>
<td><span class="style3"> I wish the third word to go here so it is different on every page - </span></td>
</tr>
</table></td>
</tr>
<tr>
<td><div id="tst4";><img src=" alt="header_underline" width="200" height="17" /></div></td>
</tr>
</table></td>
<td width="50%" align="right" valign="right"><div bgcolor="646565" align="right">
<table width="50%" border="5" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" class="style7" style="border-bottom-right-radius:0px;border-bottom-left-radius:0px;"><div align="center"><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></div></td>
<tr>
<tr>
<td class="style10" > <div bgcolor="646565" align="right">like us</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<div align="right"></div></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="style6"><table border="0" cellpadding="0" cellspacing="0" bordercolor="#0d8181" bgcolor="#1a1e2a" style="border-bottom-right-radius:5px;">
</tr>
<td><p></p></td>
</tr>
</style>
</head>
<div id="main" class="site-main">