Announcement

Collapse
No announcement yet.

Swift V2 Cookie Preferences - glitches and fixes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Swift V2 Cookie Preferences - glitches and fixes

    If you're using Swift V2, you may have noticed some illegible text in Cookie Preferences:

    Click image for larger version

Name:	CookieBad.png
Views:	92
Size:	44.1 KB
ID:	557003

    This is created and displayed by a third party, but the formatting can be corrected by adding some css to the bottom of the Swift Stylesheet (AKA Current Stylesheet in Design mode). Thank you to Gary Green at Sellerdeck for pointing this out. The css I've added is:
    Code:
    .termsfeed-com---pc-dialog .cc-cp-body-tabs-item-link {
    height: inherit !important;
    line-height: 1.5 !important;
    }
    .termsfeed-com---pc-dialog .cc-cp-foot-save {
    height: 50px !important;
    line-height: 1.5 !important;
    }
    Also, if you'd like to strike a blow against American cultural imperialism and have "Cookies Preferences Centre" as the default heading instead of "...Center", go to the layout "UXHeadCode Swift" and find this line (line 35 out-of-the-box):
    Code:
    cookieconsent.run({"notice_banner_type":"headline","consent_type":"express","palette":"light","language":"en","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"website_name":"<actinic:variable name="WebSiteURL" />"});
    Carefully edit the "language":"en" bit to read "language":"en_gb"

    The end result should look like this:

    Click image for larger version

Name:	CookieGood.png
Views:	57
Size:	45.7 KB
ID:	557004

    As always, back things up before changing them, no warranty implied, don't blame me etc.

    John
    John Ennals
    www.tortoys.co.uk
Working...
X