pdxsherpa — 2014-01-01T20:17:58-05:00 — #1
Hello all working on this test site. but even in my sandbox the hide button is not working. I went over the jquery, looked for possible typos ect.
force — 2014-01-05T17:37:40-05:00 — #2
Is this "hide" button from a plugin, or something of your own making? Is it on the front-end of the wordpress site, or the administrative back-end?
Go ahead and post the code you're working with. This will aid in troubleshooting if it's your own code.
jaagare — 2014-01-05T22:13:01-05:00 — #3
pdxsherpa — 2014-01-06T10:59:04-05:00 — #4
Hello all and thank you, my code & button is at http://danielamorescalchi.com/test01/
button is now on display:none; but it is right below the blue band beneath the menu.
so i have
<a href="#" title="hide welcome msg">Hide</a>
in the welcome.php page
I then have on the same page
$(this).text($(this).text() == 'Show' ? 'Hide' : 'Show');
after having tried to use that script in a custom .js file in the js folder.
pullo — 2014-01-06T11:41:40-05:00 — #5
On the page you link to, if you look at the error console in your browser (how do I do that) then you'll see this:
Uncaught ReferenceError: JQuery is not defined danielamorescalchi.com/:119
This message usually means that you are trying to use jQuery before you have included it.
pdxsherpa — 2014-01-07T12:21:31-05:00 — #6
hi there. thank you Pullo will go check that out.
jaagare — 2014-01-07T21:59:27-05:00 — #7
I checked your code and its nothing to do with your script. Its a known bug in jQuery.
Kindly try downloading the release version or try referring
- the latest build in progress and your issue will be solved
Also just to let you know one minor issue
the j should be small in JQuery so it should be like