Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

hide a pagebuilder item when the url has a certain word in it

Home / Forums / Ascend Theme / hide a pagebuilder item when the url has a certain word in it

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
June 26, 2019 at 8:06 am

Hi, this is an advanced problem i have… . i tried a few hours to solve it without ask you but …no way…. so the situation is:

in this page we have the sidebar on the left and the main content all generated from a third party javescript code….
at the bottom of that page we have this button

when you click on an item of the list, the third party javascript loads the item detail…. adding some anchor/data to the url

the big issue we have is that we want to hide the button div #job-button when an item of the list is loades (so the url contains a /#/d/)… we tried to add some javascript code into the footer ..like this post says but no way…

<script type="text/javascript">
$(document).ready(function () {
if (window.location.href.indexOf("/d/") != -1) {
$("#job-button").hide();
}
}
</script>

can you please give an advise about how to do it?

Thank you very much!

  • The forum ‘Ascend Theme’ is closed to new topics and replies.