WP-Bernd
Forum Replies Created
-
Hi @webtoffee,
Yes, I was using <br /> tags in my text for formatting.
I followed your advice and I see that it now translates a ‘return’ straight into <br />. That’s a lot easier.
Thanks a lot!
HansYes, it works. Color is back.
Thanks, webtoffee!I just tried the new v1.6.1. Still wrong color. I’ll keep v1.5.9 online.
Yes, same thing here.
Reject button now has [cookie_button] color in v1.6.0, used to be ‘Reject Button’ color before. I’ll keep my eyes open for the update. Til then I’ll simply keep v1.5.9 online.Hi @markwt,
I was too busy to finetune wordpress, so I couln’t respond.
I understand. It’s the shortcode for easy configuration.
I’ve got it installed, and it works perfectly.
Thank You!OK, got the ‘Reject’-button right.
Was wondering why it works for you but not for me, and the solution was to toggle between ‘Button’ and ‘Link’ once, saving the settings.But I have to correct my earlier statement about the [cookie-button]. Sorry for that, a typo. I’m using [cookie_accept] to define the sequence.
Could you try the following?
I’m using [cookie_accept], and it’s not the green I’ve chosen in the settings. Digging into this one, I see that using
[cookie_button] [cookie_link], I have the chosen colors, but in
[cookie_accept] [cookie_link] [cookie_reject], the [cookie_accept] has a different green. Would it be possible to define it’s color, too? Maybe the [cookie_button], because one wouldn’t use both?Thank you very much for you support!!!
PS: sorry for editing, but the typo’s…
Sorry, not yet.
I selected a dark green for my [cookie-button] as ‘Accept’-button (‘Close Header’),
a dark blue for my [cookie-link] as ‘more Info’-button (‘Open URL’),
and a dark red for my [cookie-reject] as ‘Leave’-button (‘Open URL’).Now the ‘Reject’-button is [cookie-accept]-green. (Not the same green as my ‘Accept’.)
I’ve made 2 little changes to the 1.5.5 code to make it work for my needs, fixing color and double assignment of the id. But I don’t know if these changes break some of your code when settings are different.
I had a look at the code.
For the whole button:
[cookie_link] and [cookie_reject] have the same ID: ‘CONSTANT_OPEN_URL’.
CSS ID’s must be unique!
And then it’s no problem to assign the correct colors using something likevar main_link = jQuery('#cookie_action_load_url_reject'); main_link.css( ...For the text color:
Currently, ifvar main_link = jQuery('#cookie_action_close_header_reject');returns an empty ‘main_link’,main_link.css( 'color', settings.button_3_link_colour );cannot set the correct color.Right?
+1 for this request.
For the time being, I’ve done it in the CSS of my child-theme:
/* PLUGIN "COOKIE-LAW-INFO" */ #cookie-law-info-bar { padding: 16px; }Yes, that’s the issue.
I’ve chosen red as color for the button. And if the function is ‘Close Header’, it is a red button.
But as soon as I make the function ‘Open URL’, the button is shown in black. The color setting is still red (or any other color).The same is true for the link color: it’s always white then.
I sure do.
Got the button colors correct now. It fixed itself when deactivating the plugin and activating it again.
Thanks a lot for creating and maintaining this plugin!
Not sure yet. I’m new to this kind of coding. But I’ve got the same ‘problem’, more or less.
I’ve written a php function to do it. Now I’m looking for a good way to parse the list of cookies and to make it work without page reloading.
I had a look at what the plugin does. It looks like this to me:
CLOSE HEADER (ACCEPT) places the viewed_cookie_policy cookie with calue ‘yes’.
CLOSE HEADER (REJECT) places the viewed_cookie_policy cookie with calue ‘no’.
The viewed_cookie_policy cookie has a lifetime of 1 year. No more questions for that time.The shortcode [delete_cookies] deletes the viewed_cookie_policy cookie. The notice pops up again.
So they are not doing the same thing.
Again a configuration thing of the reject button:
I can set button color and link color for the reject button. But the actual button is always white on black. I’m trying to make it white on red.I started using the plugin on my private website. So nice!
It’s just an ‘OK’-‘Show privacy policy’-‘Get me out of here’ setup with some text around it. It can do so much more, but that’s exactly what I was looking for.