This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^your-domain\.com | |
RewriteRule (.*) http://www.your-domain.com/$1 [R=301,L] |
This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\.your-domain\.com | |
RewriteRule (.*) http://your-domain.com/$1 [R=301,L] |
This file contains hidden or 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
add_action( 'wp_enqueue_scripts', 'wpsites_load_javascript_conditionally' ); | |
function wpsites_load_javascript_conditionally() { | |
if ( is_page('page-slug') ) { | |
wp_enqueue_script( 'your-script' ); | |
} | |
} |
This file contains hidden or 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
add_action( 'wp_enqueue_scripts', 'wpsites_second_style_sheet' ); | |
function wpsites_second_style_sheet() { | |
wp_register_style( 'plugins-style', plugins_url('plugins/your-plugin/style.css', __FILE__) ); | |
wp_enqueue_style( 'plugins-style' ); | |
} | |
} |
This file contains hidden or 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
genesis_register_sidebar( array( | |
'id' => 'portfolio-widget', | |
'name' => __( 'After Custom Post Type Widget', 'wpsites' ), | |
'description' => __( 'This is the after portfolio widget.', 'wpsites' ), | |
) ); | |
/** | |
* @author Brad Dalton | |
* @example http://wp.me/p1lTu0-a8W | |
*/ | |
add_action( 'genesis_after_post', 'after_portfolio_posts', 9 ); |
NewerOlder