Title: Shortcode not working
Last modified: March 15, 2022

---

# Shortcode not working

 *  [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/shortcode-not-working-402/)
 * I’m testing the shortcode `<?php echo do_shortcode('[cookies_revoke title="text"]');?
   >` in the Woocommerce checkout page where Paypal payment button is displayed 
   but it doesn’t work (or better: it works as long as the a link is shown but clicking
   on it does not make the banner appear as expected. It doesn’t have any effect
   apart from scrolling upwards because of href=”#”). It works well in the cart 
   page and wherever else but not inside the checkout payment form. Is anybody encountering
   the same problem?

Viewing 1 replies (of 1 total)

 *  Thread Starter [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/shortcode-not-working-402/#post-15460336)
 * Ok I fixed it by using `$(document).ajaxComplete(function() {` otherwise the 
   jQuery function doesn’t work inside the checkout payment form.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode not working’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [christian70](https://wordpress.org/support/users/christian70/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/shortcode-not-working-402/#post-15460336)
 * Status: not resolved