Instantly share code, notes, and snippets.
johnnya23
/ jma_child_gutentor_button_css_array.php
Last active
January 5, 2022 12:58
Getwid Gutentor Button Filter
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 | |
function jma_child_getwid_gutentor_button_css_array($css, $mods) | |
{ | |
$append = array( | |
array( | |
'selector' => 'body .jma-btn-default .gutentor-button, body .jma-btn-default .gutentor-pagination-wrap .gutentor-pagination .gutentor-pagination-item .gutentor-pagination-link, body .jma-btn-default .gutentor-navigation .gutentor-next-prev li a, .pagination .page-numbers', | |
'color' => $mods['button_font'], | |
'border-style' => 'solid', | |
'border-color' => $mods['button_font'], | |
'padding' => $mods['button_vert_padding'] . 'px ' . $mods['button_hor_padding'] . 'px', |
johnnya23
/ scrolling-local-menu.js
Last active
January 5, 2022 12:58
Scrolling Local Menu in navbar
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
jQuery(document).ready(function($) { | |
var win_split = window.location.href.split('#'); | |
function gotoid(id) { | |
$('html,body').animate({ | |
scrollTop: $("#" + id).offset().top - 150 | |
}, 500); | |
} |
NewerOlder