I have been reading everywhere for a solution and I have tried all of them. But I am getting and error with this snippet:
if (jQuery('.page-id-5356 .uts-main-login')[0]){
jQuery('.entry-content #em-wrapper').add('<div class="uts-login">text</div>');
}
Any ideas on why this isn't working? I either get nothing, a length of 2 or a geryed out undefined
. No new div is created or anything. Basically, I want a a button to appear when on one page when .uts-main-login
is visible. It's killing me! Been at it for hours :(