This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//REDIRECTS DRAFTED WHATS ON POSTS TO BASE CATEGORY PAGE | |
add_action('template_redirect', 'redirect_draft_post_in_category'); | |
function redirect_draft_post_in_category() { | |
if (is_singular('post')) { | |
global $post; | |
// Check if the post is a draft | |
if ($post->post_status === 'draft') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying product content in the single-product.php template | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".pin-0").click(function(){ | |
point = 0; | |
jQuery(".infobox").removeClass("show-flex"); | |
jQuery(".pin").attr("src","https://tribe-manchesterairport.co.uk/wp-content/uploads/2025/04/pin.svg"); | |
jQuery(".infobox-0").addClass("show-flex"); | |
jQuery(".pin-0").attr("src","https://tribe-manchesterairport.co.uk/wp-content/uploads/2025/04/pin-active.svg"); | |
}); | |
jQuery(".pin-1").click(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wp-block img:not([draggable]), .wp-block svg:not([draggable]) { | |
pointer-events: all !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function() { | |
// Function to retrieve cookie value by name | |
function getCookie(name) { | |
var cookies = document.cookie.split(';'); | |
for (var i = 0; i < cookies.length; i++) { | |
var cookie = cookies[i].trim(); | |
// Check if this cookie is the one we are looking for | |
if (cookie.indexOf(name + '=') === 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function() { | |
// When the document is ready | |
// Bind a click event to the submit button | |
jQuery('#insert-submit-button').click(function(event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//when facets change dynamically - delete if using on a regular page load based repeater | |
jQuery(document).on('facetwp-loaded', function() { | |
// if repeater id contains something that it would if it returned posts | |
if (jQuery('#_dynamic_list-9-148 h2').length > 0) { | |
// hide no posts error | |
jQuery('.no-results').hide(); | |
// otherwise the no results message shows | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | |
<form class="contact-form" id="__vtigerWebForm" name="Detertech - leads" action="https://pid-systems.co.uk/crm/modules/Webforms/capture.php" method="post" accept-charset="utf-8" enctype="multipart/form-data"> | |
<input type="hidden" name="__vtrftk" value="sid:74f1302d01d32a4fae77eefe2259b322de8d384b,1664895530" /> | |
<input type="hidden" name="publicid" value="a9f27047575e4dad9d1326c5b0a80349" /> | |
<input type="hidden" name="urlencodeenable" value="1" /><input type="hidden" name="name" value="Detertech - leads" /> | |
<input class="input-text odd" placeholder="First Name*" type="text" name="firstname" data-label="" value="" required="" /> | |
<input class="input-text even" placeholder="Last Name*" type="text" name="lastname" data-label="" value="" required="" /> | |
<input class="input-text odd" placeholder="Business Name*" type="text" name="company" data-label="" value="" required="" /> | |
< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paste into Admin MU | |
/*show clamp defined typo size in gutenburg at a reasonable size*/ | |
.editor-styles-wrapper { | |
font-size: 120%!important; | |
} | |
html { | |
font-size: 62.5%!important; | |
} |
NewerOlder