Skip to content

Instantly share code, notes, and snippets.

@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 / freelancer-framework-footer-widgets-register.php
Created April 20, 2018 14:53
Freelancer Framework Footer Widgets Register 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-widget-styles.css
Created April 20, 2018 14:55
Freelancer Framework Footer Widgets Style Code
@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 / genesis-force-full-width-singular-layouts
Created May 2, 2018 17:55
Force full-width-content layout on single pages and posts, but not "blog" page.
add_action( 'get_header', 'custom_child_full_width_singular_layout');
// Force full-width-content layout on single pages and posts, but not "blog" page.
function custom_child_full_width_singular_layout() {
if ( ( is_page() || is_single() ) && ! is_page( 'blog' ) )
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
}
@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 / 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-journal-skin-demo-setup.php
Last active March 7, 2019 02:00
Demo Setup Instructions and Content for the Dynamik Journal Skin.
<?php
/**
* Below you will find all of the custom content used to
* create the demo site for the Dynamik Journal 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-commerce-skin-demo-setup.php
Last active March 7, 2019 01:59
Demo Setup Instructions and Content for the Dynamik Commerce Skin.
<?php
/**
* Below you will find all of the custom content used to
* create the demo site for the Dynamik Commerce Skin.
*/
?>
WordPress Menu Setup: Assign a menu to the "Primary Navigation Menu" as well as the "Secondary Navigation Menu".
== BEGIN Widget Area Info ==