Skip to content

Instantly share code, notes, and snippets.

@robhob
robhob / social-links-new-tab.js
Last active February 27, 2020 22:29
Open Social Media Links in a New Window
cursor: pointer;
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".hyper_this").on('click', function(){
window.location = "https://divinotes.com/free-premium-divi-theme-layouts/";
});
});
</script>
@media only screen and (max-width:1325px) and (min-width:981px) {
#top-menu, .fullwidth-menu, nav#top-menu-nav, nav.fullwidth-menu-nav {
display:block!important;
}
#et_mobile_nav_menu, .et_mobile_nav_menu {
display: none!important;
}
}
add_filter( 'caldera_forms_phone_js_options', function( $options){
//Use ISO_3166-1_alpha-2 formatted country code
$options[ 'initialCountry' ] = 'GB';
return $options;
});
input#searchsubmit {
color: #ffffff!important;
background: #29363e;
border-color: #29363e;
border-radius: 0px;
letter-spacing: 1px;
font-size: 14px;
font-family: 'Poppins',Helvetica,Arial,Lucida,sans-serif!important;
font-weight: 500!important;
text-transform: uppercase!important;
<form role="search" method="get" id="searchform" class="searchform" action="https://mydomainname.com/">
<div>
<input type="text" placeholder="Find the perfect book" value="" name="s" id="s">
<input type="submit" id="searchsubmit" value="Search">
</div>
</form>
<form role="search" method="get" id="searchform" class="searchform" action="https://mydomainname.com/">
<div>
<label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s">
<input type="submit" id="searchsubmit" value="Search">
</div>
</form>
div.wh-widget-send-button-wrapper div.wh-widget-send-button-wrapper-list>a.wh-widget-button div.wh-widget-button-icon {
border-radius: 10% !important;
}
UPDATE `wp_posts`
SET `comment_status` = 'closed'
WHERE `post_type` = 'attachment'
AND `comment_status` = 'open';