Price Range Slider (JS)

document.addEventListener(‘DOMContentLoaded’, function() { const priceRangeSlider = document.getElementById(‘priceRangeSlider’); const priceDisplay = document.getElementById(‘priceDisplay’); const hiddenField = document.querySelector(‘input[name=”input_9″]’); priceRangeSlider.addEventListener(‘input’, function() { const value = this.value; priceDisplay.textContent = value; hiddenField.value = value; }); });Continue reading

Social Share Buttons

$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ ‘;Continue reading