Skip to content Skip to sidebar Skip to footer

Hiding Specific Menu Items

I am trying to hide menu items where they contain the word 'Benefits HIDDEN' in a quick launch list. I have been trying to get a script to work, but no avail so far. Using F12 in E

Solution 1:

zz13_idPDPQuickLaunch is ID not a class, use # eg:

<script>
$(document).ready(function() {
    $("#zz13_idPDPQuickLaunch *:contains('Benefits HIDDEN')").hide ();
});
</script>

Solution 2:

You can use the class/id of element you want to hide as the main part of jQuery selector. If you want to hide the li tag, you can use(static is the class of the li tag):

$(".static:contains('Benefits HIDDEN')").hide();

enter image description here

Best regards,

Amos

Post a Comment for "Hiding Specific Menu Items"