Skip to content

Instantly share code, notes, and snippets.

View MariaJackson1's full-sized avatar

Maria Jackson MariaJackson1

View GitHub Profile
@MariaJackson1
MariaJackson1 / Elementor and GP settings
Last active September 13, 2017 21:01
Dave Foy's Elementor and GP settings
DATA HOSTED WITH ♥ BY PASTEBIN.COM - DOWNLOAD RAW - SEE ORIGINAL
/* 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;
}
/* Elementor - set some default left and right padding on mobile - same as in GeneratePress */
.elementor-top-section.elementor-section-boxed > .elementor-container {
@MariaJackson1
MariaJackson1 / Add to functions.php
Last active September 13, 2017 21:01
Custom Color Palettes — Generate Press
add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
function tu_custom_color_palettes( $palettes ) {
$palettes = array(
'#ffffff',
'#f8f8f8',
'#B6B6B8',
'#010203',
'#C30DBD',
'#ffffff',
'#ffffff',
@MariaJackson1
MariaJackson1 / Copyright Footer
Last active September 13, 2017 21:03
GeneratePressPremium
@MariaJackson1
MariaJackson1 / GPP Filters
Last active September 13, 2017 21:04
GeneratePress
add_filter( 'THE_FILTER_NAME','YOUR_CUSTOM_FILTER_FUNCTION' );
function YOUR_CUSTOM_FILTER_FUNCTION() {
return 'Your custom text to replace the normal text';
}
@MariaJackson1
MariaJackson1 / GPP Custom Color Palettes
Last active September 13, 2017 21:04
GeneratePress
add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
function tu_custom_color_palettes( $palettes ) {
$palettes = array(
'#000000',
'#FFFFFF',
'#F1C40F',
'#E74C3C',
'#1ABC9C',
'#1e72bd',
'#8E44AD',
function replace_howdy( $wp_admin_bar ) {
$my_account=$wp_admin_bar->get_node('my-account');
$newtitle = str_replace( 'Howdy,', 'Welcome,', $my_account->title );
$wp_admin_bar->add_node( array(
'id' => 'my-account',
'title' => $newtitle,
) );
}
add_filter( 'admin_bar_menu', 'replace_howdy',25 );
@MariaJackson1
MariaJackson1 / Customizing H1, H2…
Last active September 13, 2017 21:07
Customizing H1, H2…
/* Desktop */
body {font-size: Xpx;}
@media screen and (min-width: 1025px) {h1 {font-size: 40px;}}
@media screen and (min-width: 1025px) {h2 {font-size: 40px;}}
@media screen and (min-width: 1025px) {h3 {font-size: 40px;}}
@media screen and (min-width: 1025px) {h4 {font-size: 40px;}}
/* Tablet */
@media screen and (max-width: 1024px) and (min-width: 768px) {h1 {font-size: 30px;}}
@MariaJackson1
MariaJackson1 / Social Media Follow Buttons
Last active September 13, 2017 21:07
Social Media Follow Buttons
.et_pb_social_media_follow li {
margin-right: -20px;
}
.et_pb_social_media_follow li a.icon {
width: 64px;
height: 64px;
padding: 0;
}
@MariaJackson1
MariaJackson1 / Vertical Align
Last active September 13, 2017 21:07
Vertical Align
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vertical Align</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
/* MENU ITEMS */
.main-navigation {
background-color: #222222;
}
.main-navigation .navigation-search input[type="search"],
.main-navigation .navigation-search input[type="search"]:active {
color: #FFFFFF;
background-color: #1e72bd;
}