Skip to content

Instantly share code, notes, and snippets.

View MariaJackson1's full-sized avatar

Maria Jackson MariaJackson1

View GitHub Profile
@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>
@MariaJackson1
MariaJackson1 / color-only-overlay.css
Last active August 8, 2022 20:40 — forked from robhob/color-only-overlay.css
color-only-overlay.css
content: "";
background: rgba(234, 232, 229, 0.6);
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: 2;
content: "";
background: url('/wp-content/uploads/2017/05/tex1.png') repeat, rgba(239, 199, 3, 0.7);
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: 2;
@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 / 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 / Custom WordPress login page
Last active August 9, 2022 22:10 — forked from anonymous/functions.php
Custom Login Page #dev
// Custom login page
function my_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(/images/logo.png);
padding-bottom: 45px;
background-size: 285px;
height: 100%;
width: 100%;
}
@MariaJackson1
MariaJackson1 / Enable WordPress to Upload SVG
Last active August 9, 2022 22:00
Add to functions.php #dev
function my_myme_types($mime_types){
$mime_types['svg'] = 'image/svg+xml';
return $mime_types;
}
add_filter('upload_mimes', 'my_myme_types', 1, 1);
@MariaJackson1
MariaJackson1 / Custom Footer
Last active August 8, 2022 20:40
Custom Footer
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 / Vertical Line Separator
Last active August 8, 2022 20:41
Vertical Line Separator
#top-menu li:first-child:before {
content: "";
}
#top-menu li:before {
content: "|";
position: absolute;
left: -16px;
}