Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Rawlins MikeRawlins

  • Turriff Web
  • Turriff
View GitHub Profile
View add custom fields to post
// Add Custom Fields
add_action ('genesis_entry_content', 'rp_painting' );
function rp_painting() {
if ( ! ( is_single() ) ) {
return;
}
// These are the custom field keys defined in the dashboard:
$metas_painting = array(
'painting-image',
@MikeRawlins
MikeRawlins / align-text.txt
Created Feb 20, 2017
Add text alignment to WordPress themes when it is missing
View align-text.txt
/* This will add left, right & centre alignment to your theme
--------------------------------------------- */
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
View gist:cd658ba3a458cb3d01a00d0b80a8e8e6
Verifying that "mike_rawlins.id" is my Blockstack ID. https://onename.com/mike_rawlins
@MikeRawlins
MikeRawlins / Hosting contract killer
Last active Oct 23, 2019
This is an additional paragraph for the excellent Contract Killer https://gist.github.com/malarkey/4031110
View Hosting contract killer
Hosting
We provide hosting for our own built websites on our preferred hosting provider <hosting provider name>.
Based on their SLA we endeavor to have 99.9% uptime on our servers measured annually.
There may of course be times when the server will not be available, this can be scheduled or unscheduled.
Scheduled downtime is when we know it is going to happen and tell you about it in advance. Scheduled downtime will wherever possible, almost certainly be outside of normal office hours. We’ll do our stuff in the evening or at weekend to minimize impact on your business.
There may be very rare occasions when we need to restart the server during normal office hours and it is not possible to inform you before hand. We don’t make these decisions lightly and if this does happen we apologise.