This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Change information in footer */ | |
remove_action('genesis_footer', 'genesis_do_footer'); | |
add_action('genesis_footer', 'seasoning2013_custom_footer'); | |
function seasoning2013_custom_footer() { | |
$goTop = '<div class="gototop"><a rel="nofollow" href="#wrap">Return to Top of Page</a></div>'; | |
$myCreds = '<div class="creds">Copyright ©'; | |
$myCreds .= date( 'Y' ); | |
$myCreds .= ' · <a href="http://thecookingdish.com">The Cooking Dish</a> · Built on the <a href="http://www.shareasale.com/r.cfm?b=242694&u=469466&m=28169&urllink=&afftrack=">Genesis Framework</a> · Inspired by <a href="http://www.shareasale.com/r.cfm?b=457657&u=469466&m=28169&urllink=&afftrack=">Modern Portfolio</a></div>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Reposition the header */ | |
remove_action('genesis_header', 'genesis_header_markup_open', 5); | |
remove_action('genesis_header', 'genesis_do_header'); | |
remove_action('genesis_header', 'genesis_header_markup_close', 15); | |
add_action('genesis_before', 'genesis_header_markup_open', 5); | |
add_action('genesis_before', 'genesis_do_header'); | |
add_action('genesis_before', 'genesis_header_markup_close', 15); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'child_theme_scripts' ); | |
function child_theme_scripts() { | |
global $wp_styles; | |
/** | |
* Load our IE-only stylesheet for all versions of IE: | |
* <!--[if IE]> ... <![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Only display the following jetpack modules | |
add_filter( 'jetpack_get_available_modules', 'fs_only_these_jetpack_modules' ); | |
function fs_only_these_jetpack_modules ( $modules ) { | |
$return = array(); | |
$return['after-the-deadline'] = $modules['after-the-deadline']; // Spelling and Grammar | |
$return['carousel'] = $modules['carousel']; // Carousel | |
$return['comments'] = $modules['comments']; // Jetpack Comments | |
$return['contact-form'] = $modules['contact-form']; // Contact Form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Shortcode optimization | |
add_filter( 'the_content', 'do_shortcode' ); // Allow shortcodes inside of shortcodes | |
add_filter( 'comment_text', 'do_shortcode' ); // Allow shortcodes in comments | |
add_filter( 'comment_text', 'shortcode_unautop' ); // Prevent comment shortcodes from wrapping in <p>...</p> tags | |
add_filter( 'the_excerpt', 'do_shortcode' ); // Allow shortcodes in excerpts | |
add_filter( 'the_excerpt', 'shortcode_unautop' ); // Prevent excerpt shortcodes from wrapping in <p>...</p> tags | |
add_filter( 'widget_text', 'do_shortcode' ); // Allow shortcodes in widgets | |
add_filter( 'widget_text', 'shortcode_unautop' ); // Prevent shortcodes in widgets from wrapping in <p>...</p> tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Modify TinyMCE4 configurations & Init. | |
* | |
* @param array $mceInit config | |
* @param int $editor_id | |
* @return array $mceInit | |
* @link Modified from https://github.com/mattheu/wp-editor-talk-demo/blob/master/inc/tinymce-mods.php | |
*/ | |
add_filter( 'tiny_mce_before_init', 'geff_modify_tinyMCE4', 10, 2 ); | |
function geff_modify_tinyMCE4( $mceInit, $editor_id ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.emails { | |
margin-bottom: 40px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Steps to Secure WordPress | |
1. Create your own database with a unique name | |
2. Use a unique table prefix | |
3. Change default Admin username | |
4. After install, remove wp-admin/install.php | |
5. Disable version info | |
6. Secure wp-config.php via .htaccess file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[box]Your content here.[/box] | |
[box color="black"]Your content here.[/box] | |
[box color="blue"]Your content here.[/box] | |
[box color="brown"]Your content here.[/box] | |
[box color="gray"]Your content here.[/box] | |
[box color="green"]Your content here.[/box] | |
[box color="orange"]Your content here.[/box] | |
[box color="purple"]Your content here.[/box] | |
[box color="red"]Your content here.[/box] | |
[box color="yellow"]Your content here.[/box] |
OlderNewer