Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
cobaltapps / dynamik-startup-skin-demo-setup.php
Last active March 7, 2019 02:01
Demo Setup Instructions and Content for the Dynamik Startup Skin.
<?php
/**
* Below you will find all of the custom content used to
* create the demo site for the Dynamik Startup Skin.
*/
?>
WordPress Menu Setup: Assign a menu to the "Primary Navigation Menu" as well as the Genesis "Header Right" Widget Area as stated below.
== BEGIN Widget Area Info ==
@cobaltapps
cobaltapps / dynamik-impress-skin-demo-setup.php
Last active March 7, 2019 02:01
Demo Setup Instructions and Content for the Dynamik Impress Skin.
<?php
/**
* Below you will find all of the custom content used to
* create the demo site for the Dynamik Impress Skin.
*/
?>
WordPress Menu Setup: Assign a menu to the "Primary Navigation Menu" as well as the Genesis "Header Right" Widget Area as stated below.
== BEGIN Widget Area Info ==
@cobaltapps
cobaltapps / missing-exif_imagetype-function-fix.php
Created April 25, 2018 20:04
Missing exif_imagetype function fix.
if ( ! function_exists( 'exif_imagetype' ) ) {
function exif_imagetype( $filename ) {
if ( ( list( $width, $height, $type, $attr ) = getimagesize( $filename ) ) !== false )
return $type;
return false;
}
@cobaltapps
cobaltapps / freelancer-framework-footer-widget-styles.css
Created April 20, 2018 14:55
Freelancer Framework Footer Widgets Style Code
@cobaltapps
cobaltapps / freelancer-framework-footer-widgets-display.php
Created April 20, 2018 14:54
Freelancer Framework Footer Widgets Display Code
@cobaltapps
cobaltapps / freelancer-framework-footer-widgets-register.php
Created April 20, 2018 14:53
Freelancer Framework Footer Widgets Register Code
@cobaltapps
cobaltapps / windows-apache-stack-size-increase
Created April 19, 2018 19:16
Set Windows Apache default stack size to 8mb.
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>
@cobaltapps
cobaltapps / themer-pro-admin-bar-add-node-example.php
Created October 20, 2017 14:10
Themer Pro code that allows for quick-edit-access to Page Template files from the front-end of your website.
if ( function_exists( 'themer_pro_admin_bar_add_node') )
themer_pro_admin_bar_add_node( $file = 'page-builder.php', $subdir = '', $fullscreen = false );
@cobaltapps
cobaltapps / freelancer-wordpress-conditionals-example.php
Created September 13, 2017 18:42
An example of how to use WordPress Conditional Tags inside of custom functions.
add_action( 'theme_before_content', 'my_banner_ad' );
/*
* This conditional example ensures that the banner ad only
* displays on the front page by returning nothing if it
* is NOT the front page.
*/
function my_banner_ad() {
if ( ! is_front_page() )
return;
@cobaltapps
cobaltapps / freelancer-add-filter-example.php
Created September 13, 2017 18:16
A simple example of how to filter a custom value into an applied filter.
/*
* This is the cleanest way to do this, using an anonymous function,
* but such a function requires PHP 5.3 or higher.
*/
add_filter( 'theme_read_more_text', function() { return 'Read more ->'; } );
/*
* This is the same anonymous function example,
* but formatted differently for those who might
* the first example a bit confusing.