Nazrinn
Forum Replies Created
-
All images on the site are affected. The placeholder simply doesn’t appear when an image is loading.
If Optimole is deactivated, the images seem to lazy load but unceremoniously flash in. Same site with no cache and the Optimole plugin deactivated: https://staging.nocomgroup.com/Forum: Plugins
In reply to: [Redirection] Regex redirect not working with query parametersSeems like I found the issue. ?s= seems to be reserved by WordPress for blog searches. I changed my query parameter to ?search= and it the problem went away.
The pass-through is working just fine, and it really is needed for my Javascript to render my page correctly (it uses the URL to render the correct view).
Thanks for your help!- This reply was modified 8 months, 1 week ago by Nazrinn.
Forum: Plugins
In reply to: [Redirection] Regex redirect not working with query parametersMmm. That’s odd then. Why would I be getting a 404 when I load /modular-wiring-catalogue/?s=search? Perhaps this conflicts with WordPress in some way. I’ll have to look into it, but I’m starting to think this might not be your plugin.
Anyway, here is my video of the issue if it is to be of any use.
I’ll go do some more test, but if you can get me any confirmation in regard to my issue, regardless of the cause, that would be much appreciated.Forum: Plugins
In reply to: [Redirection] Regex redirect not working with query parametersAlso, you haven’t said how it isn’t working. Exactly what part is not working?
I don’t think we’re seeing eye-to-eye so let me actually record a video of the issue. I’ll get back to you.
Forum: Plugins
In reply to: [Redirection] Regex redirect not working with query parametersI don’t understand. I still get a 404 whenever I load the page with something like this: /modular-wiring-catalogue/?s=search.
I feel like from what you are saying, it shouldn’t happen? Why would a pass-through redirection not work in that case?
I tried another method of redirection but if it’s not pass-through it really defeats the purpose. I need ?s=search to stay in the URL when my modular wiring catalogue loads.Forum: Plugins
In reply to: [Redirection] Regex redirect not working with query parametersHi John,
My question still stands. I still need to redirect /modular-wiring-catalogue/?s=something to /modular-wiring-catalogue/ with the pass-through method.
This is absolutely essential for my search function to work, and given your plugin’s setting, I’m not sure why the regex I already have in place does not work.
What I’m asking is what should I do in order for /modular-wiring-catalogue/?s=something to redirect through /modular-wiring-catalogue/? Is there an issue with my REGEX or is it something else?Forum: Plugins
In reply to: [Redirection] Regex redirect not working with query parametersYes it works without any issues.
I’m trying to pass the URL with query parameters to this page because the page is using client-side rendering. You can see a live, but watered-down version of this page here. Redirections have no issues there thanks to your plugin.
Ah yes I do. Thanks for the pointer! I’ll work on this now.
That did it. Thanks!
Everything was solved! Thanks for the heads up.
Hi @jamesosborne,
Your solution worked! Disconnecting and reconnecting Google Analytics in my SiteKit settings then disconnecting SiteKit and setting up Google Analytics in my SiteKit settings again did the trick.
I’m not sure what caused the error. Maybe something with GA4, but oh well, hopefully the steps you highlighted can help other people in the future too.
Hi @jamesosborne,
I am already administrator of the Google analytics property so I’m no sure what you mean by “you will need to ask your client to?grant you access?to the connected Analytics property”. This is already the case. Here is a screenshot to prove it:
This has been the case since the beginning. I have set up the SiteKit, and I was admin of my client’s Google Analytics account even before I set up SiteKit. I tried disconnecting and reconnecting SiteKit twice, but the issue persist.
Adding to this, same as @mputman007, the email I use for administering my client’s Google Analytics, WordPress site and SiteKit is all the same (the one that ends wit “[email protected]”.
What would you suggest from there?
Hi @jamesosborne,
Before I worked with my clients, my clients had a GA account but never used SiteKit. I am the only person who has set up SiteKit, and also the only administrator who has done so.
Do you, or does your client know the administrator who may have set up the Analytics module previously?
@jamesosborneMy clients are the ones who originally set up the GA account. They have the administrator role of the GA account along with me. In WordPress, said client only has an editor account hover.
Given that new information, what do you think I should do?
I reconnected my SiteKit plugin and the issue persist. I have all the admin permission, but I believe same as @mputman007, I am not the Google Analytics account owner, or creator.
My client’s GA account existed before I became their web developer, and is connected to their Google Workspace account.
Hey there,
I did as suggested. Seems like it solved the issue. Here is the code I wrote:
$picture_browser_lazyload = 'loading="lazy" data-no-lazy="1"'; $picture_html = '
id="slider-picture-'.$id_html.'-'.$picture_id.'" data-property-section="'.$id_html.'" '.$picture_browser_lazyload.' srcset="'.$picture['sizes']['thumbnail'].''.$picture['sizes']['thumbnail-width'].'w, '.$picture['sizes']['medium'].''.$picture['sizes']['medium-width'].'w,'.$picture['sizes']['large'].''.$picture['sizes']['medium_large'].''.$picture['sizes']['medium_large-width'].'w,'.$picture['sizes']['large-width'].'w,sizes="(max-width: 768px) 98vw, 768px" src="'.$picture['url'].'" width="1170">';<span style="font-family: inherit; font-size: inherit;">'.$picture['url'].' 1170w"</span>I hope LiteSpeed can make slider lazy loading native still. This method doesn’t work on mobile Safari for quite a lot of people.