A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
| From: | |
| http://wordpress.org/support/topic/multiple-loops-if-first-post-in-loop-1-matches-first-post-in-loop-2-skip | |
| Add this after the query: | |
| $check = get_posts('cat=3&numberposts=1'); | |
| if ( $check[0]->ID == $post->ID ) continue; | |
A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
Some of the Aliases I use in my .bash_profile for OS X Terminal:
# Open a file in Sublime Text 2
alias subl='open -a Sublime\ Text\ 2'
#Edit Bash Profile in Sublime Text 2
alias bashprof='subl .bash_profile'
# Open a file in desired browser
alias ff='open -a Firefox'
We'll create a Terminal alias to efficiently open a chosen file in Sublime Text 2.
From Terminal ...
Edit the bash profile, by typing:
vim .bash_profile
Then type i to insert.
We'll create Terminal aliases to efficiently open files in our browser of choice.
From Terminal ...
Edit the bash profile, by typing:
vim .bash_profile
Then type i to insert.
| /* See Chris Coyier CSS Tricks | |
| http://css-tricks.com/perfect-full-page-background-image/ | |
| */ | |
| html { | |
| background: url(images/bg.jpg) no-repeat center center fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; |
| // Credit David Walsh | |
| // http://davidwalsh.name/hide-address-bar | |
| window.addEventListener("load",function() { | |
| // Set a timeout... | |
| setTimeout(function(){ | |
| // Hide the address bar! | |
| window.scrollTo(0, 1); | |
| }, 0); | |
| }); |
| .products-grid { | |
| display: table; | |
| } | |
| .product-item { | |
| display: inline-table; | |
| vertical-align: top; // needed by Safari | |
| width: 46%; | |
| margin-left: 2%; | |
| } |
| // | |
| // Products Grid | |
| // -------------------------------------------------- | |
| @media screen and (min-width: @tablet-min-width) { | |
| .products-grid { | |
| display: table; | |
| .product-item { | |
| display: inline-table; | |
| width: 46%; |