mcbsys
Forum Replies Created
-
Just wanted to close this out. I think I will leave it as is–hopefully most visitors will be coming back to the site, or at least be able to refresh the page, to see the map, so a temporary white space isn’t top priority to fix :).
Thanks very much for your help.
Thank you, Jarno. Here is the behavior I see after updating the mu-plugin again:
- On first load in a Private window, the map is displayed. Probably okay in the U.S., where opt-in is assumed until you opt out.
- After going to the opt-out page and unchecking Marketing, the map is behind a “Click to accepting marketing cookies” box.
- After clicking the box to accept, the map disappears; a white background is displayed.
- After refreshing the page, the map re-appears without an opt-in box.
So it looks like it’s working! Could the map be re-displayed without having to refresh the page?
Thanks for all your help!
Jarno,
Thanks for that update. I’ve installed it under mu-plugins. Unfortunately, “google” is still undefined when it is referenced in line 27 of the script. I set a breakpoint at the top of that function, temporarily disabled Complianz and found that google _is_ defined. So somehow it is supposed to be defined (as a global variable, I assume) before this function is called.
“ctfw” stands for Church Themes Framework. The maps.js script that is throwing the error is here, if that helps: https://github.com/churchthemes/church-theme-framework/blob/master/js/maps.js.
Do you see an obvious fix or should I contact the theme developer?
Regards,
Mark Berry
Hi Jarno,
That’s great that there is already a plugin for this case! However I seem to have an issue with the plugin when viewing https://www.pbumc.org/locations/pbumc/.
In a Firefox Private window, after clearing the server cache, I saw the message over the map one time. When I clicked on it to accept marketing cookies, the map area became solid white. Now it just stays solid white, even after accepting cookies at the main Complianz popup. In a Chrome Incognito window, it opens as just white space and stays that way after clicking Accept in the main popup.
I will leave the mu plugin installed if you want to try it.
Thanks for your advice on this!
Mark
Thank you, Aert. I appreciate your patience in explaining these behaviors.
It seems this gets even more complicated in Firefox, which has a built-in blocker for Private windows. Even after adding an exception, Google Analytics and Tags get “shimmed,” making it harder to see what happens with Complianz. But I see what you are describing when I use Chrome Incognito.
Meanwhile, back to the original question: on https://www.pbumc.org/locations/pbumc/, I see five scripts related to Google Maps but no cookies. So I’m okay to ignore the Complianz warning about Google Maps?
Thank you, Aert. That makes sense, and tells me what to look for. However it’s doesn’t match the behavior I am seeing. With CookieShredder turned off, in a new Private window:
- Browse to http://www.pbumc.org. Don’t consent yet. View Source and search for
data-service="google-analytics"
. It occurs three times; all are set to text/plain. So even though consent in the U.S. is implied per Jarno’s reply above, the scripts are not enabled. - Click Accept on the Complianz popup and re-open View Source. All three Analytics script blocks are still text/plain, so consenting does not enable the scripts.
I do have Malwarebytes BrowserGuard installed, but it is not active in Private sessions, so it should not be blocking tracking.
Can you duplicate this? Is this somehow related to server-side caching?
Regards,
Mark
Thank you, Jarno. That does explain the principle.
So in the Private browser, I went to the opt-out page and opted out of both Statistics and Marketing cookies. This added six functional cookies from Complianz, so I can see that it worked, but the Google Analytics (_ga) cookies are still there. Why is that? Hmm… I see that the _ga domain is “.pbumc.org” but the cmplz_* domain is “www.pbumc.org”.
Also, why do I not see cookies from Google Maps even on the page with a map displayed?
Regards,
Mark
It’s so confusing to figure out how to get questions answered.
I could not find any documentation on how to control this feature, just a blog comment claiming that it can be controlled.
The documentation that I did find at https://cleantalk.org/my/support says that one can only raise a ticket “If you have questions about account, payments, any CMS except WordPress and etc.” Since this IS about using the WordPress plugin, it sounds like it must go on the WordPress forum.
I will try a ticket. Please consider correcting the support page about where to get support for what.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Change Visited color in link inside buttonThanks, it is helpful to know how to access the Customize function, which is apparently no longer available from the dashboard.
Note that the issue was the Visited color, not the Hover color. I was able to work around it at the block level with the JSON in my previous post.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Change Visited color in link inside buttonWell I don’t know if this is the right way to do this, but I found that I could change the text colors for buttons in the theme.json file. I just made all the text colors “tertiary”. See https://make.wordpress.org/core/2022/10/10/styling-elements-in-block-themes/. Still haven’t figured out where the style overrides that are entered in the GUI are stored.
"elements": { "button": { "border": { "radius": "0" }, "color": { "background": "var(--wp--preset--color--primary)", "text": "var(--wp--preset--color--contrast)" }, ":hover": { "color": { "background": "var(--wp--preset--color--contrast)", "text": "var(--wp--preset--color--tertiary)" } }, ":focus": { "color": { "background": "var(--wp--preset--color--contrast)", "text": "var(--wp--preset--color--tertiary)" } }, ":active": { "color": { "background": "var(--wp--preset--color--secondary)", "text": "var(--wp--preset--color--tertiary)" } }, ":visited": { "color": { "text": "var(--wp--preset--color--tertiary)" } } },
Forum: Plugins
In reply to: [Contact Form 7] “Sender’s message failed to send”, also not in FlamingoThank you for your reply. Sorry, it’s a customer site and I do not want to draw public attention to their contact form. Yes, I read your post about looking for private support in that case but I am the private support :). I was hoping for troubleshooting / logging tools or steps. If that is not available, we can try another approach, maybe embed a Google form.
Forum: Plugins
In reply to: [Analyticator] Sign in with Google temporarily disabled for this appSame. It does seem to insert the tracking code if you paste it in manually.
Yeah I wondered what other plugin might be doing that. I tried disabling All-in-One SEO, probably the most aggressive plugin, but no change. I guess I could deactivate plugins until it changed, but at least it’s working for now.
- This reply was modified 4 years, 7 months ago by mcbsys.
I get the same results in a Live test with the Twenty Nineteen theme. (Note this is with Ajax off.)
With the help of the Query Monitor plugin, I confirmed that The Main Query includes this SQL:
ORDER BY wp_posts.post_title LIKE '%security%' DESC, wp_posts.post_date DESC
It is the same even if I deactivate Ivory Search, so it has nothing to do with your plugin.
I don’t know where the
ORDER BY wp_posts.post_title
is coming from, but I was able to override it by adding the following to functions.php in the child theme:function my_order_by_date_only( $query ) { $query->set( 'orderby', 'date' ); $query->set( 'order', 'DESC' ); } add_action( 'pre_get_posts', 'my_order_by_date_only' );
I’ve blogged this issue here.
Thanks for your help and for the helpful plugin!
Vinod,
Thanks for your reply. I updated to 4.4.1, but nothing changed. Posts with the search word in the title are still sorted above other posts.
It looks like it is the same at your site. Search https://ivorysearch.com/documentation/ for “plugin” and the articles with “plugin” in the title are listed first. (It seems all articles have the same date so it’s hard to check the sort order, but at least the title-based search seems to be in effect.)
Regards,
Mark