display published as post list default

// change page link to display published pages only
function wcs_change_admin_page_link() {
    global $submenu;
    $submenu['edit.php?post_type=page'][5][2] = 'edit.php?post_type=page&post_status=publish';
}
add_action( 'admin_menu', 'wcs_change_admin_page_link' );


// change post link to display published posts only
function wcs_change_admin_post_link() {
    global $submenu;
    $submenu['edit.php'][5][2] = 'edit.php?post_status=publish';
}
add_action( 'admin_menu', 'wcs_change_admin_post_link' );

color scrollbar

 /* COLOR SCROLLBAR - CHROME ONLY */

::-webkit-scrollbar {
width: 15px;
}

::-webkit-scrollbar-thumb {
border-radius: 0;
background: #d8d86c!important;
}

::-webkit-scrollbar-thumb:window-inactive {
background: #d8d86c!important;
opacity: .5;
}

reset everything

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

simplify pagination

/* wp show posts pagination simplify  */
.wpsp-load-more .page-numbers {
    display: none;
}
.wpsp-load-more .prev, 
.wpsp-load-more .next {
    display: inline-block; padding: 1%;
}
.wpsp-load-more .next {float: right;}

comment smackdown

// Disable comments and hide from admin menu and admin bar in functions.php
add_action('admin_init', function () {
    // Redirect any user trying to access comments page
    global $pagenow;
    
    if ($pagenow === 'edit-comments.php') {
        wp_redirect(admin_url());
        exit;
    }

    // Remove comments metabox from dashboard
    remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');

    // Disable support for comments and trackbacks in post types
    foreach (get_post_types() as $post_type) {
        if (post_type_supports($post_type, 'comments')) {
            remove_post_type_support($post_type, 'comments');
            remove_post_type_support($post_type, 'trackbacks');
        }
    }
});

// Close comments on the front-end
add_filter('comments_open', '__return_false', 20, 2);
add_filter('pings_open', '__return_false', 20, 2);

// Hide existing comments
add_filter('comments_array', '__return_empty_array', 10, 2);

// Remove comments page in menu
add_action('admin_menu', function () {
    remove_menu_page('edit-comments.php');
});

// Remove comments links from admin bar
add_action('init', function () {
    if (is_admin_bar_showing()) {
        remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
    }
});

css reset generatepress / elementor

/* Custom CSS by Dave Foy - https://www.designbuildweb.co - hello@designbuildweb.co */

/* Use the same method of sizing elements as Elementor does */
body * {
	box-sizing: border-box;
}

/* Fix for horizontal wiggle on iPhone with GeneratePress - thanks Lyle Chamney from http://snifflevalve.com/ */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Elementor - set some default left and right padding on mobile - same as in GeneratePress */
.elementor-top-section.elementor-section-boxed > .elementor-container {
	padding: 0 20px;
}

/* 1. Don't set padding if an Elementor library item is embdedded within another section via shortcode */
/* 2. Don't set padding if an Elementor library item is embdedded within a standard non-full width page */
.elementor-top-section .elementor-top-section.elementor-section-boxed > .elementor-container,
body:not(.full-width-content) .entry-content .elementor-top-section.elementor-section-boxed > .elementor-container {
	padding: 0;
}

/* 3. Don't set padding if the section has a class of 'nopad' */
.elementor-top-section.elementor-section-boxed.nopad > .elementor-container {
	padding: 0;
}

/* Make Elementor elements expand to fit the full available width. This is due to how Elementor puts padding all the way around columns */
.elementor-section-boxed .elementor-column-gap-default .elementor-row {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
}
.elementor-section-boxed .elementor-column-gap-narrow .elementor-row {
    width: calc(100% + 10px);
    margin-left: -5px;
    margin-right: -5px;
}
.elementor-section-boxed .elementor-column-gap-extended .elementor-row {
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
}
.elementor-section-boxed .elementor-column-gap-wide .elementor-row {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
}
.elementor-section-boxed .elementor-column-gap-wider .elementor-row {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
}

responsive adjust

/******************** smaller media mobile adjustments ************************ */
/******************** smaller media mobile adjustments ************************ */
/******************** smaller media mobile adjustments ************************ */
/******************** smaller media mobile adjustments ************************ */


/* very large screens  HUGE */
@media (min-width: 1824px) { 	
	/* comment */

	
/* END very large screens  HUGE */	}
	


/* Portrait tablet to landscape and desktop  LAPTOP */
@media (min-width: 768px) and (max-width: 1024px) { 
	/* comment */

/* END Portrait tablet to landscape and desktop */}


/* Landscape phone to portrait tablet  TABLET */
@media (max-width: 767px) { 
	/* comment */

/* END Landscape phone to portrait tablet */}


/* Landscape phones and down  PHONE*/
@media (max-width: 480px) { 
	/* comment */
	
/* END Landscape phones and down */}