Вот сайт может что тут нужно другое ( http://metal-nairi.ru/ )
Подскажите пожалуйста, как мне добавить описание и ключевые слова в шаблон wp. Кому не сложно переделайте пожалуйста. Буду очень благодарен.
Вот тут
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title>
<?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title('|', true, 'right');
// Add the blog name.
bloginfo('name');
// Add the blog description for the home/front page.
$site_description = get_bloginfo('description', 'display');
if ($site_description && ( is_home() || is_front_page() ))
echo " | $site_description";
// Add a page number if necessary:
if ($paged >= 2 || $page >= 2)
echo ' | ' . sprintf(__('Page %s', 'andrina-lite'), max($paged, $page));
?>
</title>
<?php if (is_front_page()) { ?>
<?php if (inkthemes_get_option('inkthemes_keyword') != '') { ?>
<meta name="keywords" content="<?php echo inkthemes_get_option('inkthemes_keyword'); ?>" />
<?php } else {
} ?>
<?php if (inkthemes_get_option('inkthemes_description') != '') { ?>
<meta name="description" content="<?php echo inkthemes_get_option('inkthemes_description'); ?>" />
<?php } else {
} ?>
<?php if (inkthemes_get_option('inkthemes_author') != '') { ?>
<meta name="author" content="<?php echo inkthemes_get_option('inkthemes_author'); ?>" />
<?php } else {
} ?>
<?php } ?>
<link rel="profile" href="gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
</head>
<body <?php body_class(); ?> style="<?php if (inkthemes_get_option('inkthemes_bodybg') != '') { ?>background: fixed url(<?php echo inkthemes_get_option('inkthemes_bodybg'); ?>;<?php } else {
?> background: fixed url(<?php echo get_template_directory_uri(); ?>/images/bg.jpg); <?php } ?>" >
<div class="main-container">
<div class="container_24">
<div class="grid_24">
<div class="clear"></div>
<div class="main-content">
<div class="social-links">
</div>
<div class="header">
<div class="grid_8 alpha">
<div class="logo"> <a href="<?php echo home_url(); ?>"><img src="<?php if (inkthemes_get_option('inkthemes_logo') != '') { ?><?php echo inkthemes_get_option('inkthemes_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
</div>
<div class="grid_16 omega">
<!--Start Menu wrapper-->
<div class="menu_wrapper">
<?php inkthemes_nav(); ?>
</div>
<!--End Menu-->
</div>
</div>
<div class="clear"></div>
Подскажите пожалуйста, как мне добавить описание и ключевые слова в шаблон wp. Кому не сложно переделайте пожалуйста. Буду очень благодарен.
Вот тут
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title>
<?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title('|', true, 'right');
// Add the blog name.
bloginfo('name');
// Add the blog description for the home/front page.
$site_description = get_bloginfo('description', 'display');
if ($site_description && ( is_home() || is_front_page() ))
echo " | $site_description";
// Add a page number if necessary:
if ($paged >= 2 || $page >= 2)
echo ' | ' . sprintf(__('Page %s', 'andrina-lite'), max($paged, $page));
?>
</title>
<?php if (is_front_page()) { ?>
<?php if (inkthemes_get_option('inkthemes_keyword') != '') { ?>
<meta name="keywords" content="<?php echo inkthemes_get_option('inkthemes_keyword'); ?>" />
<?php } else {
} ?>
<?php if (inkthemes_get_option('inkthemes_description') != '') { ?>
<meta name="description" content="<?php echo inkthemes_get_option('inkthemes_description'); ?>" />
<?php } else {
} ?>
<?php if (inkthemes_get_option('inkthemes_author') != '') { ?>
<meta name="author" content="<?php echo inkthemes_get_option('inkthemes_author'); ?>" />
<?php } else {
} ?>
<?php } ?>
<link rel="profile" href="gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
</head>
<body <?php body_class(); ?> style="<?php if (inkthemes_get_option('inkthemes_bodybg') != '') { ?>background: fixed url(<?php echo inkthemes_get_option('inkthemes_bodybg'); ?>;<?php } else {
?> background: fixed url(<?php echo get_template_directory_uri(); ?>/images/bg.jpg); <?php } ?>" >
<div class="main-container">
<div class="container_24">
<div class="grid_24">
<div class="clear"></div>
<div class="main-content">
<div class="social-links">
</div>
<div class="header">
<div class="grid_8 alpha">
<div class="logo"> <a href="<?php echo home_url(); ?>"><img src="<?php if (inkthemes_get_option('inkthemes_logo') != '') { ?><?php echo inkthemes_get_option('inkthemes_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
</div>
<div class="grid_16 omega">
<!--Start Menu wrapper-->
<div class="menu_wrapper">
<?php inkthemes_nav(); ?>
</div>
<!--End Menu-->
</div>
</div>
<div class="clear"></div>
Изменено:
starkind - 3 Февраля 2013 13:45