This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"label": "Products", "url": "#"}, | |
{"label": "Learn", "url": "#"} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Kirki::add_config('theme_config_id', array( | |
'capability' => 'edit_theme_options', | |
'option_type' => 'theme_mod', | |
)); | |
Kirki::add_section('main_menu_settings', array( | |
'title' => __('Main Menu Settings', 'textdomain'), | |
'priority' => 30, | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*======= Notebook =======*/ | |
.note-book-wrapper { | |
max-height: 710px; | |
overflow-y: scroll; | |
} | |
.note-book-wrapper::-webkit-scrollbar-track { | |
border-radius: 3px; | |
background-color: transparent; | |
} | |
.note-book-wrapper::-webkit-scrollbar { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new \Kirki\Field\Repeater( | |
[ | |
'settings' => 'repeater_setting_4', | |
'label' => esc_html__( 'Works Settings', 'kirki' ), | |
'section' => 'section_id', | |
'row_label' => [ | |
'type' => 'field', | |
'value' => esc_html__( 'Your Custom Value', 'kirki' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mydeals_styles() { | |
if( is_page(['all-deals'])) { | |
wp_enqueue_style( 'bootstrap-test', get_template_directory_uri() . '/assets/css/bootstrap.min.css', array(), '5.3.11', false ); | |
} | |
} | |
add_action('wp_enqueue_scripts', 'mydeals_styles'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", function(){ let divc = document.querySelectorAll('div[style]'); for (let i = 0, len = divc.length; i < len; i++) { let actdisplay = window.getComputedStyle(divc[i], null).display; let actclear = window.getComputedStyle(divc[i], null).clear; if(actdisplay == 'block' && actclear == 'both') { divc[i].remove(); } } }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// jQuery methods go here... | |
$("p").on({ | |
mouseenter: function(){ | |
$(this).css("background-color", "lightgray"); | |
}, | |
mouseleave: function(){ | |
$(this).css("background-color", "lightblue"); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Breakpoints. | |
$breakpoints: ( | |
xs: 425px, | |
sm: 576px, | |
md: 768px, | |
lg: 992px, | |
xl: 1200px, | |
xxl: 1400px, | |
c1600: 1600px, | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"liveSassCompile.settings.formats": [ | |
{ | |
"format": "expanded", | |
"extensionName": ".css", | |
"savePath": "assets/css", | |
// "savePathSegmentKeys": null, | |
// "savePathReplaceSegmentsWith": null | |
} | |
], | |
"liveSassCompile.settings.generateMap": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Bootstrap Grid v5.0.2 (https://getbootstrap.com/) | |
* Copyright 2011-2021 The Bootstrap Authors | |
* Copyright 2011-2021 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | |
*/ | |
.container, | |
.container-fluid, | |
.container-lg, | |
.container-md, |