Skip to content

Instantly share code, notes, and snippets.

View valeriu's full-sized avatar
🎯
Focusing

Valeriu Tihai valeriu

🎯
Focusing
View GitHub Profile
<style type="text/css">
.dropdown-menu {
border-bottom:1px solid red;
}
.current-nav-parent > .dropdown-menu{
border: 4px solid red;
}
.current-nav-parent > .dropdown-menu{border-bottom:0}
</style>
<?php
/* -------------------------------------------------------------
* Custom Logo add this in "after_setup_theme" hook
* ============================================================*/
add_theme_support( 'custom-logo' );
/* -------------------------------------------------------------
* Enable svg support
* ============================================================*/
// Foundation for Sites Settings
// -----------------------------
//
// Table of Contents:
//
// 1. Global
// 2. Breakpoints
// 3. The Grid
// 4. Base Typography
// 5. Typography Helpers
@valeriu
valeriu / class-wp-bootstrap-navwalker.php
Last active November 28, 2020 05:18 — forked from imuhammadshoaib/class-wp-bootstrap-navwalker.php
Make parent link clickable in Bootstrap for Desktop with WordPress NavWalker
if (wp_is_mobile()){
$atts['href'] = '#';
$atts['data-toggle'] = 'dropdown';
$atts['aria-haspopup'] = 'true';
$atts['aria-expanded'] = 'false';
$atts['class'] = 'dropdown-toggle nav-link';
$atts['id'] = 'menu-item-dropdown-' . $item->ID;
} else {
$atts['href'] = ! empty( $item->url ) ? $item->url : '';
$atts['aria-haspopup'] = 'true';
Nous avons un span en plus :
<li lwc-4nfn2rc40ch=""><span style="background-color: rgb(255, 255, 255); font-size: 12px; color: rgb(0, 0, 0);" lwc-4nfn2rc40ch="">Unit Serial Number</span></li>
Cela doit être correct ainsi :
<li lwc-4nfn2rc40ch="">Unit Serial Number</li>