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
| /** set up our navbar, and position it fixed so there is no white gap above the CS content **/ | |
| .x-navbar { | |
| border: none; | |
| box-shadow: none; | |
| transition: background 0.7s ease-out; | |
| background: transparent!important; | |
| position: fixed; | |
| z-index: 1030; | |
| top: 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
| (function($){ | |
| $('#tabsection .x-container').on('click', '.x-column', function(){ | |
| var textshow = $(this).index('#tabsection .x-column'); | |
| $('#textsection .x-container').addClass('hidden'); | |
| $('#textsection .x-container').eq(textshow).removeClass('hidden'); | |
| }); | |
| })(jQuery); |
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
| /** flex the tabs to make the shrink down for mobile **/ | |
| #tabsection .x-container { | |
| display: -webkit-box; | |
| display: -ms-flexbox; | |
| display: flex; | |
| -webkit-box-orient: horizontal; | |
| -webkit-box-direction: normal; | |
| -ms-flex-direction: row; | |
| flex-direction: row; |
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
| @media (min-width: 768px) { | |
| .x-section .x-container.swapcolumns { | |
| display: -webkit-box; | |
| display: -ms-flexbox; | |
| display: flex; | |
| -webkit-box-orient: horizontal; | |
| -webkit-box-direction: reverse; | |
| -ms-flex-direction: row-reverse; | |
| flex-direction: row-reverse; | |
| } |
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
| /** | |
| * Get theme colors from Pro and turn them into classes and CSS variables | |
| * Author: Michael Bourne | |
| */ | |
| $themecolors = get_option('cornerstone_color_items'); | |
| if($themecolors) { | |
| $css = '<style type="text/css" id="themecolours">'; | |
| $colors = json_decode( stripslashes( $themecolors ), true ); |
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_filter('cs_match_header_assignment', 'custom_search_header'); | |
| function custom_search_header($match) { | |
| $user = wp_get_current_user(); | |
| if (is_search()) { | |
| $match = 1234; // the post ID for your header | |
| } | |
| elseif (is_404()) { | |
| $match = 4567; // the post ID for your header | |
| } | |
| return $match; |
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_filter('cs_match_header_assignment', 'custom_search_header'); | |
| function custom_search_header($match) { | |
| $user = wp_get_current_user(); | |
| if (in_array( 'author', (array) $user->roles )) { | |
| $match = 1234; // the post ID for your header | |
| } | |
| return $match; | |
| } |
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_filter('cs_match_header_assignment', 'custom_search_header'); | |
| function custom_search_header($match) { | |
| if (is_user_logged_in()) { | |
| $match = 1234; // the post ID for your header | |
| } | |
| return $match; | |
| } |
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_filter('cs_match_header_assignment', 'custom_search_header'); | |
| function custom_search_header($match) { | |
| if (is_404()) { | |
| $match = 1234; // the post ID for your header | |
| } | |
| return $match; | |
| } |
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_filter('cs_match_header_assignment', 'custom_search_header'); | |
| function custom_search_header($match) { | |
| if (is_search()) { | |
| $match = 1234; // the post ID for your header | |
| } | |
| return $match; | |
| } |