Skip to content

Instantly share code, notes, and snippets.

View rachelmccollin's full-sized avatar

Rachel McCollin rachelmccollin

View GitHub Profile
@rachelmccollin
rachelmccollin / first_loop.php
Last active September 9, 2021 17:28
WPMU DEV One Query Multiple Loops
<?php while ( $query->have_posts() ) : $query->the_post();
if ( get_post_type( $post->ID ) == 'book' && $count == 0 ) {
include( locate_template( 'template-parts/loop-frontpage.php' ));
$count++;
}
@rachelmccollin
rachelmccollin / args1.php
Last active July 13, 2017 13:10
WPMU DEV Automated Navigation Menus
$args = array(
'depth' => 2
);
@rachelmccollin
rachelmccollin / Disable all automatic updates
Created April 21, 2015 13:54
WPMU DEV Keeping WordPress Updated
define( 'AUTOMATIC_UPDATER_DISABLED', true );
@rachelmccollin
rachelmccollin / Disable automatic core updates
Created April 21, 2015 13:48
WPMU DEV Keeping WordPress Updated
define( 'WP_AUTO_UPDATE_CORE', false );
@rachelmccollin
rachelmccollin / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rachelmccollin
rachelmccollin / Final stylesheet
Created March 25, 2015 12:07
WPMUDEV Creating Menu Icons
/*
Theme Name: WPMU DEV Custom Navigation Menu Icons
Theme URI: http://rachelmccollin.co.uk/wpmudev-custom-menu-icons
Description: Theme to support WPMU DEV post on custom menu items
Author: Rachel McCollin
Author URI: http://rachelmccollin.co.uk/
Template: twentyfifteen
Version: 1.0
*/
@rachelmccollin
rachelmccollin / Menu text styling
Created March 25, 2015 11:58
WPMUDEV Creating Menu Icons
.main-navigation ul li.fa.fa-lg a {
font-family: 'Noto Serif', serif;
font-size: 0.8em;
}
@rachelmccollin
rachelmccollin / Styling for icon
Created March 25, 2015 11:53
WPMUDEV Creating Menu Icons
.fa::before {
float: left;
margin-top: 8px;
width: 30px;
}
@rachelmccollin
rachelmccollin / Float for menu icon
Created March 25, 2015 11:49
WPMUDEV Creating Menu Icons
.fa::before {
float: left;
}
@rachelmccollin
rachelmccollin / Navigation Menu width styling
Created March 25, 2015 11:44
WPMUDEV Creating Menu Icons
.main-navigation ul li {
width: 100%;
}