This file contains hidden or 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
| //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' |
This file contains hidden or 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
| <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> |
This file contains hidden or 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
| <style> | |
| iframe#launcher{ | |
| display: none !important; | |
| } | |
| </style> |
This file contains hidden or 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
| //Hide Divi Project CPT | |
| function hide_diviproject_cpt_df() { | |
| register_post_type( 'project', | |
| array( | |
| 'has_archive' => false, | |
| 'public' => false, | |
| 'show_in_menu' => false, | |
| )); | |
| } |
This file contains hidden or 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
| //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) { |
This file contains hidden or 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
| //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 |
This file contains hidden or 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
| /* IN or Out of Stock */ | |
| .out-of-stock{ | |
| visibility: hidden; | |
| } | |
| .out-of-stock:before{ | |
| visibility: visible; | |
| content: 'SOLD'; | |
| color: white; | |
| } |
This file contains hidden or 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
| <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 **/ |
This file contains hidden or 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
| /* Header Fix --> Makes Long Words Break */ | |
| h1, h2, h3, h4, h5, h6 { | |
| overflow-wrap: break-word; | |
| } |
This file contains hidden or 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
| /* Black Background */ | |
| body{ | |
| background-color: black; | |
| } | |
| #main-content{ | |
| background-color: transparent !important; | |
| } |