Skip to content

Instantly share code, notes, and snippets.

<?php wp_nav_menu( array( 'theme_location' => 'new-menu' ) ); ?>
<?wp_nav_menu( array( 'theme_location' => 'new-menu', 'container_class' => 'new_menu_class' ) ); ?>
@font-face {
font-family: FontName;
src: url(public_html/your-site/wp-content/themes/your-theme/fonts/FontName-Regular.ttf);
font-weight: normal;
}
p {
font-family: FontName;
}
@jennimckinnon
jennimckinnon / Region Custom CSS
Created February 26, 2015 07:34
Example of custom CSS for the Upfront theme by WPMU DEV.
.upfront-region-container-bg {
height:1px;
}
@jennimckinnon
jennimckinnon / Contact Form
Created February 26, 2015 14:09
Example custom CSS for a contact form using the drag and drop WordPress theme editor, Upfront by WPMU DEV.
.ucontact-input {
width:600px;
max-width:100%;
opacity:0.9;
padding:15px;
padding-left:8px;
margin-bottom:20px;
border:1px solid #963d16;
background-color:#f9f9f9;
font-family:Lato;
@jennimckinnon
jennimckinnon / gist:f31fdc331ddfc512d2b2
Created February 27, 2015 03:37
CSS :before image on block quotes in the Spirit child theme of Upfront, a front end drag and drop WordPress theme editor by WPMU DEV.
blockquote:before {
background: url(http://wringer.iamjennialways.com/artisanwalls/wp-content/themes/uf-spirit/images/sprite.png);
background-image: url(http://wringer.iamjennialways.com/artisanwalls/wp-content/themes/uf-spirit/images/sprite.svg), none;
content:"";
display: block;
width: 31px;
height: 23px;
position: relative;
left:-16px;
background-position: -542px -549px !important;
function google_fonts() {
$query_args = array(
'family' => 'Open+Sans:400,700|Oswald:700'
'subset' => 'latin,latin-ext',
);
wp_register_style( 'google_fonts', add_query_arg( $query_args, "//fonts.googleapis.com/css" ), array(), null );
}
add_action('wp_enqueue_scripts', 'google_fonts');
font-family: 'Open Sans', sans-serif;
font-family: 'Oswald', sans-serif;
h1 {
font-family: 'Oswald', sans-serif;
font-weight:700;
font-size: 28px;
color: #3c3c3c;
}
p {
font-family: 'Open Sans', sans-serif;
font-weight:400;