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_head', 'cp_prevent_indexing_orderby' ); | |
| if(!function_exists('cp_prevent_indexing_orderby')){ | |
| function cp_prevent_indexing_orderby () { | |
| if (isset($_GET['orderby'])){ | |
| echo '<meta name="robots" content="noindex, nofollow">'; | |
| } | |
| } | |
| } |
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
| /* | |
| * Comment out the ones you want to keep. You will need some, but not all, for each project. | |
| * Also, if you un-register then you can't use the_widget(); | |
| */ | |
| add_action( 'widgets_init', 'cab_unregister_widgets', 10 ); | |
| /** | |
| * Unregister Various Widgets | |
| * Clean up your widgets.php page | |
| * Single comment out the ones you want to keep |
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
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Modify the Genesis Franework read more link | |
| add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); | |
| function sp_read_more_link() { | |
| return '<a class="more-link" href="' . get_permalink() . '">Continue Reading →</a>'; | |
| } |
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', 'load_ionicons' ); | |
| function load_ionicons() { | |
| wp_enqueue_style( 'genesis-ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION ); | |
| } | |
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
| //Enqueue the Dashicons script | |
| add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); | |
| function load_dashicons_front_end() { | |
| wp_enqueue_style( 'dashicons' ); | |
| } |
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
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Remove entry title in entry header (requires HTML5 theme support) | |
| remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
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 Google Analytics function | |
| function google_analytics() { | |
| include_once("analyticstracking.php"); | |
| } | |
| //Add tracking action, set Google Analytics | |
| add_action('wp_head', 'google_analytics'); |
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
| // Login direct to the Product area in Admin Back-end | |
| add_action( 'load-index.php', 'woo_direct_access_wp_dashboard_redirect' ); | |
| function woo_direct_access_wp_dashboard_redirect(){ | |
| wp_redirect( admin_url( 'edit.php?post_type=product' ) ); | |
| } | |
| add_filter( 'login_redirect', 'woo_login_wp_dashboard_redirect', 9999, 3 ); | |
| function woo_login_wp_dashboard_redirect( $redirect_to, $request, $user ){ |
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
| <!-- | |
| /* Step 1 - Get Your Google Tag Manager Code*/ | |
| --> | |
| add_action('wp_head','my_analytics', 20); | |
| function my_analytics() { | |
| ?> | |
| <!-- Replace thi with first GTM code --> | |
| <?php |