Skip to content

Instantly share code, notes, and snippets.

View ashlie-elizabeth-moore's full-sized avatar
🦉
Night-Owl Mode

Elizabeth Moore ashlie-elizabeth-moore

🦉
Night-Owl Mode
View GitHub Profile
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:42800b377a66e94759dd0c0b8e5940a7
Created June 15, 2022 20:08
Wordpress Backend Tweaks: Control Admin Columns + Add Thumbnail FOR ALL POST TYPES
//POST ADMIN COLUMNS --->
add_filter('manage_posts_columns' , 'df_custom_columns');
function df_custom_columns( $columns ) {
$columns = array(
'cb' => '<input type="checkbox" />',
'featured_image' => 'Image',
'title' => 'Title',
'categories' => 'Categories',
'tags' => 'Tags',
'date' => 'Date'
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:5c0644e86f5b2391e16ea9dd81974a25
Last active June 14, 2022 21:04
Fixes Divi Filtergrid Pop Up Window Size Restriction
<style>
/** Fixes Divi Filtergrid Pop Up Window Size Restriction **/
.mfp-content{
width: 90vw !important;
max-width: 1300px !important;
height: 80vh !important;
margin-top: -10% !important;
}
</style>
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:412c6299d14f61826caeedc0883fe110
Last active May 17, 2022 03:55
Code Fixes: Removes Zendesk Help Icon from Pop Up Windows in Divi
<style>
iframe#launcher{
display: none !important;
}
</style>
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:3edbe02cdc56964c9cb4cb4431fcb6e8
Created May 10, 2022 22:44
Hide Divi Project CPT (the most obvs way)
//Hide Divi Project CPT
function hide_diviproject_cpt_df() {
register_post_type( 'project',
array(
'has_archive' => false,
'public' => false,
'show_in_menu' => false,
));
}
//Different Admin Themes for Multisite
add_filter('get_user_option_admin_color', 'change_admin_color');
function change_admin_color($result) {
//site 1 --->
if(get_current_blog_id() === 2) {
return 'sunrise';
}
//site 2 --->
elseif(get_current_blog_id() === 4) {
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:c6774538958876d329f583603595f363
Last active May 7, 2022 00:51
Adds a link in the Admin Bar to the Cloudflare plugin in Wordpress
//Admin Bar (Top) ------>
function df_admin_bar_render() {
global $wp_admin_bar;
//ADD CloudflareTAB = '/wp-admin/options-general.php?page=cloudflare#/home';
$wp_admin_bar->add_menu( array(
'parent' => false,
'id' => 'cloudflare',
'title' => __('Cloudflare'),
'href' => $cloudflareTAB
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:f6a5dce8bcd554c58cacd1eec740b9e8
Created May 4, 2022 19:48
Woo Commerce Wordage Fix for Artists - changes in/out of stock to 'Available' and 'Sold'.
/* IN or Out of Stock */
.out-of-stock{
visibility: hidden;
}
.out-of-stock:before{
visibility: visible;
content: 'SOLD';
color: white;
}
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:3b3fd042152776203ccb633105f84744
Created April 30, 2022 07:44
Divi Theme Fix - Disable Mobile Menu
<style>
/** Disables Mobile Menu & Keeps Desktop Menu on mobile **/
#no-mobile .mobile_menu_bar{
display:none !important;
}
#no-mobile .et_pb_menu__menu{
display: block !important;
margin: 0 auto !important;
}
/** END #no-mobile Menu **/
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:76f15fdad828e9f2eb7cd7423fa71ba6
Created April 28, 2022 21:58
Divi Theme Builder Fix - Stop words in Headers from wrapping ( The builder default)
/* Header Fix --> Makes Long Words Break */
h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
@ashlie-elizabeth-moore
ashlie-elizabeth-moore / gist:59fd0dabe7c5ebae00678112bb14dca6
Created April 28, 2022 20:21
Divi Theme Builder Fix - Black Background when site loading
/* Black Background */
body{
background-color: black;
}
#main-content{
background-color: transparent !important;
}