Jump to content
  • 0

Пару вопросов по изменению шаблона


mihed1991
 Share

Question

Всем доброго времени суток, есть сайт http://life-another.ru при редизайне шаблона возникло пару вопросов. Итак первый: как убрать двойной слеш в тайтле? Вот допустим страница http://life-another.ru/ratsionalnoe-pitanie/mannaya-kasha.html , а вверху, там где крестик, идет вот такая конструкция Манная каша - польза или вред? | Здоровый образ жизни | Рациональное питание, красивое и гибкое тело. Как убрать прямой слэш - выделен красным?

Вопрос номер 2.

Как сделать промежутки между постов? Пример http://life-another.ru/img/tak.jpg

И третий вопросик, как увеличить шрифт в поле для написания комментариев?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Всем доброго времени суток, есть сайт http://life-another.ru при редизайне шаблона возникло пару вопросов. Итак первый: как убрать двойной слеш в тайтле? Вот допустим страница http://life-another.ru/ratsionalnoe-pitanie/mannaya-kasha.html , а вверху, там где крестик, идет вот такая конструкция Манная каша - польза или вред? | Здоровый образ жизни | Рациональное питание, красивое и гибкое тело. Как убрать прямой слэш - выделен красным?

Открыть соответствующий шаблон и удалить вертикальную черту. Скорее всего это header.php

Как сделать промежутки между постов? Пример http://life-another.ru/img/tak.jpg

При помощи margin, например. Сейчас между постами отступ 30px

Edited by hedgehog
Link to comment
Share on other sites

  • 0

Всем доброго времени суток, есть сайт http://life-another.ru при редизайне шаблона возникло пару вопросов. Итак первый: как убрать двойной слеш в тайтле? Вот допустим страница http://life-another.ru/ratsionalnoe-pitanie/mannaya-kasha.html , а вверху, там где крестик, идет вот такая конструкция Манная каша - польза или вред? | Здоровый образ жизни | Рациональное питание, красивое и гибкое тело. Как убрать прямой слэш - выделен красным?

Открыть соответствующий шаблон и удалить вертикальную черту. Скорее всего это header.php

Как сделать промежутки между постов? Пример http://life-another.ru/img/tak.jpg

При помощи margin, например. Сейчас между постами отступ 30px

К сожалению в headere я не нашел этот слэш. Вот код headera.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php function theme_footer_t() { if (!(function_exists("check_theme_footer") && function_exists("check_theme_header"))) { theme_usage_message(); die; } } theme_footer_t(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?> <?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php if(get_theme_option('featured_posts') != '' && is_home()) {
?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.5-core-yc.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2-more.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.transitions.js" type="text/javascript"></script>
<?php } ?>
<!--[if IE 6]>
<script src="<?php bloginfo('template_url'); ?>/js/pngfix.js"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script src="<?php bloginfo('template_directory'); ?>/menu/mootools-1.2.5-core-yc.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic.css" type="text/css" media="screen" charset="utf-8" />
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" />
<![endif]-->
<!-- Load the MenuMatic Class -->
<script src="<?php bloginfo('template_directory'); ?>/menu/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script>
<?php echo get_theme_option("head") . "\n"; function functions_file_exists() { if (!file_exists(dirname(__file__) . "/functions.php") || !function_exists("theme_usage_message") ) { echo ("<p style=\"padding:10px; margin: 10px; text-align:center; border: 2px dashed Red; font-family:arial; font-weight:bold; background: #fff; color: #000;\">This theme is released free for use under creative commons licence. All links in the footer should remain intact. These links are all family friendly and will not hurt your site in any way. This great theme is brought to you for free by these supporters.</p>"); die; } } functions_file_exists(); wp_head(); ?>
<!-- Put this script tag to the <head> of your page -->
<noindex><script type="text/javascript" src="http://userapi.com/js/api/openapi.js?52"></script>
<script type="text/javascript">
VK.init({apiId: 3020134, onlyWidgets: true});
</script></noindex>
<link rel="shortcut icon" href="http://life-another.ru/favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://life-another.ru/favicon.ico" type="image/x-icon" />
</head>
<body>
<script type="text/javascript">
window.addEvent('domready', function() {
var myMenu = new MenuMatic();
});
</script>

<div id="wrapper">
<div id="wrapper-bg"><div id="wrapper-bg2">
<div id="outer-wrapper" class="outer-wrapper">
<div class="outer">
<div class="menu-links">
<div id="pagemenucontainer">
<?php
if(function_exists('wp_nav_menu')) {
wp_nav_menu( 'depth=1&theme_location=menu_1&menu_id=pagemenu&container=&fallback_cb=menu_1_default');
} else {
menu_1_default();
}

function menu_1_default()
{
?>
<ul id="pagemenu">
<li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Главная</a></li>
<?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
</ul>
<?php
}

?>
</div>
</div>
</div>

<div id="header" class="outer">
<div class="header-part">
<?php
$get_logo_image = get_theme_option('logo');
if($get_logo_image != '') {
?>
<a href="<?php bloginfo('url'); ?>"><img src="<?php echo $get_logo_image; ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" class="logoimg" /></a>
<?php
} else {
?>
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>
<?php
}
?>

</div>

<div class="header-part rightsector" style="padding-top: 0; text-align:right;">

</div>
</div>

<div class="outer">

</div>

А вот кусочек кода css , post отвечает за отступы

#navcontainer {
display: block;
height: 56px;
margin-bottom: 0;
overflow: hidden;
padding: 0;
text-shadow: 0 1px 0 #FFFFFF;
width: 980px;

}
#navcontainer .current-cat a {
background: none repeat scroll 0 0 #EAF3F8;
}
#content {

}

pre {
overflow: auto;
width: 460px;
}
.post {
border-bottom: 1px solid #55A0FF;
margin-bottom: 30px;
padding-bottom: 15px;

}

.post p {
margin-bottom: 10px;
}
.title {
color: #005AF2;
font-family: arial, "Tahoma";
font-weight: bold;
line-height: 25px;
margin: 0 0 2px;
padding: 2px;
font-size: 25px;

}
.title a {
color: #005AF2;
text-decoration: none;

}
.title a:hover {
color: #912CEE;
text-decoration: none;
text-shadow: 2px 2px 2px #CCCCCC;
}
.pagetitle {
font-family: Arial,Helvetica,Sans-serif;
line-height: 20px;
margin-bottom: 15px;

}
.readmorecontent {
text-align: right;
}
a.readmore {
font-size: 13px;
font-weight: bold;
padding: 7px 10px;
text-decoration: none;
}
a.readmore:hover {
color: #5588AA;
}
.postdate {
background: #f5feff;
border-top: 1px dotted #ddd;
border-bottom: 1px dotted #ddd;
font-size: 13px;
}

.postmeta {
font-family: Arial, Verdana;
font-size: 11px;
padding: 2px 4px;
background: #f5feff;
border-top: 1px dotted #ddd;
border-bottom: 1px dotted #ddd;
font-size: 13px;

}
.postdate img, .postmeta img {
border: medium none;
margin: 4px;
vertical-align: middle;

}
.entry {
font-family: Verdana;
font-size: 14px;
line-height: 20px;
padding-top: 8px;
text-align: left;
}
.entry h1 {
font-family: arial, "Tahoma";
font-weight: bold;
font-size: 25px;
color: #005AF2;
}
.entry h2{
font-family: arial, "Tahoma";
font-weight: bold;
font-size: 22px;
color: #FF7104;
text-shadow: 2px 2px 2px #CCCCCC;
}
.entry h3 {
font-family: arial, "Tahoma";
font-weight: bold;
font-size: 18px;
color: #003399;
text-shadow: 2px 2px 2px #CCCCCC;
}
.entry h4 {
font-family: arial, "Tahoma";
font-weight: bold;
font-size: 16px;
color: #6090DC;
text-shadow: 2px 2px 2px #CCCCCC;

Правильно margin регулирует отступы, а как сделать чтобы это наглядно было выделено, вот так как на скрине http://life-another.ru/img/tak2.png

Link to comment
Share on other sites

  • 0


<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>

Вертикальная черта стоит в названии сайта. Settings -> General -> Site name в админке.

И, кстати, в вышеуказанном коде нет проверки на наличие bloginfo('description'). У вас не задано описание, поэтому выводится пустой h2, что не есть хорошо.

Link to comment
Share on other sites

  • 0


<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>

Вертикальная черта стоит в названии сайта. Settings -> General -> Site name в админке.

И, кстати, в вышеуказанном коде нет проверки на наличие bloginfo('description'). У вас не задано описание, поэтому выводится пустой h2, что не есть хорошо.

Все я понял, спасибо большое. Со слэшем разобрались +


<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>

Вертикальная черта стоит в названии сайта. Settings -> General -> Site name в админке.

И, кстати, в вышеуказанном коде нет проверки на наличие bloginfo('description'). У вас не задано описание, поэтому выводится пустой h2, что не есть хорошо.

А как быть с отступами?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy