Title: Preference button not working
Last modified: March 25, 2024

---

# Preference button not working

 *  [zhayter88](https://wordpress.org/support/users/zhayter88/)
 * (@zhayter88)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/preference-button-not-working-2/)
 * I’ve added the following (Version 1 code) into the footer of my site. But when
   I click the link it just sends me to the top of the page (#).
 * How does this (default supplied) code need to be modified for it to work?
 * There are also two versions of the code presented by default in two different
   places, which is just confusing btw, and neither of them work, and there are 
   no additional obvious instructions to make them work:
 * **Version 1**
 * [mywebsite.com]/wp-admin/admin.php?page=banner-settings > Preference Center Button:
 *     ```wp-block-code
       <a href="#" onclick="window.displayPreferenceModal();return false;" id="termly-consent-preferences">Consent Preferences</a>
       ```
   
 * **Version 2**
 * termly.io > Consent banner settings > Embed preference center link:
 *     ```wp-block-code
       <a href="#" class="termly-display-preferences">Consent Preferences</a>
       ```
   
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpreference-button-not-working-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Raouia Belhiba](https://wordpress.org/support/users/raouiab/)
 * (@raouiab)
 * [2 years ago](https://wordpress.org/support/topic/preference-button-not-working-2/#post-17757998)
 * Please reach out to [support@termly.io](https://wordpress.org/support/topic/preference-button-not-working-2/support@termly.io?output_format=md)
   so we can work on further assisting you on this issue. Kindly ask to be redirected
   to Technical Support.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/uk-cookie-consent/assets/icon.svg?rev=2567699)
 * [Termly - GDPR/CCPA Cookie Consent Banner](https://wordpress.org/plugins/uk-cookie-consent/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/uk-cookie-consent/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/uk-cookie-consent/)
 * [Active Topics](https://wordpress.org/support/plugin/uk-cookie-consent/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uk-cookie-consent/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uk-cookie-consent/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Raouia Belhiba](https://wordpress.org/support/users/raouiab/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/preference-button-not-working-2/#post-17757998)
 * Status: not resolved