Skip to content

Instantly share code, notes, and snippets.

View itsdavidmorgan's full-sized avatar

David Morgan itsdavidmorgan

View GitHub Profile
@itsdavidmorgan
itsdavidmorgan / gist:69f3ec37b48921c25dceca2e3cfd1f03
Created February 28, 2022 01:02
Randomized text in Hashlips
let action = [
"Murdered by",
"Killed by",
"Squished by",
"Slammed really hard into",
"Tusseled with",
"Choked on",
"Steamrolled by",
"Crushed by",
"Impaled by",
@itsdavidmorgan
itsdavidmorgan / style.css
Created March 27, 2020 18:42
Organic Blocks Flexslider Base Styles
.organic-blocks-flexslider {
margin: 0;
padding: 0;
overflow: hidden;
}
.organic-blocks-flexslider .preloader {
position: absolute;
top: 50%;
left: 50%;
margin-left: -16px;
@itsdavidmorgan
itsdavidmorgan / forum-sidebar.php
Created December 10, 2019 16:41
Forum Sidebar Snippet
<!-- BEGIN .sidebar -->
<section class="sidebar">
<?php dynamic_sidebar( 'sidebar-forum' ); ?>
<!-- END .sidebar -->
</section>
@itsdavidmorgan
itsdavidmorgan / forum.php
Last active December 10, 2019 16:16
bbPress Forum Template With Sidebar
<?php
/**
* This template is used to display bbPress forums.
*
* @package Organic Origin
* @since Organic Origin 1.0
*/
get_header(); ?>
@itsdavidmorgan
itsdavidmorgan / style.css
Created December 6, 2019 19:45
bbPress Forum Styles
/************************************************
bbPress Forum Styles
************************************************/
#bbpress-forums {
font-size: 0.9rem;
}
#bbpress-forums p {
margin: 16px 0px;
padding: 0px;
@itsdavidmorgan
itsdavidmorgan / functions.php
Last active December 6, 2019 19:23
Register Forum Sidebar
if ( ! function_exists( 'my_theme_widgets_init' ) ) :
/** Function my_theme_widgets_init */
function my_theme_widgets_init() {
if ( class_exists( 'bbPress' ) ) {
register_sidebar(
array(
'name' => esc_html__( 'Forums Sidebar', 'my-theme' ),
'id' => 'sidebar-forum',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
@itsdavidmorgan
itsdavidmorgan / page.php
Created December 6, 2019 18:17
Organic Themes Page Template
<?php
/**
* This template displays the default page content.
*
* @package Organic Origin
* @since Organic Origin 1.0
*/
get_header(); ?>
@itsdavidmorgan
itsdavidmorgan / jquery.custom.js
Created July 24, 2019 15:10
Purpose Theme Flexslider Setup Edited
/* Flexslider ---------------------*/
function flexSliderSetup() {
if( ($).flexslider) {
var slider = $('.flexslider');
slider.fitVids().flexslider({
slideshowSpeed : slider.attr('data-speed'),
animationDuration : 600,
animation : 'slide',
video : false,
@itsdavidmorgan
itsdavidmorgan / jquery.custom.js
Created July 24, 2019 15:08
Purpose Theme Flexslider Setup
/* Flexslider ---------------------*/
function flexSliderSetup() {
if( ($).flexslider) {
var slider = $('.flexslider');
slider.fitVids().flexslider({
slideshowSpeed : slider.attr('data-speed'),
animationDuration : 600,
animation : 'fade',
video : false,
@itsdavidmorgan
itsdavidmorgan / gallery-shortcode.php
Created November 28, 2018 20:09
WordPress Gallery Shortcode