Skip to content

Instantly share code, notes, and snippets.

@omniamike
omniamike / Add Child Theme JS
Created October 8, 2016 01:55 — forked from omniacode/Add Child Theme JS
WP Child Theme Specific JS
// Load Child Theme Specific JS
function load_child_javascript_files() {
wp_register_script('filename', get_stylesheet_directory_uri() . '/js/filename.js', array('jquery'), true );
wp_enqueue_script('filename');
}
add_action('wp_enqueue_scripts', 'load_child_javascript_files');
@omniamike
omniamike / Modal
Created October 8, 2016 16:39 — forked from omniacode/Modal
Temp Modal
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.video-modal').magnificPopup({
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: true,
fixedContentPos: false
});
});
@omniamike
omniamike / ignore
Last active November 11, 2016 04:00
.gitignore file
#compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@omniamike
omniamike / contact-block
Last active March 22, 2017 15:09
Contact Block Used for Footer and Sidebar. Created before Impreza's updates, no longer needed but keeping anyway
<!-- Contact Block Used for Footer and Sidebar -->
<!-- Add to text or html element -->
<div class="contact-block">
<p class="cb-address item">COMPANY NAME
<span class="block">ADDRESS LINE 1</span>
<span class="block">ADDRESS LINE 2</span>
</p>
<p class="cb-phone item">(123) 456-7890</p>
@omniamike
omniamike / omnia-base.css
Last active November 10, 2022 15:21
Base CSS for Omnia Creative Studio site builds; global styles
/*
Omnia Base Styles
Version: 1.0
Author: Omnia Creative Studio
Author URI: https://omniacreativestudio.com/
*/
/* -- Alignment Helpers -- */
.align_left { text-align: left;}
@omniamike
omniamike / caldera-breadcrumbs.css
Created March 24, 2017 17:04
Styling for the Caldera Forms Breadcrumbs
/* Caldera Forms Breadcrumbs */
.caldera-grid .breadcrumb:before,
.caldera-grid .breadcrumb:after {
height: 0px;
content: "";
clear: both;
display: block;
}