Merged in bugfix/MAW-868-catch-up-missing-code (pull request #26)

MAW-868: catch up missing code

* MAW-868: catch up missing code
This commit is contained in:
Tony Volpe
2024-01-29 18:26:23 +00:00
parent 367b3db7a0
commit 2c48165cf4
9 changed files with 185 additions and 79 deletions

View File

@@ -4,6 +4,35 @@
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( 'pre_get_posts', function() {
unset( $_GET['et_pb_searchform_submit'] );
}, 1 );
add_filter( 'relevanssi_post_content', 'rlv_remove_menu', 8 );
add_filter( 'relevanssi_pre_excerpt_content', 'rlv_remove_menu', 8 );
function rlv_remove_menu( $content ) {
$content = preg_replace( '~\[et_pb_text admin_label="Accounts Menu.*?\[/et_pb_text\]~ims', '', $content );
$content = preg_replace( '~\[et_pb_text admin_label="Footer Menu.*?\[/et_pb_text\]~ims', '', $content );
$content = preg_replace( '~\[et_pb_text admin_label="Footer Address.*?\[/et_pb_text\]~ims', '', $content );
$content = preg_replace( '~\[et_pb_text admin_label="Footer Social.*?\[/et_pb_text\]~ims', '', $content );
$content = preg_replace( '~\[et_pb_text admin_label="Convenience Menu.*?\[/et_pb_text\]~ims', '', $content );
return $content;
}
add_filter( 'relevanssi_pre_excerpt_content', 'rlv_shortcode_attribute', 8 );
add_filter( 'relevanssi_post_content', 'rlv_shortcode_attribute', 8 );
function rlv_shortcode_attribute( $content ) {
return preg_replace( '/\[et_pb_blurb.*?title="(.*?)".*?\]/im', '\1 ', $content );
}
add_filter( 'et_use_dynamic_css', function() {
if ( is_search() ) {
return false;
}
} );
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_script('recaptcha',get_stylesheet_directory_uri().'/js/recaptcha.js',array('jquery'),false,true);
@@ -79,6 +108,13 @@ jQuery(function($){
});
});
</script>
<script>
jQuery(document).ready(function(){
jQuery(".pa-blog-module article").each(function(){
jQuery(this).children('h2,p,div').not(':first-child').wrapAll('<div class="wrap"></div>');
})
})
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){

View File

@@ -906,3 +906,59 @@ h5.et_pb_toggle_title:after {
.video_cheryls_iframe:before { width: 100%; height: 60%; position: absolute; content: ""; border: 20px solid #FFFFFF; box-sizing: border-box; border-radius: 75px; left: 50px; bottom: -50px; z-index: -9;}
.service_video_iframe:before { width:100%;height: 75%; position:absolute; content:"";border: 20px solid #FFFFFF;box-sizing: border-box;border-radius: 75px;right: 50px;top: 195px;z-index: -9;}
/*style the wp-pagenavi pagination links*/
.wp-pagenavi a,
.wp-pagenavi span {
color: #000000;
background: #f1f3f5;
font-size: 1em !important;
line-height: 1em;
font-weight: bold !important;
padding: 0.45em 0.8em !important;
border-radius: 100px;
border: none;
transition: all .5s;
}
/*style the wp-pagenavi current page number*/
.wp-pagenavi span.current {
background-color: #f4f5fb;
padding: 10px 15px;
line-height: 90px;
color: #122e76;
border-radius: 50px;
}
/*style the wp-pagenavi pagination links on hover*/
.wp-pagenavi a:hover {
background-color: #c21b2d;
color: #fff;
}
/*style the wp-pagenavi pages text*/
.wp-pagenavi .pages {
background: none;
}
.wp-pagenavi span {
background-color: #f4f5fb;
padding: 10px 15px;
line-height: 90px;
color: #122e76;
border-radius: 50px;
letter-spacing: 0px!important;
}
/*remove border and center the wp-pagenavi links*/
.wp-pagenavi {
border-top: none;
text-align: center;
}