Skip to content

Instantly share code, notes, and snippets.

@aguatye
aguatye / Contract Killer 3.md
Created March 13, 2020 05:23
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@aguatye
aguatye / image-functions-examples.php
Created August 21, 2019 04:51 — forked from Lego2012/image-functions-examples.php
Image Functions examples #wordpress
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
<!-- 0) Display Medium sized image floated right -->
http://sridharkatakam.com/how-to-display-featured-image-in-single-posts-in-genesis/
$image_args = array(
'size' => 'medium',
'attr' => array(
@aguatye
aguatye / .htaccess
Created December 7, 2016 02:15 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@aguatye
aguatye / style.css
Created October 16, 2016 04:15 — forked from nickdavis/style.css
Center 'Simple Social Icons' via CSS (useful on responsive designs where the icons are initially left or right aligned and you want them centred on smaller screens)
/* Place the following at the point you want to center them in your CSS file, e.g. after the 1023 or 768px media query */
.simple-social-icons ul {
float: none;
text-align: center;
}
.simple-social-icons ul li {
display: inline-block;
float: none !important;
@aguatye
aguatye / simple-social-centered.css
Created October 16, 2016 04:13 — forked from surefirewebserv/simple-social-centered.css
Center Simple Social Icons when doing responsive styles
/* Align Simple Social Icons Centered */
.simple-social-icons ul.alignright,
.simple-social-icon ul.alignleft {
text-align: center;
}
.simple-social-icons ul.alignright li,
.simple-social-icons ul.alignleft li {
display: inline-block;
float: none;