In my wordpress website I americium trying to fell download fastener from non logged-in idiosyncratic and adhd a customized HTML to that section. My existent codification is hiding the download fastener but not displaying the text. I americium a beginner PHP programmer truthful immoderate assistance is truly appreciated.

I americium utilizing this code:

<style> <?php if(! is_user_logged_in() ) : ?> .product-purchase-box{ display: none; $(".single-product-widget").text("Please Login/Register To Download"); } <?php endif; ?> </style>

asked 8 mins ago

New contributor

Katherine Elizabeth Kath is simply a caller contributor to this site. Take attraction successful asking for clarification, commenting, and answering. Check retired our Code of Conduct.

Your Answer

Katherine Elizabeth Kath is simply a caller contributor. Be nice, and cheque retired our Code of Conduct.

Sign up oregon log in

Sign up utilizing Google

Sign up utilizing Facebook

Sign up utilizing Email and Password

Post arsenic a guest

Name

Email

Required, but ne'er shown

By clicking “Post Your Answer”, you hold to our terms of service, privacy policy and cookie policy

Browse different questions tagged oregon ask your ain question.