- 0
Создание кнопки "главная" в меню если на главной странице отображать "Ваши последние записи"
Asked by
SergeyAQE486,
-
Обсуждения
-
Актуальные контакты: Telegram: @Nikker_web E-Mail: tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
-
Актуальные контакты: Telegram: @Nikker_web E-Mail: tarasevich.email@gmail.com Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ Портфолио https://www.behance.net/d4d4186e
-
Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение. .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }
-
Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
-
By Katerina23 · Posted
Да, подходит. Спасибо.
-
Question
SergeyAQE486
Подскажите пожалуйста как создать кнопку "главная" в меню, вот этот сайт bt62rzn.ru Команда
<li><a href="<?php bloginfo( 'name' ); ?>/">Главная</a></li>
создаёт эту кнопку но отображает её некорректное и не делает ссылку на сам сайт. Подскажите пожалуйста как исправить данную ситуацию... Вот файл header php. :
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head <?php do_action( 'add_head_attributes' ); ?>> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package kickstart business
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head <?php do_action( 'add_head_attributes' ); ?>>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'kickstart-business' ); ?></a>
<header id="masthead" class="site-header" role="banner">
<div class="grid">
<div class="site-branding col-3-12">
<?php kickstart_business_the_custom_logo(); ?>
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</h1>
<?php
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) : ?>
<p class="site-description"><?php echo $description; ?></p>
<?php endif; ?>
</div><!-- .site-branding -->
<div class="address col-8-12 no-mobile">
<ul class="header-info">
<?php if ( get_theme_mod( 'timing' ) ) : ?>
<li class="header-meta timing col-4-12">
<b><?php echo get_theme_mod('timing'); ?></b>
<span><?php echo get_theme_mod('days'); ?></span>
</li>
<?php endif; ?>
<?php if ( get_theme_mod( 'address' ) ) : ?>
<li class="header-meta location col-4-12">
<b><?php echo get_theme_mod('address'); ?></b>
<span><?php echo get_theme_mod('address2'); ?></span>
</li>
<?php endif; ?>
<?php if ( get_theme_mod( 'telephone' ) ) : ?>
<li class="header-meta tel col-4-12">
<b><?php echo get_theme_mod('telephone'); ?></b>
<span><?php echo get_theme_mod('email'); ?></span>
</li>
<?php endif; ?>
</ul>
</div>
</div> <!-- End top header -->
<nav id="site-navigation" class="main-navigation" role="navigation">
<div class="grid">
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu(array(
'menu' => 'Main Navigation',
'container_id' => 'cssmenu',
'theme_location' => 'primary',
'walker' => new Consulting_Menu_Walker()
)); }?>
</div>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
<div id="content" class="site-content">
<?php get_template_part('sections/custom-header'); ?>
Edited by SergeyAQE486Link to comment
Share on other sites
0 answers to this question
Recommended Posts
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.