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. | |
| // Add sitewide body class no-js to more easily style for when js is disabeled. | |
| /* This is purly prefrance. By default the responsive-menu.js script normaly adds | |
| * a js body class when js is present but has no body class for when js is disabled, | |
| * which can be problamatic when you prefer to sytle based on the lack of JS | |
| */ |
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. | |
| //* Loading from a custom plugin | |
| add_filter( 'simple_social_default_profiles', 'custom_add_new_simple_icon' ); | |
| function custom_add_new_simple_icon( $icons ) { | |
| $icons['goodreads'] = [ | |
| 'label' => __( 'Goodreads URI', 'simple-social-icons' ), |
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. | |
| // Add support for the Genesis Scripts meta box on a custom post type | |
| add_post_type_support( 'download', 'genesis-scripts' ); |
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. | |
| /* | |
| * You can find the refrance for supports that Genesis adds | |
| * in the core files lib > admin > inpost-metaboxes.php | |
| */ | |
| //* Remove Action |
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. | |
| //********************************************** | |
| // Setup CTA Button Widget | |
| //********************************************** | |
| /* | |
| * We have three attributes: | |
| * - Button Text |
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. | |
| // Minimal Shortcode | |
| add_shortcode( 'cta_button', 'pb_register_button_shortcode' ); | |
| function pb_register_button_shortcode( $atts ){ | |
| /* | |
| * We return a pre formatted string with no variables. |
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 | |
| // Custom Site Description Widget | |
| //********************************************** | |
| /** | |
| * @package CoreFunctionality | |
| * @since 2.0.0 | |
| * @copyright Copyright (c) 2016, Patrick Boehner | |
| * @license GPL-2.0+ |
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. | |
| ///* Register Page Widget | |
| genesis_register_sidebar( array( | |
| 'id' => 'page-content-widget', | |
| 'name' => __( 'Page Content Widget', 'themename' ), | |
| 'description'=> __( 'This widget area shows within single page content area only.', 'themename' ), |
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
| # Ignore everything # | |
| ** | |
| !wp-content/ | |
| wp-content/** | |
| !wp-content/themes/ | |
| !wp-content/plugins/ | |
| wp-content/themes/** | |
| wp-content/plugins/** | |
| # Add two rules for each Theme or Plugin you want to include: |