mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-04 12:22:24 +08:00
26 lines
604 B
Text
26 lines
604 B
Text
add_filter('astra_get_search_form', function ($form) {
|
|
|
|
if (defined('DGWT_WCAS_NAME')) {
|
|
$form = '<div class="search-form">';
|
|
$form .= do_shortcode('[wcas-search-form]');
|
|
$form .= '</div>';
|
|
}
|
|
|
|
return $form;
|
|
});
|
|
|
|
add_filter('wp_head', function () {
|
|
if (defined('DGWT_WCAS_NAME')) {
|
|
?>
|
|
<style>
|
|
.ast-dropdown-active .search-form {
|
|
padding-left: 0 !important;
|
|
}
|
|
|
|
.ast-dropdown-active .ast-search-icon {
|
|
display: none !important;
|
|
}
|
|
</style>
|
|
<?php
|
|
}
|
|
});
|