not anymore, I am running a custom FB button, some slider mods and a couple of other things I haven’t labelled properly at this stage.
That’s my whole functions.php, although as I keep modifying the site it grows and shrinks.
<?php
add_filter('tc_logo_title_display', 'change_site_main_link');
function change_site_main_link($output) {
return preg_replace('|href="https://1742455934529.netau.net/|', 'href="https://www.wiltronics.com.au/', $output);
}
// set the whole slider as a single animated button. Removes call to action
add_action('wp_head' , 'link_whole_slide');
function link_whole_slide() {
//sets the slider image link
add_filter('tc_slide_background' , 'my_slide_link', 10, 2);
function my_slide_link( $slide_image , $slide_link) {
//sets the slider image link
return sprintf('<a href="%1$s">%2$s</a>',
$slide_link,
$slide_image
);
}
//wraps the slider caption in the same link as the call to action button
?>
<script type="text/javascript">
jQuery(document).ready(function () {
! function ($) {
//prevents js conflicts
"use strict";
$( '.carousel-caption' ).each(function( index ) {
var link = $( this ).find('a').attr('href');
$(this).wrap('<a href="'+link+'"></a>');
});
}(window.jQuery)
});
</script>
<?php
}
// Stop slider pausing on mouse hover
add_filter( 'tc_stop_slider_hover','my_slider_hover_value');
function my_slider_hover_value() {
return false;
}
//we hook the code on the wp_head hook, this way it will be executed before any html rendering.
add_action ( 'wp_head' , 'move_my_slider');
function move_my_slider() {
//we unhook the slider
remove_action( '__after_header' , array( TC_slider::$instance , 'tc_slider_display' ));
//we re-hook the slider. Check the priority here : set to 0 to be the first in the list of different actions hooked to this hook
add_action( '__before_footer' , array( TC_slider::$instance , 'tc_slider_display' ), 0);
}