Skip to content

Instantly share code, notes, and snippets.

View workingwebsites's full-sized avatar

Lisa Armstrong workingwebsites

View GitHub Profile
@oze4
oze4 / v-cloak.css
Created February 9, 2019 23:55
v-cloak for vue.js loading
[v-cloak] {
display: block;
padding: 50px 0;
}
@keyframes spinner {
to {
transform: rotate(360deg);
}
}
@justinwhall
justinwhall / gist:1997825
Created March 8, 2012 01:23
PHP: WordPress | Get children pages AND the sibling pages ONLY when on child pages
<?php
// Get children pages AND the sibling pages ONLY when on child pages
if($post->post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order&depth=1");
else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&sort_column=menu_order&depth=1");
if ($children) :
?>
<div id="child-menu" >
<ul>