Skip to content

Instantly share code, notes, and snippets.

View dannydickson's full-sized avatar

Danny D. dannydickson

View GitHub Profile
@dannydickson
dannydickson / material-icons-list-for-dropdown.txt
Created July 11, 2019 23:18
Material Icons List for Dropdown
3d_rotation
ac_unit
access_alarm
access_alarms
access_time
accessibility
accessible
account_balance
account_balance_wallet
account_box
@dannydickson
dannydickson / hide-gravity-forms-labels.php
Created June 29, 2019 10:52
Enable: Hide Gravity Forms Labels
// Place in functions.php
// Enables option to hide Gravity Forms labels in WP backend the right way instead of display: none CSS
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );
@dannydickson
dannydickson / hide-gravity-forms-labels.php
Created June 29, 2019 10:52
Enable: Hide Gravity Forms Labels
// Place in functions.php
// Enables option to hide Gravity Forms labels in WP backend the right way instead of display: none CSS
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );
@dannydickson
dannydickson / corporate-pro-genesis-superfish-menu-breakpoint-fix.css
Last active August 23, 2018 16:12
Corporate Pro Genesis Superfish Menu Breakpoint Fix
/* ========================
Hamburger Breakpoint Fix
========================== */
/* First we move the styles from the mobile only
main style.css file to extend up to our new custom
breakpoint in this media query (default breakpoint
of theme was 896) */
@media (min-width: 896px) and (max-width: 1244px) {
@dannydickson
dannydickson / update-text-divi-mobile-menu.php
Last active March 1, 2018 17:58
Update "Select Page" Text Divi Mobile Menu
<?php
/* Place the code below in your functions.php file. Do Not Include the opening PHP tag above. In the code, look for the "return" and change the word 'Menu' inside the quotation marks to what ever you want to show up in the mobile menu */
// Update "Select Page" Mobile Menu Text
add_filter('gettext', 'change_select_page_text', 20, 3);
function change_select_page_text($text, $orig, $domain ) {
if ($domain == 'Divi' and $orig == 'Select Page') { return 'Menu'; }
return $text;
}
@dannydickson
dannydickson / divi-slider-jake.css
Last active December 12, 2017 15:23
Divi Slider with bottom aligned overlay
/*----------------------------
Slider Customization
created by: Jake Smith
----------------------------*/
/* Blue box sizing and spacing */
/* Entire Slider */
#cm-slider .et_pb_slider {
}
@dannydickson
dannydickson / wp-jquery-starter.js
Created November 21, 2017 18:25
WordPress jQuery Starter - Add jQuery to WordPress
<script>
(function($) {
// Insert your jQuery here
})( jQuery );
</script>
@dannydickson
dannydickson / image-grid-overlay.css
Created August 23, 2017 20:23
Adds a full-width Image grid with cool hover effect to Divi.
/* Animated Overlay */
.image-overlay-wrapper {
height:500px;
}
.image-overlay {
background-color:rgba(0,0,0, 0.7);
position:absolute;
height:100%;
width:100%;
@dannydickson
dannydickson / add-subnav-class.html
Last active August 23, 2017 20:32
Add class to each sub-nav in Divi for separate styling. (add this code to Divi > Theme Options > Integrations > Body scripts. This will add a class to each individual sub nav (ie "sub-nav-1", "sub-nav-2" and so on). These new classes can now be styled individually to target the border-color, or anything else you want.
<script type="text/javascript">
jQuery(document).ready(function($) {
$( ".menu-item-has-children .sub-menu" ).addClass(function( index ) {
return "sub-nav-" + index;
});
})
</script>
@dannydickson
dannydickson / image-grid-overlay.css
Last active December 12, 2017 15:39
Adds a full-width Image grid with cool hover effect to Divi.
.image-overlay {
background-color:rgba(0,0,0, 0.7);
position:absolute;
height:100%;
width:100%;
opacity: 1;
transition:opacity 1s;
}
.image-overlay-wrapper .et_pb_button {