add_action('pre_get_posts', 'allowed_categories'); function allowed_categories($query) { if (is_home()) { // will make sure you are in the blog page $query->set('category_name', 'category_names_separated_with_commas'); } }
Retirer le footer de W3C total Cache sauf pour Admin
// Disable W3TC footer comment for everyone but Admins (single site & network mode) if ( !current_user_can( 'activate_plugins' ) ) { add_filter( 'w3tc_can_print_comment', function( $w3tc_setting ) { return false; }, 10, 1 ); }
LOGO CENTRE
placer un lien page vers la page du site (en 3* position si 4 autres liens), colorer la barre de fond
modifier le lien du logo pour les res au dessus de 980px: ??
@media (min-width: 980px)
.x-navbar .x-nav > li:nth-child(3) {
text-indent: -99999px;
text-align: left;
width: 360px;
height: 62px;
background: url(logo.png) no-repeat center center;
background-size: contain;
}
.x-navbar .x-nav > li:nth-child(3) {
text-indent: -99999px;
text-align: left;
width: 360px;
height: 62px;
background: url(logo.png) no-repeat center center;
background-size: contain;
}
pour la version staked logo (pas très clair)
@media (min-width: 980px)
@media (min-width: 980px)
.x-logobar {
display: none !important;
visibility: hidden !important;
}
display: none !important;
visibility: hidden !important;
}
et pour le masquer en version mobile:
@media (max-width:980px) {
.x-navbar .x-nav > li:nth-child(3) {
display: none !important;
}
.x-navbar .x-nav > li:nth-child(3) {
display: none !important;
}
Aucun commentaire:
Enregistrer un commentaire