Skip to content

Instantly share code, notes, and snippets.

View jessicahawkins3344's full-sized avatar

Jessica Hawkins jessicahawkins3344

View GitHub Profile
<div class="form-group ">
<label>Left &amp; Right Button Dropdown</label>
<div class="input-group">
<input type="text" class="form-control" aria-label="Text input with dropdown button"><div class="input-group-append">
<button type="button" class="btn btn-label-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
// Load Font Awesome
function load_font_awesome() {
wp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', false, null );
} add_action( 'wp_enqueue_scripts', 'load_font_awesome' );
// Add Shortcode
function iconShortcode( $atts, $content = null ) {
// Attributes
// Add to functions.php
// Register Custom LC Page Type
function lc_custom_post_type() {
$labels = array(
'name' => _x( 'LC Pages', 'LC Page Type General Name', 'text_domain' ),
'singular_name' => _x( 'LC Page', 'LC Page Type Singular Name', 'text_domain' ),
'menu_name' => __( 'LC Pages', 'text_domain' ),
'name_admin_bar' => __( 'LC Page', 'text_domain' ),
/*!
* Bootstrap v4.0.0-alpha.2 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
**Directions**
** Copy the below import code (line 6 entirely) and import it into LiveComposer! Wala! **
[dslc_modules_section show_on="desktop tablet phone" type="wrapper" columns_spacing="spacing" bg_color="rgb(0,190,198)" bg_image_thumb="disabled" dslca-img-url="" bg_image="" bg_image_repeat="no-repeat" bg_image_position="right top" bg_image_attachment="fixed" bg_image_size="auto" bg_video="" bg_video_overlay_color="rgb(0,190,198)" bg_video_overlay_opacity="0" border_color="" border_width="0" border_style="solid" border="top right bottom left" margin_h="0" margin_b="0" padding="120" padding_h="12" custom_class="" custom_id="" ] [dslc_modules_area last="no" first="yes" size="8"] [dslc_module last="yes"]YToyMjp7czo3OiJjb250ZW50IjtzOjc4OiI8aDM+SEVBRElOR8KgPC9oMz48aDE+U2hvcnQgbG9pbiBwb3JjaGV0dGEgdmVuaXNvbiBwYXN0cmFtaS4gUHJhY3RpY2FsLsKgPC9oMT4iO3M6MTc6ImNzc19tYXJnaW5fYm90dG9tIjtzOjI6IjMwIjtzOjEyOiJjc3NfaDFfY29sb3IiO3M6MTY6InJnYigyNTUsMjU1LDI1NSkiO3M6MTY6ImNzc19oMV9mb250X3NpemUiO3M6MjoiNTAiO3M6MTg6ImNzc19oMV9
@jessicahawkins3344
jessicahawkins3344 / customizer-styles.pgp
Created October 12, 2016 06:02
Customizer-Styles Example for Customizer Library
<?php
/**
* Implements styles set in the theme customizer
*
* @package Customizer Library Demo
*/
if ( ! function_exists( 'customizer_library_demo_build_styles' ) && class_exists( 'Customizer_Library_Styles' ) ) :
/**
* Process user options to generate CSS needed to implement the choices.
*
@jessicahawkins3344
jessicahawkins3344 / customizer-options.php
Last active October 12, 2016 06:02
Customizer-Options Sample for Customizer Library
<?php
/**
* Defines customizer options
*
* @package Customizer Library Demo
*/
function customizer_library_demo_options() {
// Theme defaults
@jessicahawkins3344
jessicahawkins3344 / customizer-mods.php
Created October 12, 2016 05:31
Customizer-Mods.php Sample for Customizer Library
<?php
/**
* Functions used to implement options
*
* @package Customizer Library Demo
*/
/**
* Enqueue Google Fonts Example
*/
function my_customizer_fonts() {
<?php
// Require Files
// =============================================================================
require_once( 'customizer-options.php' );
require_once( 'customizer-mods.php' );
require_once( 'customizer-styles.php' );
function new_update_native_customizer_functionality( $wp_customize ) {