Title: Is Login &amp; Back possible using shortcode?
Last modified: March 24, 2025

---

# Is Login & Back possible using shortcode?

 *  Resolved [HCVNI](https://wordpress.org/support/users/hcvni/)
 * (@hcvni)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/is-login-back-possible-using-shortcode/)
 * Hi,
 * I’m trying to offer a free sample chapter of an eBook, on a Woocommerce product
   page, to logged in users only. 
   Anyone can see the rest of the page, I just want
   to restrict the link to the file download to logged in users. I have it restricting
   the content (the link) OK, but to view it the user has to manually find the Register/
   Log in page, then find their way back to that same product page.It looks like
   I can’t put a link to the log in page in the Default Denial Message field, is
   there any other way to achieve this please? Login & Back would be perfect.
 * Thanks in advance.
    -  This topic was modified 1 year, 2 months ago by [HCVNI](https://wordpress.org/support/users/hcvni/).
      Reason: added tags

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/is-login-back-possible-using-shortcode/#post-18384940)
 * Hi [@hcvni](https://wordpress.org/support/users/hcvni/),
 * If you’re using a block editor, you can utilize Gutenberg’s **Login/Out** block
   which has a setting that redirects you back to the previous page.
 * Here’s a demo: [https://share.zight.com/6qup959B](https://share.zight.com/6qup959B)
 * Hope that helps! 😊 Let us know if you have other questions.
 *  Thread Starter [HCVNI](https://wordpress.org/support/users/hcvni/)
 * (@hcvni)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/is-login-back-possible-using-shortcode/#post-18386570)
 * Hello Kim,
 * thanks so much for that, I appreciate you going to the trouble to make a video
   for me 🙂
 * I don’t use a block theme, so I can’t do it the way you suggest, but I was able
   to make a workaround by looking through various other posts on here and it will
   suit me just fine.
   Thank you again.Regards,Philip.
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/is-login-back-possible-using-shortcode/#post-18387144)
 * Hi Phillip,
 * You’re welcome! We’re glad you were able to find a solution. 😊
 * Feel free to create a new post if you have new questions.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Is Login & Back possible using shortcode?’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kim L](https://wordpress.org/support/users/kimmyx/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/is-login-back-possible-using-shortcode/#post-18387144)
 * Status: resolved