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
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; | |
} |
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
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 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 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 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 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 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 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($){ | |
$(window).on('ready load resize', function(){ | |
var max = 0, | |
mobile = $(window).width(); | |
$(".equalize .x-column").css('min-height', 'inherit'); | |
if ( mobile > 767 ){ | |
$(".equalize .x-column").each(function(index, el) { | |
if( $(this).outerHeight() > max ){ | |
max = $(this).outerHeight(); |
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
(function($){ | |
$(window).on('load resize', function() { | |
$(".equalize").each(function(index, el) { | |
var max = 0, | |
mobile = $(window).width(); | |
$(this).find(".x-column").css('min-height', 'inherit'); | |
$(this).find(".x-column").css('height', 'auto'); | |
if ( mobile > 767 ){ | |
$(this).find(".x-column").each(function(index, el) { | |
if( $(this).outerHeight() > max ){ |
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
(function($){ | |
$(window).on('ready load resize', function(){ | |
var max = 0, | |
mobile = $(window).width(), | |
numChildren = $('.jsmethodgrid').first().children().size(); | |
$(".jsmethodgrid .x-column").css('min-height','inherit'); | |
if ( mobile > 767 ){ | |
$('.jsmethodgrid .x-column').css({ 'width' : 100/numChildren + '%', 'margin': 0 }); |
OlderNewer