X   Сообщение сайта
(Сообщение закроется через 3 секунды)



 

Здравствуйте, гость (

| Вход | Регистрация )

Открыть тему
Тема закрыта
> Помогите исправить меню в wp
BimmeR
BimmeR
Topic Starter сообщение 3.2.2012, 15:00; Ответить: BimmeR
Сообщение #1


Скрин:
Прикрепленное изображение

Вот сам код, что не так?
  <div id="footnavigation">
  <img src="<?php bloginfo('stylesheet_directory'); ?>/images/men_crn_left.png" width="2" height="29" alt="" class="alignleft" />
  <img src="<?php bloginfo('stylesheet_directory'); ?>/images/men_crn_right.png" width="2" height="29" alt="" class="alignright" />
      
      <?php $menu = wp_nav_menu( array('container' => '', 'container_class' => '', 'menu_class' => '', 'menu_id' => 'footnav', 'echo'=> false, 'sort_column' => 'menu_order', 'depth' => '1' ,'theme_location' => 'secondary' ) );
      /*  now we remove the <ul> at the beginning of the generated menu, we will append it manually together with a <li></li> that contains are home icon */
      $menu = substr($menu, 17);
      $menu = '<ul id="footnav"><li class="home"><a href="'. get_option('home').'" rel="nofollow"><img src="'. get_bloginfo('stylesheet_directory') .'/images/men_icon_home.png" width="16" height="14" alt="" /></a></li>' . $menu;
      /*  now we remove the </ul> at the end of the generated menu, we will append it manually together with a <li class="cleaner">&nbsp;</li> that clears all floated elements */
      $menu_new = substr($menu, 0, -5);
      $menu_new .= '<li class="cleaner">&nbsp;</li></ul>';
      print_r($menu_new);
      ?>

  </div><!-- end #footnavigation -->
0
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
schokk
schokk
сообщение 3.2.2012, 15:01; Ответить: schokk
Сообщение #2


css можно?


Поблагодарили: (1)
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
BimmeR
BimmeR
Topic Starter сообщение 3.2.2012, 16:08; Ответить: BimmeR
Сообщение #3


Вот

Развернуть/Свернуть
html, body, div, h1, h2, h3, ul, ol, li, form, fieldset,  
input, textarea {margin: 0; padding: 0; font-size: 100%;}  
ul {list-style: none;}  
img, fieldset {border: 0;}
em {font-style: italic;}
strong {font-weight: bold;}

body {font-family:Arial, Helvetica, Tahoma, sans-serif; font-size: 62.5%; text-align:center; }
a {text-decoration:none; color: #000; }
a:hover {text-decoration:underline; }
h1,h2,h3,h4,h5,h6 {font-weight: normal; margin:0; padding:0; }
p {margin: 0 0 16px; }

#container {width:100%; width: 980px; min-height: 200px; margin: 0 auto; text-align:left; }
#container div.wrapper {margin: 0 auto; text-align: left; padding: 0 10px; }
#container div.cleaner {clear: both; font-size:1px; height: 1px; margin:0; line-height: 1px; }
#container div.sep {font-size:1px; height: 2px; margin:0; line-height: 1px; margin: 2px 0; }
div.box {background-color: #fff; border-bottom-width: 2px; padding: 10px; }
div.box-nopadd {padding: 0; border-top: none; }

.posts p.more a {padding: 4px 10px; text-decoration: none; -moz-border-radius: 4px; -khtml-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; font-size: 11px; text-transform: uppercase; }

#header {padding: 20px 5px; }
#logo {float: left; display: inline; }
#bannerHead {float: right; display: inline; }

#navigation, #footnavigation {line-height: 29px; }
#nav, #footnav {display: block; margin: 0 2px; }
#nav li, #footnav li {float: left; display: inline; font-size: 12px; font-weight: bold; padding: 0 12px; }
#nav li li {padding-right: 3px; padding-left: 3px; line-height: 22px;}
#nav li.home, #footnav li.home {padding-left: 0; border-left: 0; }
#nav li.home img, #footnav li.home img {float: left; display: inline; padding: 8px 0 7px; }
#nav li.cleaner, #footnav li.cleaner {float: none; display: inline-block; border-right: none;}

#footnavigation {border-bottom: none; }
#footnav li {font-size: 10px; text-transform: uppercase; font-weight: normal; }

#menuSocial {float: right; display: inline; width: 70px; margin-top: 6px; z-index: 300; position: relative; }
#menuSocial li {float: right; display: inline; margin-left: 5px; }
#menuSocial img {border-radius: 2px;}

#frame {min-height: 200px; padding: 10px 0 50px; width: 978px; }
.posts div.cover {margin-bottom: 5px; }
ul.posts li {float: left; display: inline; }
#container .posts li.last {margin-right: 0;}
.posts h2 {font-size: 12px; font-weight: bold; line-height: 18px; }

.navTabs ul {height: 24px;}
.navTabs li {float: left; display: inline; font-size: 12px; font-weight: bold; margin-right: 2px; }
.navTabs li a {padding: 9px 10px; }
.navTabs li.active a, .navTabs li a:hover {text-decoration: none; }

a.more {font-style: italic; }

#featPosts {margin-bottom: 30px; width: 960px; }

#postsBig {float: left; display: inline; min-height: 400px; width: 632px; margin-right: 0; }
#postsBig h2 {font-size: 24px; font-weight: bold; line-height: 30px; }
#postsBig p {font-size: 12px; line-height: 18px; margin: 0; }

#postsSmall {float: left; display: inline; width: 326px; margin-top: 10px; }
#postsSmall li {padding: 8px; float: none; display: block; }
#postsSmall div.box {border-left: none; }
#postsSmall div.cover {float: left; display: inline; margin-right: 10px; width: 55px; }
#postsSmall p {margin-bottom: 0; font-size: 11px; line-height: 16px; }
#postsSmall a {text-decoration: none; color: #666; }
#postsSmall a:hover {text-decoration: none; }

        /* Required */
.container { overflow:hidden; position:relative; }
.slides { position:absolute; top:0; left:0; }
.slides li.slide { position:absolute; top:0; width:620px; min-height: 400px; display:none; }
        /* Optional */
#featPosts { position:relative; clear:both; }

#quickCategories {margin: 20px 0; }
#content div.inside {margin-bottom: 0; }
#quickCategories ul.posts li {width: 150px; margin-right: 7px; }

#featCategories {}
#featCategories div.category {float: left; display: inline; width: 312px; margin-right: 19px; margin-bottom: 19px; }
#featCategories div.category-last {margin-right: 0;}
#featCategories li {float: none; display: block; padding: 8px 0; padding-left: 16px; }
#featCategories li.first {padding-left: 0; background: none; }
#featCategories li.first h2 {margin-bottom: 4px; }
#featCategories li.first p {margin-bottom: 0; font-size: 11px; line-height: 18px; }

div.title {border-bottom: none; padding: 0 10px; line-height: 28px; }
div.title img {float: right; display: inline; margin-top: 6px;  }
div.title h3 {font-size: 12px; font-weight: bold; }
div.breadcrumbs h3 {font-size: 11px; font-weight: normal; }
div.breadcrumbs a {font-weight: bold; }

/* Main */
div.side-left #main, div.side-left #sidebar {float: right; margin-right: 0; margin-left: 15px; }
div.side-left #sidebar {float: right; margin: 0; }
div.full-width #main {width: 958px; margin-right: 0;}

#main {float: left; display: inline; margin-right: 15px; width: 643px; }
#archive div.sep {margin-bottom: 15px; }
#archive div.cover {float: left; display: inline; margin: 0 10px 10px 0; }
#archive h2, h2.title {font-size: 18px; font-weight: bold; line-height: 24px; margin-bottom: 6px; }
#archive p {font-size: 12px; line-height: 18px; margin-bottom: 6px; }

#single h1 {font-size: 28px; font-weight: bold; line-height: 34px; }
#single h1.page {margin-bottom:12px; }
#single div.postmetadata {margin-bottom: 12px; }
#single {font-size: 14px; line-height: 20px; }
#single div.sep {margin-bottom: 15px; }
#single div.postcontent p.pages {float: right; display: inline; margin: 0 0 10px 10px; }
#single div.postcontent p.tags, #single div.postcontent p.pages {font-size: 11px; text-transform: uppercase; margin: 0; line-height: 24px; }
#single div.postcontent p.tags a, #single div.postcontent p.pages a {padding: 3px 6px; font-size: 10px; }
#single .postcontent h2, #single .postcontent h3, #single .postcontent h4, #single .postcontent h5, #single .postcontent h6 {font-weight: bold; margin-bottom: 12px; }
#single .postcontent h2 {font-size: 30px; line-height: 30px; }
#single .postcontent h3 {font-size: 26px; line-height: 30px; }
#single .postcontent h4 {font-size: 24px; line-height: 28px; }
#single .postcontent h5 {font-size: 20px; line-height: 24px; }
#single .postcontent h6 {font-size: 18px; line-height: 22px; }
#single .postcontent p {margin-bottom: 14px; }
#single .postcontent p img {margin-bottom: 10px;}
#single .postcontent ul, #single .postcontent ol {margin: 0 0 14px 14px; }
#single .postcontent li ul, #single .postcontent li ol {margin-bottom: 0; }
#single .postcontent li {list-style-position: inside;}
#single .postcontent ul li {list-style-type: square;}
#single .postcontent ol li {list-style-type: decimal;}
#archive .postcontent {overflow: hidden; }

#single .box-single {border-bottom-width: 1px; }
#single .box-author {font-size: 12px; line-height: 18px; }
.box-author h2 {margin-bottom: 10px;}
.box-author img {float: left; display: inline; margin-right: 10px; }
.box-author p {margin-bottom: 0;}
.box-author p.more {margin-top: 6px; font-size: 11px; }

div.postmetadata {margin: 6px 0; }
div.postmetadata ul {display: block; width: 100%;}
div.postmetadata ul li{line-height: 24px; font-size: 10px; padding-left: 22px; float:none; display: inline-block; margin-right: 15px; }
div.postmetadata ul li.calendar {background-image: url(images/icon_calendar.png);}
div.postmetadata ul li.author {background-image: url(images/icon_author.png);}
div.postmetadata ul li.category {background-image: url(images/icon_category.png);}
div.postmetadata ul li.comments {background-image: url(images/icon_talk.png); }
div.postmetadata ul li.calendar {background-image: url(images/icon_calendar.png);}

/* Sidebar */
#sidebar {float: left; display: inline; width: 300px; }
#sidebar .widget {margin-bottom: 20px; font-size: 12px; line-height: 18px; }
#sidebar ul.posts li {float: none; }
#sidebar ul.posts div.cover {float: left; display: inline; margin-right: 10px; margin-bottom: 10px; }
#sidebar ul.posts p.postmetadata {font-size: 11px; }
ul.wpzoomSocial li {float: left; display: inline; width: 130px; margin-right: 5px; line-height: 16px; margin-bottom: 8px; font-size: 11px; }
ul.wpzoomSocial li img {float: left; display: inline; margin-right: 5px; }

/* Comments */
#main ol.normalComments {clear: left; padding: 1em 0; margin:0; }
#main ol.normalComments div.comment-body {position: relative; }
#main ol.normalComments div.reply {position: absolute; top: 0; right: 0; }
#main ol.normalComments li {list-style-type: none; margin: 0 0 1em; padding: 10px 15px 5px; font-size: 11px; line-height: 16px; min-height: 60px; }
#main ol.normalComments li ul.children {padding: 10px 0 0; }
#main ol.normalComments li ul.children li {clear: left; margin: 0 10px 10px 10px; }
#main ol.normalComments li p {margin-bottom: 0;}

#main ol.normalComments img.avatar { float: left; margin: 0 15px 15px 0; }
#main ol.normalComments cite {font-size: 12px; line-height: 18px; font-weight: bold; font-style: normal; float: left; display: inline; margin-right: 25px;  }
#main ol.normalComments .commentmetadata {line-height: 18px; font-size: 11px; margin-bottom: 5px; }
#main ol.normalComments blockquote {font-size: 12px; line-height: 18px; }
#main ol.normalComments span.says {display: none; }

.afterpost .navigation .alignleft a, .reply a, .afterpost .navigation .alignright a,.cancel-comment-reply a { padding: 2px 5px; margin-bottom: 5px; font-weight: normal; text-transform: uppercase; font-size: 10px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: none; }
.afterpost .navigation .alignleft a:hover, .afterpost .navigation .alignright a:hover, .reply a:hover, .cancel-comment-reply a:hover { text-decoration: none; }
.afterpost .navigation .alignleft a, .afterpost .navigation .alignright a {width:125px; padding:3px 0 0 3px; text-align:center; height:20px;}

#commentform {margin-top: 15px; clear: left; }
#commentform code {font-size: 11px; }
#commentform p {margin: 0 0 5px; font-size: 12px;}
#commentform #formLabels {float: left; display: inline; width: 300px; }
#commentform #formContent {float: left; display: inline; width: 520px; }
#commentform label {font-weight:bold; line-height: 2.0em; font-size: 11px; display: block; text-transform: uppercase; }
#commentform input {width: 250px;    padding: 2px 0 2px 5px;    font-size: 18px; margin-bottom: 5px; font-family: Arial, Tahoma, Helvetica, sans-serif; }
#commentform textarea {    width: 100%; height: 100px;    padding: 2px; margin-bottom: 10px;    }
#commentform #submit {font-size: 14px; text-transform: lowercase; padding: 5px 7px; width: auto; }

#main label, #commentform label {font-weight:bold; line-height: 2.0em; font-size: 11px; display: block; text-transform: uppercase; }
#main #submit, #commentform #submit {background:none; font-size: 14px; text-transform: lowercase; padding: 5px 7px; width: auto; cursor: pointer; }

#single div.postcontent {font-size: 14px; line-height: 20px; }
#single div.postcontent p,#single div.postcontent img {margin-bottom: 14px; }
#single div.postcontent ul, #single div.postcontent ol {margin-left: 20px; margin-bottom: 14px; }
#single div.postcontent li {list-style-position: inside;}
#single div.postcontent ul li {list-style-type: square;}
#single div.postcontent ol li {list-style-type: decimal;}

/* Footer */
#footer {margin-top: 20px; text-align: left; padding: 0 0 20px 10px; }
#footer p {margin:0; line-height: 18px; font-size: 10px; text-transform: uppercase; }
#footer p.copy {}
#footer p.wpzoom {float: right; display: inline; line-height: 16px; width: 146px; margin-right: 5px; }
#footer p.wpzoom img {float: right; display: inline; margin: 0;}

div.navigation {text-align: center; }
div.navsep {margin-top: 20px; }
div.navigation a {padding: 3px 5px; }

/* Begin Images */
img.centered {    display: block;    margin-left: auto;    margin-right: auto;    }
img.alignright {    margin: 0 0 5px 10px;    display: inline;    }
img.alignleft {    margin: 0 10px 5px 0;    display: inline;    }
.alignright {    float: right;    }
.alignleft {    float: left    }
/* End Images */

/* Begin Lists
    Special stylized non-IE bullets
    Do not work in Internet Explorer, which merely default to normal bullets. */
/* Begin Various Tags & Classes */
acronym, abbr, span.caps {    cursor: help;    }
acronym, abbr {    border-bottom: 1px dashed #999;    }
blockquote {    margin: 15px 30px 0 10px;    padding-left: 20px;    border-left: 5px solid #ddd;    }
blockquote cite {    margin: 5px 0 0;    display: block;    }
.center {    text-align: center;    }
.hidden {    display: none;    }
hr {    display: none;    }
a img {    border: none;    }
.navigation {    display: block;    text-align: center;    margin-top: 10px;    margin-bottom: 10px;    }
/* End Various Tags & Classes*/

/* Captions */
.aligncenter, div.aligncenter {    display: block;    margin-left: auto;    margin-right: auto;}
.wp-caption {    border: 1px solid #ddd;    text-align: center;    background-color: #f3f3f3;    padding-top: 4px;    margin: 10px;}
.wp-caption img {    margin: 0;    padding: 0;    border: 0 none;}
.wp-caption p.wp-caption-text {    font-size: 11px;    line-height: 17px;    padding: 0 4px 5px;    margin: 0;}
/* End captions */
img#wpstats{display:none}

#searchform label {font-weight: bold; font-size: 11px; display: none; }
#searchform input {float: left; display: inline; height: 18px; padding: 4px; }
#searchform input#s {width: 200px;}
#searchform input#searchsubmit {font-size: 11px; font-weight: bold; height: 28px; width: 60px; padding:0; margin-left: 2px; margin-bottom: 10px; cursor: pointer; }

/* WPZOOM Gallery Widget */
.widget ul.gallery {padding: 0; margin:0;}
.widget ul.gallery li {list-style-type: none; float: left; display: inline; padding:0; margin: 0 11px 11px 0; }
.widget ul.gallery li.last {margin-right: 0;}
.widget ul.gallery li img {padding: 1px; }

.widget .social li { display: inline; width: 47%; float: left; padding: 10px 0; margin-right: 6px; line-height: 16px; }
.widget .social li a { font-size: 12px; font-weight: bold; }
.widget .social li a span { font-size: 11px; display: block; font-weight: normal; }
.widget .social img { float: left; margin-right: 7px; }

.postcontent .gallery .gallery-item {display: -moz-inline-stack; display: inline-block; vertical-align: top; zoom: 1; *display: inline;    margin:10px; }
.postcontent .gallery { margin: auto; text-align:center; clear:both; }
.postcontent .gallery img { }
.postcontent .gallery-caption { margin-left: 0; }


Помогите плз. Уже голову сломал, не выходит исправить.
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
vanderv
vanderv
сообщение 3.2.2012, 23:12; Ответить: vanderv
Сообщение #4


(BimmeR @ 3.2.2012, 15:08) *
Помогите плз. Уже голову сломал, не выходит исправить.

лучше дай ссылку на сайт (если на локалке - выложи хотя бы шаблон) - 2 минуты и твоя проблема будет решена.


Поблагодарили: (1)
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
BimmeR
BimmeR
Topic Starter сообщение 3.2.2012, 23:22; Ответить: BimmeR
Сообщение #5


Спасибо. schokk, - помог с решением проблемы.

Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Открыть тему
Тема закрыта
2 чел. читают эту тему (гостей: 2, скрытых пользователей: 0)
Пользователей: 0


Свернуть

> Похожие темы

  Тема Ответов Автор Просмотров Последний ответ
Открытая тема (нет новых ответов) Помогите вспомнить рекламного бота Телеграм для обмена рекламой
0 Mixatraider 725 21.2.2024, 23:42
автор: Mixatraider
Открытая тема (нет новых ответов) Посоветуйте партнерку, что бы исправить ситуацию
11 Maneja 3706 28.9.2021, 23:36
автор: NikosTM
Открытая тема (нет новых ответов) Помогите рещить проблему с монитором.
Почему низкое разрешение при подключении монитора через displayport?
0 Levels 1701 11.12.2020, 0:48
автор: Levels
Открытая тема (нет новых ответов) Исправить проблему в сайте, требуется помощь программиста
1 woolf 1173 14.10.2020, 14:47
автор: WoWeb
Открытая тема (нет новых ответов) Помогите кто нибудь получить партнерку Росбанк!
7 heisenberg_mw 2340 7.8.2020, 9:28
автор: heisenberg_mw


 



RSS Текстовая версия Сейчас: 18.4.2024, 9:40
Дизайн