С помощью add_theme_support( 'custom-logo' ) можно добавлять 2 лого?
function my_customize_register( $wp_customize ) {
$wp_customize->add_setting('header_logo', array(
'default' => '',
'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Media_Control($wp_customize, 'header_logo', array(
'section' => 'title_tagline',
'label' => 'Логотип'
)));
$wp_customize->selective_refresh->add_partial('header_logo', array(
'selector' => '.header-logo',
'render_callback' => function() {
$logo = get_theme_mod('header_logo');
$img = wp_get_attachment_image_src($logo, 'full');
if ($img) {
return '<img src="' . $img[0] . '" alt="">';
} else {
return '';
}
}
));
}
add_action( 'customize_register', 'my_customize_register' );
<a href="/" class="header-logo">
<?php
$header_logo = get_theme_mod('header_logo');
$img = wp_get_attachment_image_src($header_logo, 'full');
if ($img) :
?>
<img src="<?php echo $img[0]; ?>" alt="">
<?php endif; ?>
</a>
remove_action( 'add_option_new_admin_email', 'update_option_new_admin_email' );
remove_action( 'update_option_new_admin_email', 'update_option_new_admin_email' );
/**
* Disable the confirmation notices when an administrator
* changes their email address.
*
* @see http://codex.wordpress.com/Function_Reference/update_option_new_admin_email
*/
function wpdocs_update_option_new_admin_email( $old_value, $value ) {
update_option( 'admin_email', $value );
}
add_action( 'add_option_new_admin_email', 'wpdocs_update_option_new_admin_email', 10, 2 );
add_action( 'update_option_new_admin_email', 'wpdocs_update_option_new_admin_email', 10, 2 );
/* хром, сафари */
.element::-webkit-scrollbar { width: 0; }
/* ie 10+ */
.element { -ms-overflow-style: none; }
/* фф (свойство больше не работает, других способов тоже нет)*/
.element { overflow: -moz-scrollbars-none; }
// Change WooCommerce "Related products" text
add_filter('gettext', 'change_rp_text', 10, 3);
add_filter('ngettext', 'change_rp_text', 10, 3);
function change_rp_text($translated, $text, $domain)
{
if ($text === 'Related products' && $domain === 'woocommerce') {
$translated = esc_html__('Check out our other products', $domain);
}
return $translated;
}
При наличии маюскульных цифр в подразделе Lining Figures на панели Glyphs можно в панели Open Type назначить шрифту Tabular Lining - и тогда минускульные цифры (Oldstyle Figures) заменятся на маюскульные (Lining Figures).
.col-xs-five,
.col-sm-five,
.col-md-five,
.col-lg-five {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-five {
width: 20%;
float: left;
}
@media (min-width: 768px) {
.col-sm-five {
width: 20%;
float: left;
}
}
@media (min-width: 992px) {
.col-md-five {
width: 20%;
float: left;
}
}
@media (min-width: 1200px) {
.col-lg-five {
width: 20%;
float: left;
}
}
<div class="row">
<div class="btn-group btn-group-justified">
<div class="btn-group">
<div class="col-sm-12">Column 1</div>
</div>
<div class="btn-group">
<div class="col-sm-12">Column 2</div>
</div>
<div class="btn-group">
<div class="col-sm-12">Column 3</div>
</div>
<div class="btn-group">
<div class="col-sm-12">Column 4</div>
</div>
<div class="btn-group">
<div class="col-sm-12">Column 5</div>
</div>
</div>
</div>