Skip to content

Instantly share code, notes, and snippets.

/* start of desktop styles */
@media screen and (max-width: 991px) {
/* start of large tablet styles */
}
@media screen and (max-width: 767px) {
/* start of medium tablet styles */
[timed-content-server show="2022-08-30 19:35 UTC"]Show content after August 30, 2022 and 7:35 PM UTC Timezone[/timed-content-server]
[timed-content-server hide="2022-08-30 19:35 UTC"]Hide content after August 30, 2022 and 7:35 PM UTC Timezone[/timed-content-server]
@mohsinworld
mohsinworld / WooCommerce Add to Cart Link
Created August 23, 2022 14:13
Add this link after the domain. Example: yourdomain.com/?add-to-cart=25 where 25 is the product ID
.grecaptcha-badge {opacity:0;}
add_action( 'template_redirect', 'bhww_ssl_template_redirect', 1 );
function bhww_ssl_template_redirect() {
if ( is_ssl() && ! is_admin() ) {
if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {
wp_redirect( preg_replace( '|^https://|', 'http://', $_SERVER['REQUEST_URI'] ), 301 );
exit();
.fluentform .ff-el-form-control {line-height: 3;}
.fluentform .ff_btn_style {line-height: 3;}
// Form Part
<div class="custom-form">
<div class="name">
[text* your-name placeholder "Your Full Name"]
</div>
<div class="email">
[email* your-email placeholder "Your Email Address"]
</div>
<div class="button-sumbit">
@media only screen and (min-width:783px) {
.forminator-row {
float:left;
padding-right:20px;
}
}
.forminator-input {
border-radius: 5px;
}
@mohsinworld
mohsinworld / Selection Color For Website
Created July 9, 2021 15:15
Add this code into "Additional CSS" for your WordPress website
::selection {
background-color:#333;
color:#fff;
}
Add to cart but stay on the page: /?add-to-cart=[product ID]
Add to cart and go to cart page: /cart/?add-to-cart=[product ID]