Tagged: faq
Hi,
when i click on a FAQ title instead of opening the FAQ to see the paragraph
it redirects me to the FAQ item page.
Is there a way to cancel that redirect?
I just want that by clicking on the title it is just opens up and closes.
Thanks!
Hey ndszamoca,
Thank you for the link to your site but this looks like you are using the plugin Ultimate FAQ I’m not familiar with this plugin or with it’s settings, I would imagine it has a setting to disable this if you can not find it try asking the plugin author.
If they are unable to help try adding this code to the end of your functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
(function($){
$(".ewd-ufaq-faq-div").each(function(){
$(this).find(".ewd-ufaq-faq-toggle a").attr("href", "#");
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
it will remove the links from the toggles.
Best regards,
Mike
Hi Mike!
Thanks a lot, that the solution to my problem!
Have a good day!