WordPress.org

Forums

UK Cookie Consent
[resolved] 'Info page permalink' settings should also be able to point to outside domain (2 posts)

  1. Pawel Marzec
    Member
    Posted 2 years ago #

    I use UK Cookie Consent version 1.4.2 and I have use multisite version of WordPress with few different subdomains. I would like have single cookies policy information page, I do not want to have o copy on every subdomain. Unfortunately, when I use 'http//sub.maindomain.com/policy.html' value in 'Info page permalink' settings then I get href 'http://currentdomain.com/http//sub.maindomain.com/policy.html' which is not what I expected. Please, do help.

    http://wordpress.org/extend/plugins/uk-cookie-consent/

  2. Arkady Gasiorowski
    Member
    Posted 2 years ago #

    You must go to widget setting and editing code in
    uk-cookie-consent/uk-cookie-consent.php

    Find this text:
    $content = sprintf( '<div id="catapult-cookie-bar">%s<button id="catapultCookie" tabindex=1 onclick="catapultAcceptCookies();">%s</button><a tabindex=1 href="%s">%s</a></div>', htmlspecialchars( $current_text ), htmlspecialchars( $accept_text ), home_url( $link_text ), htmlspecialchars( $more_text ) );

    and change code:
    <a tabindex=1 href="%s">%s</a>
    to:
    <a tabindex=1 href="http://your_site">more info</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • UK Cookie Consent
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.