Remove Decimal Points In Suggested (US)

document.addEventListener(‘DOMContentLoaded’, function () { // Select all span elements inside the ul with the class ‘donation-amounts’ const amountSpans = document.querySelectorAll(‘.donation-amounts span.amount’); amountSpans.forEach(span => { // Get the current text content let value = span.textContent; // Find the index of the…Continue reading

Add Custom Attributes and Group Them

// Step 1: Add your custom attribute(s) to a named group function add_custom_grouped_attributes( $attributes ) { // Define your own group label here $group_label = ‘Other fields’; // e.g., ‘Image attributes’, ‘Custom data’, etc. // Initialize group if not set…Continue reading

Del 2

Velkommen til Bilerfaring.no Del og les ekte erfaringer med biler i Norge – fra folk som faktisk har eid dem. Toyota Corolla (2015) Driftssikker og billig i drift. Har kjørt 120 000 km uten store problemer. Anbefales! Volkswagen Golf (2018)…Continue reading

Del 1

Velkommen til Bilerfaring.no Del og les ekte erfaringer med biler i Norge – fra folk som faktisk har eid dem. Toyota Corolla (2015) Driftssikker og billig i drift. Har kjørt 120 000 km uten store problemer. Anbefales! Volkswagen Golf (2018)…Continue reading

Add Unified Product SKU with ID for Facebook Feed || WPML || PFE

function adt_wpml_unified_product_sku_id( $product_data, $feed, $product ) { // Check if the feed is for Facebook dynamic remarketing if( isset($feed->channel[‘fields’]) && $feed->channel[‘fields’] == ‘facebook_drm’ ) { $product_id = $product->get_id(); // Get the original product ID from WPML (default language) $wpml_product_id =…Continue reading

Unified Product ID for Facebook Feed || WPML || PFE

function adt_wpml_unified_product_id( $product_data, $feed, $product ) { // Only run for Facebook dynamic remarketing feed if( isset($feed->channel[‘fields’]) && $feed->channel[‘fields’] == ‘facebook_drm’ ) { // Get current product ID $product_id = $product->get_id(); // Get original product ID from WPML (if exists)…Continue reading

floating-monsterlink-2.js

// Floating MonsterLink Style 2 jQuery(document).ready(function ($) { //* Animate Floating MonsterLink into view on page load $(‘.floating-monsterlink.style2’).addClass(‘show’); //* Animate out of view function function closeFloatingMonsterLink(e) { e.preventDefault(); $(‘.floating-monsterlink.style2’).removeClass(‘show’); } //* Triggers that run closeFloatingMonsterLink function // run closeFloatingMonsterLink when…Continue reading

floating-monsterlink-2.css

/* — Floating MonsterLink Style 2 CSS — —————————————— */ .floating-monsterlink.style2.show { bottom: 30px; } .floating-monsterlink.style2 { margin: 0; width: auto; border-radius: 10px; display: inline-block; position: absolute; bottom: -160px; left: 30px; width: 180px; padding: 10px 20px; background-color: #eaeaea; border: 7px…Continue reading