Need a Simple WP Plugin/Script Built

DosTacoz

WF Premium Member
Oct 21, 2011
75
1
0
Under a bridge
I need the ability to hide a specific page out of a menu using a designated URL parameter.

So for example I want to be able to type in ?nobrand after the URL and have it hide the "contact" page off the nav menu on my site.

I paid a guy $25 to create a simple script that would do the same, but remove contact info out of the sidebar, but he's not sure how to do this using WordPress's menu system so I figured I'd reach out to the community here at WF for some help.

Can it be done? If you can do it, would you charge me?

Thanks guys,
-J
 


Can it be done? If you can do it, would you charge me?

pvyork.jpg
 
They are lot of wordpress plugins available and if you want it some where by side of blog ,then you can do it yourself by simply changing html code.
 
They are lot of wordpress plugins available and if you want it some where by side of blog ,then you can do it yourself by simply changing html code.

It seems like you don't know what you're talking about.

OP, I don't know WP that well anymore, but JQuery should be able to do it:

Code:
<script type="text/javascript">
            $(document).ready(function () {
                if(window.location.href.indexOf("?nobrand")) // This doesn't work, any suggestions.
                {
                     $('.elementToHide').hide();
                }
            });
        </script>

Not tested.
 
Code:
<script type="text/javascript">
            $(document).ready(function () {
                s = window.location.search;
                if(s.indexOf("?nobrand"))
                {
                     $('.elementToHide').hide();
                }
            });
</script>

You could also do it in php, but this should be good enough. If you want a php solution, you could always hire me :p
 
You could certainly do this via a WP plugin.

You could do this with PHP.

You could do this with jQuery.

I think the jQuery option is probably the quickest and easiest.