diff --git a/wp/wp-content/themes/child-theme/functions.php b/wp/wp-content/themes/child-theme/functions.php index f4508a12..46c11027 100644 --- a/wp/wp-content/themes/child-theme/functions.php +++ b/wp/wp-content/themes/child-theme/functions.php @@ -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($){ }); }); + + +
-

Medical Alert Blog

-
+ + +

Medical Alert Blog

+ +
+
+ + + + +
+
-
-
- 'post', 'posts_per_page' => 6, 'cat' => -61, 'paged' => $paged)); + //$wp_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 6, 'cat' => -61, 'paged' => $paged)); + $wp_query = new WP_Query(array('post_type' => 'post', 'paged' => $paged)); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> -
+ +
diff --git a/wp/wp-content/themes/thbusiness/search.php b/wp/wp-content/themes/thbusiness/search.php index 14012e9d..2373d443 100644 --- a/wp/wp-content/themes/thbusiness/search.php +++ b/wp/wp-content/themes/thbusiness/search.php @@ -43,6 +43,6 @@ get_header(); ?>
- +
diff --git a/wp/wp-content/themes/thbusiness/single.php b/wp/wp-content/themes/thbusiness/single.php index 458e42c8..baaf0dba 100644 --- a/wp/wp-content/themes/thbusiness/single.php +++ b/wp/wp-content/themes/thbusiness/single.php @@ -31,6 +31,6 @@ get_header(); ?>
- +
- + diff --git a/wp/wp-content/themes/thbusiness/style.css b/wp/wp-content/themes/thbusiness/style.css index 9d846fa4..6c67a840 100644 --- a/wp/wp-content/themes/thbusiness/style.css +++ b/wp/wp-content/themes/thbusiness/style.css @@ -365,8 +365,8 @@ a.call-to-action-wdg-button:visited {color: #fff;} .author:before, .comments-link:before {margin: 0 15px 0 20px;font-weight: 400;display: inline-block;font-family: FontAwesome;} .author:before {content: "\f007";} .comments-link:before {content: "\f0e6";font-size: 12px;} -.cat-links:before {content: "\f07c";display: inline-block;font-family: FontAwesome;font-weight: 400;margin: 0 10px 0 0;} -.tags-links:before {content: "\f02c";display: inline-block;font-family: FontAwesome;font-weight: 400;margin: 0 10px 0 18px;} +/*.cat-links:before {content: "\f07c";display: inline-block;font-family: FontAwesome;font-weight: 400;margin: 0 10px 0 0;} +.tags-links:before {content: "\f02c";display: inline-block;font-family: FontAwesome;font-weight: 400;margin: 0 10px 0 18px;}*/ .th-post-permalink:before {content: "\f0c1";display: inline-block;font-family: FontAwesome;font-weight: 400;margin: 0 15px;} .meta-nav-next:after {content: "\f061";display: inline-block;font-family: FontAwesome;margin: 0 0 3px 10px;} .edit-link:before {content: "\f044";display: inline-block;font-family: FontAwesome;margin: 0 10px 0 18px;} @@ -709,8 +709,12 @@ p.sub-callout {margin-top: 0;color: #354052;font-family: 'Source Sans Pro', sans /*** BLOG STYLES */ -.blogpost {margin: 30px 0px; margin-left:auto; margin-right:auto;} -.blogpostcol{border: solid 1px #ededed;margin: 20px 0 20px 0;/*height: 550px;*/} +.blogpost {margin: 10px 0px 30px; margin-left:auto; margin-right:auto;} +.sf-input-checkbox {vertical-align: top;} +.sf-label-checkbox {width:94% !important;} +.blogpostcol{border: solid 1px #ededed;margin: 0px 0 30px 0; box-shadow: 0px 12px 0px 0px rgb(160 190 212 / 20%) !important; + border-radius: 6px;} +.blogpostcol:hover { box-shadow: 0px 12px 0px 0px rgb(194 27 45 / 20%) !important; border-radius: 6px; border: 1px solid #d3d3d3 !important;} #blogread {background: #002f5e;float: left; margin: 10px 0px; font-size: 14px;} .entry-header{margin: 20px 5px 10px 5px;} h1#blogtitle a{color: #002f5e !important;font-size: 20px;line-height: 30px;font-weight: 700;text-overflow: ellipsis;white-space: normal;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;} @@ -1344,3 +1348,12 @@ span.author.vcard {display:none;} .et-db #et-boc .et-l .et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a { padding:15px 0px !important;} + .blog-feat-img img {object-fit: cover; height: 245px;} + +.blog-feat-img .article-preview-image {margin-bottom:0px;} + +.blogpost .tags-links {margin-left:10px;} + +.searchandfilter label { width:100%;} +.searchandfilter ul {margin:0px;} +