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
CSS ---- | |
// Competition Valentines 2016 | |
// if( $('body.valentines-day-win-a-bottle-of-bubby-and-a-50-voucher').length > 0 ) { | |
// var type = window.location.hash.substr(1); | |
// if( type == "competition" ) { | |
// $('html, body').animate({ | |
// scrollTop: $("#mc_embed_signup").offset().top | |
// }, 2000); | |
// } | |
// } |
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
JS ---- | |
(function ($, root, undefined) { | |
$(function () { | |
if ($('body.home').length > 0 ) { | |
$.fancybox({ | |
'width': '100%', | |
'height': '100%', |
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 | |
function click_telephone($telephone, $string = null, $prepend = null, $prepend_zero = null) { | |
/* | |
Parameters: | |
$telephone - string, the actual number | |
$string - string, if you want to dispay a clickable strong rather than telephone number, | |
$prepend - string, prepend the telephone number. | |
$countrycode - string, country code or default UK 0044 |
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
$(window).load(function() { | |
$('.class_name_here img').removeAttr( "title" ).removeAttr( "alt" ); | |
}); |
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
HTML | |
<?php | |
$rows_sr = get_field('staff_repeater'); | |
if($rows_sr) { | |
echo " |
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
HTML | |
<div class="treatments-view-all"> | |
<a href='#'>View all ></a> | |
</div> | |
CSS | |
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
-- Functions.php | |
// http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/ | |
// Creating the widget | |
class meor_widget_posts extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
// Base ID of your widget | |
'meor_widget_posts', |
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
-- Functions.php | |
// http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/ | |
// Creating the widget | |
class meor_widget_facebook extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
// Base ID of your widget | |
'meor_widget_facebook', |