Hello,
So we closed
this ticket because we fixed the wish/issue I had. But I forgot that the homepage has different styling for certain devices. So now the redirection of the button still doesn't work on tablet and phone because it's a seperate button. How can I make the code work or add code for the button for smaller devices?
AS you can see in
this image, or log in and check backend of homepage, I have three buttons that are shown on different sizes of screens/devices.
This was the code:
add_action('wp_footer',function(){
if(is_user_logged_in()){
?>
<script>jQuery(document).ready(function(){jQuery('a.ubtn-link.ult-adjust-bottom-margin.ubtn-left.ubtn-large').attr('href','https://meestergijs.nl/cursusaanbod/'); });</script>
<?php
}
});
Please help me make the code work for the same button on all devices.
Thanks!
Gijs