Second slider button disappeared
-
The second button on the slider that was added using snippet in this link https://ww.wp.xz.cn/support/topic/adding-second-button-to-one-slide-in-slider?replies=17
disappeared recently. The button was there and working for a few months that the website had existed. No extra plugins or themes have been added. Everything else is up to date and many auto updates (and possibly manual ones too) have gone through and I cannot pinpoint at which point it vanished.Has anyone else with a second slider button experienced this problem?
Here’s the code from the CHILD theme’s function.php
// Add extra button to first page image
add_action(‘wp_footer’ , ‘add_secondary_button_to_a_slide’);
function add_secondary_button_to_a_slide() {
?>
<script type=”text/javascript”>
jQuery(document).ready(function () {
! function ($) {
//prevents js conflicts
“use strict”;var target_original_button_link = ‘<?php echo get_permalink(27) ?>’;
var new_btn_content = ‘ “>More Info‘;//checks if the target slide url exists first
if ( $(‘a[href=”‘+ target_original_button_link +'”]’ , ‘#customizr-slider’ ).length === 0 )
return;//adds the new button html content after the original button
$(‘a[href=”‘+ target_original_button_link +'”]’ , ‘#customizr-slider’).after(new_btn_content);
}(window.jQuery)
});
</script>
<?php
}And my wesite url is http://acupunctureforlife.co.uk/
The topic ‘Second slider button disappeared’ is closed to new replies.
