Archives: Snippets
om-embed-code-example.js
archive-listings.php
Property ListingsContinue reading
functions.php
archive-listings.php
Property ListingsContinue reading
Feed Generation Cron Script
wrong redirect .htaccess
# Slash al final RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !# RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ https://yourdomain.com/$1/ [L,R=301] # END Slash al finalContinue reading
Untitled Snippet
google-site-verification=zZNaaEK34pc0WzFRzwMX5Xhh1eNMAld4DAZRmUH3klw
Remove Specific Campaign Based on the Referral URL- v1
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(document.referrer.search.indexOf(‘google.com’) > 0) { // replace with the specific referral domain var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID-holder’); // replace CAMPAIGN_ID with the unique ID for your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading