Skip to content

Instantly share code, notes, and snippets.

View MikeRawlins's full-sized avatar

Mike Rawlins MikeRawlins

  • Turriff Web
  • Turriff
View GitHub Profile
@MikeRawlins
MikeRawlins / Hosting contract killer
Last active June 1, 2021 15:09
This is an additional paragraph for the excellent Contract Killer https://gist.github.com/malarkey/4031110
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.
// 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 February 20, 2017 14:43
Add text alignment to WordPress themes when it is missing
/* This will add left, right & centre alignment to your theme
--------------------------------------------- */
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
Verifying that "mike_rawlins.id" is my Blockstack ID. https://onename.com/mike_rawlins