Skip to content

Instantly share code, notes, and snippets.

Danny D. dannydickson

Block or report user

Report or block dannydickson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dannydickson
dannydickson / dark-theme.css
Last active Aug 16, 2019
My Slack Dark Theme CSS File
View dark-theme.css
.p-unreads_view__header {
background: #545454 !important;
color: #222 !important;
}
::-moz-placeholder {
color: #e6e6e6 !important;
filter: none;
opacity: 0.5;
}
@dannydickson
dannydickson / sort-by-custom-field.php
Last active Jul 11, 2019
Sort by custom field in WordPress
View sort-by-custom-field.php
<?php
// Taken and modified from https://www.advancedcustomfields.com/resources/orde-posts-by-custom-fields/
// Put here for posterity's sake as a bookmark of sorts
// Allows sorting by custom field value instead of default.
// This will allow client to be able to set the order of these goals/landing pages as they add more.
// Can be added to functions.php, or to custom template that gets called before your custom loop.
function my_pre_get_posts( $query ) {
// do not modify queries in the admin
View material-icons-list-for-dropdown.txt
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 Jun 29, 2019
Enable: Hide Gravity Forms Labels
View hide-gravity-forms-labels.php
// 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 Jun 29, 2019
Enable: Hide Gravity Forms Labels
View hide-gravity-forms-labels.php
// 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 Aug 23, 2018
Corporate Pro Genesis Superfish Menu Breakpoint Fix
View corporate-pro-genesis-superfish-menu-breakpoint-fix.css
/* ========================
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 Mar 1, 2018
Update "Select Page" Text Divi Mobile Menu
View update-text-divi-mobile-menu.php
<?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 Dec 12, 2017
Divi Slider with bottom aligned overlay
View divi-slider-jake.css
/*----------------------------
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 Nov 21, 2017
WordPress jQuery Starter - Add jQuery to WordPress
View wp-jquery-starter.js
<script>
(function($) {
// Insert your jQuery here
})( jQuery );
</script>
@dannydickson
dannydickson / image-grid-overlay.css
Created Aug 23, 2017
Adds a full-width Image grid with cool hover effect to Divi.
View image-grid-overlay.css
/* Animated Overlay */
.image-overlay-wrapper {
height:500px;
}
.image-overlay {
background-color:rgba(0,0,0, 0.7);
position:absolute;
height:100%;
width:100%;
You can’t perform that action at this time.