Помогите изменить шапку сайта

S
На сайте с 18.10.2012
Offline
1
1434

Собственно пилю тут onion шаблон.

Не могу 2-е вещи сделать:

1) убрать горизонтальное меню

2) убрать белую полоску

startkomp.ru

Вот код header.php


<?php global $SMTheme;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php $SMTheme->show_title()?>

<?php
if(
(is_archive()&&is_day()&&$SMTheme->get( 'seo', 'day' ))||
(is_archive()&&is_month()&&$SMTheme->get( 'seo', 'month' ))||
(is_archive()&&is_year()&&$SMTheme->get( 'seo', 'year' ))||
(is_category()&&$SMTheme->get( 'seo', 'category' ))||
(is_tag()&&$SMTheme->get( 'seo', 'tag' ))||
(is_author()&&$SMTheme->get( 'seo', 'author' ))||
(is_search()&&$SMTheme->get( 'seo', 'search' ))
) {
?><meta name="robots" content="noindex" /><?php
}
?>

<?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?>

<?php wp_head(); ?>
<style type="text/css">
<?php $class=$SMTheme->block_slider_css(); ?>

<?php echo $SMTheme->get( 'integration','css' )?>
</style>
<?php
echo $SMTheme->get( 'integration','headcode' );
?>
<script type="text/javascript">
jQuery(document).ready(function() {
<?php
$SMTheme->block_slider_config();
?>
jQuery('ul.menus').each(function(){
jQuery('li:first', this).css('border-left-width', '0px');
jQuery(this).children('li:last').css('border-right-width', '0px');
});
jQuery('ul.menus').css('overflow', 'visible');
jQuery(".menus .children").addClass('sub-menu');

<?php
$SMTheme->block_menu_config("menus");
?>
jQuery('textarea#comment').each(function(){
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>');
});
jQuery('.feedback input').each(function(){
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']');
});
jQuery('.feedback textarea').each(function(){
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']');
});
});
</script>
</head>
<body <?php body_class( $class ); ?>>
<div id='header'>
<div class='box_out'>
<div class='container clearfix'>






<div id="logo">
<?php if ($SMTheme->get( 'general', 'logosource' )==1&&$SMTheme->get( 'general', 'logoimage' )!='') { ?>
<a href='<?php echo home_url(); ?>'><img src='<?php echo $SMTheme->get( 'general', 'logoimage' )?>' class='logo' alt='<?php echo bloginfo( 'name' ); ?>' title="<?php echo bloginfo( 'name' ); ?>" /></a>
<?php } ?>
<?php if ($SMTheme->get( 'general', 'logosource' )==2&&$SMTheme->get( 'general', 'customtext' )!='') { ?>
<h1 class='site_ttl'><?php echo $SMTheme->get( 'general', 'customtext' )?></h1>
<?php } ?>
</div>



<div id='mainmenu-container'>

<div class='left-side'></div>
<div id='mainmenu'><?php
$nav_menu_params=array(
'depth'=>0,
'theme_location'=>'main-menu',
'menu_class'=>'menus menu-primary',
'fallback_cb'=>'block_main_menu'
);
wp_nav_menu($nav_menu_params);
?></div>
</div>

<?php
if ((is_front_page()&&$SMTheme->get( 'slider', 'homepage'))||(!is_front_page()&&$SMTheme->get( 'slider', 'innerpage'))) {
?><div class='slider-container'><?php
$SMTheme->block_slider();
?></div><?php
}
?>

</div>
</div>
</div>
<?php
if ($SMTheme->get( 'social', 'showsocial')) {
?>
<div id='smthemes_share'>
<ul class='inner'>
<?php
$href=get_bloginfo('url').$_SERVER['REQUEST_URI'];
$SMTheme->pagetitle;
$services=$SMTheme->get( 'social', 'socials' );
if (is_single()) {$img=wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'medium');$img=$img[0];}
if ($img=='')$img=$SMTheme->get( 'general', 'logoimage' );
foreach ($services as $service) {
if ($service['show']) {
$code=preg_replace('/smt_social_url/', $href, $service['code']);
$code=preg_replace('/smt_social_title/', $SMTheme->pagetitle, $code);
$code=preg_replace('/smt_social_desc/', $SMTheme->pagetitle, $code);
$code=preg_replace('/smt_social_img_url/', $img, $code);
echo "<li>".$code."</li>";
}
}
?>
</ul>
</div>
<?php
}
?>
Pasha199
На сайте с 17.02.2009
Offline
167
#1

startkomp, CSS нужен.

ZipZip
На сайте с 16.04.2012
Offline
25
#2

Вот это выпилить попробуйте:

<div id='mainmenu-container'>

<div class='left-side'></div>

<div id='mainmenu'><?php

$nav_menu_params=array(

'depth'=>0,

'theme_location'=>'main-menu',

'menu_class'=>'menus menu-primary',

'fallback_cb'=>'block_main_menu'

);

wp_nav_menu($nav_menu_params);

?></div>

Ну а белую полоску надо в CSS искать

N
На сайте с 04.10.2012
Offline
8
#3

Белая полоска:

#header {

background:url(images/top2.png) 50% top no-repeat;

}

ZipZip:
Вот это выпилить попробуйте:

а в настройках Внешний вид >> Меню не проще отключить главное меню?

Не люблю форумы
S
На сайте с 18.10.2012
Offline
1
#4

Позже попробую - заранее всем спасибо!

ZipZip
На сайте с 16.04.2012
Offline
25
#5
Nevkusny:
а в настройках Внешний вид >> Меню не проще отключить главное меню?

Бегло пробежался и не обратил внимание что за движок...

startkomp личные сообщения читаете? Я же вам кинул аську, обращайтесь.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий