Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
jQuery(document).ready(function($){
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-xxxxxxxxx-x', 'auto'); // change UA-xxxxxxxxx-x to be your tracking UA.
$("#contact form").each(function() {
var jqForm = $(this);
var jsForm = this;
var action = jqForm.attr("action");
<script type="text/javascript">
jQuery(document).ready(function($){
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-xxxxxxxxx-x', 'auto'); // change UA-xxxxxxxxx-x to be your tracking UA.
$( 'a[href^="tel:"]' ).click(function(event) {
var href = $(this).attr("href");
var target = $(this).attr("target");
<script type="text/javascript">
jQuery(document).ready(function($){
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-xxxxxxxxxx-x', 'auto'); // change UA-xxxxxxxxx-x to be your tracking UA.
$("#contact form").each(function() {
var jqForm = $(this);
var jsForm = this;
var action = jqForm.attr("action");
<img class="main-logo" src="<?php echo esc_attr( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" id="logo" data-height-percentage="<?php echo esc_attr( et_get_option( 'logo_height', '54' ) ); ?>" />
<img class="fixed-logo" src="/wp-content/uploads/2019/09/email-logo.png" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" id="fixed-logo" data-height-percentage="<?php echo esc_attr( et_get_option( 'logo_height', '54' ) ); ?>" />
/* Main logo show */
#logo.main-logo {
display: inline-block;
}
/* Fixed logo hide */
#fixed-logo.fixed-logo {
display: none;
}
/* Fixed main logo hide */
.et-fixed-header #logo.main-logo{
<?php
if (is_page()) {?>
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="480">
<meta property="og:image:height" content="283">
<meta property="og:image" content="YOUR_IMAGE_URL">
<?php } ?>
<meta property="og:image" content="YOUR_IMAGE_URL">
<meta property="og:image" content="YOUR_IMAGE2_URL">
<?php if (is_page()) {?>
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="480">
<meta property="og:image:height" content="283">
<?php if (is_page( '356' )) {?>
<meta property="og:image" content="IMAGE_FOR_PAGEID_356">
<?php }
else if ( is_page( '390' )) {?>
<meta property="og:image" content="IMAGE_FOR_PAGEID_390">
<?php }
<script>
jQuery(document).ready(function( $ ) {
$(document).on('click', '.popup', function(event){
event.preventDefault();
});
});
</script>
/* CSS for overlay */
.popup-overlay {
display:none;
position: fixed; /* fixed it */
top: 0; /* moves it to the top */
width: 100%; /* makes it fullwidth */
height: 100vh; /* makes it full height of the screen */
z-index: -1; /* moves the section behind all the rest so it is not shown */
justify-content: center; /* centers the row in the middle */
align-items: center; /* centers the row in the middle */