Skip to content

Instantly share code, notes, and snippets.

View lizardking8610's full-sized avatar

Robert lizardking8610

View GitHub Profile
//This codes gets added to the home_genesis_meta add actions in the home.php file, around line 15
add_action( 'genesis_loop', 'agency_home_full_helper' );
// Register full-width content widget after default home page widgets
// This code is added to the end of your child themes functions.php file
/**
* @author Brad Dalton - WP Sites
*
* @link http://wpsites.net/web-design/add-widget-home-php-genesis/
*/
h1 {
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 92px;
padding: 80px 50px;
text-align: center;
text-transform: uppercase;
text-rendering: optimizeLegibility;
&.elegantshadow {
color: #131313;
@lizardking8610
lizardking8610 / gatrack.js
Created May 7, 2019 14:15
Continually Chatbot Google Analytics Tracking
<!-- GA Tracking events with Continually JS API -->
<script>
continually.on('ready', function(api) {
api.on('startConversation', function(event) {
ga('send', 'event', {
eventCategory: 'Continually Conversations',
eventAction: 'Started Conversation',
eventLabel: event.conversationId,
});
});
@media only screen and (max-width : 780px) {
.animated {
/*CSS transitions*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
-o-transform: none !important;
(function ( $ ) {
// Create two datepickers.
$( '#mer_checkin' ).datepicker({ dateFormat: 'mm/dd/yy' });
$( '#mer_checkout' ).datepicker({ dateFormat: 'mm/dd/yy' });
// Prevent mobile devices from launching a keyboard on input focus.
$( "#mer_checkin, #mer_checkout" ).attr( 'readonly', 'readonly' );
$( "#mer_checkin, #mer_checkout" ).click( function( event ){
@lizardking8610
lizardking8610 / core.php
Created May 16, 2018 20:30 — forked from abijlani/core.php
The method within core.php of the JSON API plugin for Wordpress. The core.php file is located within "json-api/controllers"
public function get_recent_summary() {
global $json_api;
$posts = $json_api->introspector->get_posts();
$output = array();
foreach ($posts as $post){
$post_summary["id"] = $post->id;
$post_summary["url"] = $post->url;
$post_summary["title"] = $post->title;
$post_summary["date"] = $post->date;
@lizardking8610
lizardking8610 / Stichedborder.css
Created April 20, 2018 15:59
Create a Stitched Border for Buttons and Elements with CSS
.stitched {
padding: 20px 10px;
margin: 10px;
background: #67bbab;
color: #ffffff;
font-size: 21px;
font-weight: bold;
line-height: 1.3em;
border: 2px dashed #ffffff;
border-radius: 10px;
@lizardking8610
lizardking8610 / contentboxes.css
Created April 20, 2018 15:57
Content/Johnson Boxes Multiple Colors
/* Content Boxes
------------------------------------------------------------ */
.content-box-blue,
.content-box-gray,
.content-box-green,
.content-box-purple,
.content-box-red,
.content-box-yellow {
margin: 0 0 25px;
@lizardking8610
lizardking8610 / ionicons.js
Created April 20, 2018 15:56
Enqueue Ionicons in WordPress
//* Enqueue Ionicons
add_action( 'wp_enqueue_scripts', 'bg_enqueue_ionicons' );
function bg_enqueue_ionicons() {
wp_enqueue_style( 'ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
}