Archives: Snippets
Single Line Form adjustments
/* Input fields styling */ #wpforms-758 .wpforms-field input[type=”text”], #wpforms-758 .wpforms-field input[type=”email”] { background-color: #1c355e !important; border: 1px solid #ffffff !important; border-radius: 3px !important; color: #ffffff !important; } /* Placeholder text color */ #wpforms-758 .wpforms-field input[type=”text”]::placeholder, #wpforms-758 .wpforms-field input[type=”email”]::placeholder { color:…Continue reading
WWPP – Restrict add-to-cart on specific products to a specific wholesale role only
// 1. Make the product unpurchasable for non-doctors add_filter( ‘woocommerce_is_purchasable’, ‘wws_restrict_purchase_for_doctors’, 10, 2 ); function wws_restrict_purchase_for_doctors( $is_purchasable, $product ) { $allowed_role = ‘doctors’; $restricted_category = ‘doctors-only’; $product_id = $product->is_type( ‘variation’ ) ? $product->get_parent_id() : $product->get_id(); if ( has_term( $restricted_category, ‘product_cat’,…Continue reading
WWPP – Restrict add-to-cart on specific products to a specific wholesale role only
/** * Restrict add-to-cart on specific products to the ‘doctors’ wholesale role only. * * Usage: * 1. Set DOCTORS_ROLE_SLUG below to match the wholesale role slug you created in * WooCommerce > Wholesale Roles. * 2. On each product’s…Continue reading
KinTech template
KinTech Cybersecurity Solutions KT KINTECH Services Why Us Process Contact Get Audit Trusted Cybersecurity Partner DEFEND YOUR DIGITAL WORLD KinTech Cybersecurity Solutions delivers expert penetration testing, vulnerability assessments, and ISO 27001-aligned security strategies — protecting businesses before attackers find the…Continue reading
Apollo Website Tracking
function add_apollo_tracker() { ?>Continue reading
Atrevi
Home page
add_action(‘wp_head’, ‘ggs_homepage_schema_1901’, 20); function ggs_homepage_schema_1901() { if (!is_page(1901)) { return; } $schema = [ ‘@context’ => ‘https://schema.org’, ‘@graph’ => [ [ ‘@type’ => ‘ProfessionalService’, ‘@id’ => ‘https://goodguysseo.com/#organization’, ‘name’ => ‘Good Guys SEO’, ‘url’ => ‘https://goodguysseo.com/’, ‘telephone’ => ‘+1-917-402-3438′, ’email’ =>…Continue reading
Untitled Snippet
Disable Geolocation Current Location if the page URL contains Prefill by URL parameters targeting an address field
/** * Fix: WPForms Prefill by URL takes priority over Geolocation Current Location. * * When “Current Location” is enabled in WPForms > Settings > Geolocation, * the geolocation JS overwrites address fields that were pre-filled via URL * parameters…Continue reading