anebi85
Forum Replies Created
-
Hello, I am sorry for my delayed reply. I just found little bit time to check the code and I noticed that the dev was using Twig Image(post.meta(‘casino_review_top_block_image’)) in order to get the image url and this was returning the local Media Library one.
@loiccloudinary is there an existing cloudinary function that allows me to add extra transformation parameters to a url? Let’s say that by default the url is with f_auto,q_90, but I would like to add also w_xxx or h_xxx, is there a function to do that or I should create one?
Hello,
Thank you very much for your reply and confirmation.
I’ll look what I can do or just leave it as it is.
Best regards,
Ali NebiHi hi,
Yes, all the images are synced. That image especially is part of an ACF field from what I see and is shown in the PHP template. It is not part of the content. That’s why it gets the local URL instead of Cloudinary one. So most probably I need to get the image ID and pass it to some function in order to get its Cloudinary URL instead. I don’t know if that’s the correct way of course 🙂
Here: https://www.xn--lck0a4d163n92ss3oyg8c76duxc.com/casino/casitabi/
The top image just under the title, the image is with this url: https://www.仮想通貨カジノ比較.com/app/uploads/2022/06/E382ABE382B7E38299E69785E3839BE383BCE383A0HOME-788×430-c-default.png because it comes from the template code and is not a content image. I will need to change this image to be served thru a cloudinary URL changing the code in the template or passing it thru a filter/function.
Another question, let’s say that I set an image dynamically in the template but now the URL is using the local media library one. How can i tell the template to delivery and use Cloudinary one instead?
The images are synchronized between Cloudinary and WP Media Library.
Hello,
Thank you very much for your fast reply.
Yes, actually I receieved this request for changing from PNG to JPG from our SEO guys, because they said that Google has been complaining for big images but this doesn’t make much sense because you are right, f_auto should return correct image to Google as well.
I am going to talk to them and run some extra tests to see the real complains.
Thank you once again!
Best regards,
AliPS: You can see here what I want to do: https://ibb.co/yNX1Zr3
Forum: Plugins
In reply to: [Redirection] Custom header from child themeJust a small update if someone else is going to deal with same situation. I was able to inject the header using the ‘init’ action. send_headers action and wp_headers filter is still not working but I will keep testing those when I have more time. In any case ‘init’ action with priority 9 or lower works fine.
Forum: Plugins
In reply to: [Redirection] Custom header from child themeThank you very much, I keep checking and doing debugging.
Best regards,
Ali NebiForum: Plugins
In reply to: [Redirection] Custom header from child themeHello,
Thank you for your reply.
Well, that’s the interesting part. If I access an URL that is not processed by the Redirection plugin then the wp_header filter or sender_header action works, but when it is an URL handled by the plugin, my child theme filter/action is not ran at all.
I tried to change the priority too but didn’t help. that’s why I decided to post my question here because I thought that you might know why the Redirection code is with higher priority than my code eventually.
Best regads,
Ali NebiForum: Plugins
In reply to: [Redirection] Custom header from child themeI also tried with the send_header action but still doesn’t work.
- This reply was modified 3 years, 9 months ago by anebi85.
Hello,
Thank you very much for your reply.
Yup, I am going to send a report tomorrow to mentioned email address and I will check with my supervisor if we can give access to a sandbox env and confirm (if this is necessary).
Best regards,
AliForum: Plugins
In reply to: [Toplytics] Bedrock + Composer + ToplyticsHello,
Thanks for the reply and the fix. It seems to be working fine now. I no longer get an error 🙂
Best regards,
Ali NebiForum: Plugins
In reply to: [Cloudinary - Deliver Images and Videos at Scale] Downloading from CloudinaryHello,
Thank you for your fast reply.
The subfolder I have set for this specific site is with total count of assets in Cloudinary: 1,901
We have images (jpg/png) mostly and maybe few SVGs, but 99.9% of the images are jpg/png.
What I see is that the images are never downloaded to the local storage and always stay with Downloding from Clodinary label. No matter how long I am waiting. I see this for more than a week already. I tried to reinstall cloudinary plugin and do bulk sync but this does change anything, so it looks like to me that the images are never downloaded.
And the type of files you have on your WordPress Media Library? – jpg, png,svg (mostly jpg and png)
Are they all synced to Cloudinary – local storage got synced to cloudinary when i ran wp cli:
Analyzing 2578 assets: 2578 Analyzed | 100% Synced : 257 Un-synced : 4 Unsupported : 2317From what I saw Unsupported is set when the image is missing locally.
Are they all synced to Cloudinary? – some of the images before upgrade to v2 were locally for wp and others (big part were in cloudinary only under the subfolder), so cloudinary images under that subfolder are/were never part of WP media library before.
It is quite strange. I am going to send you the report file with included a single image that is with that state.
I forgot to mention that we were using plugin v1 and upgraded it to v2 follow the procedure with deactivate v1, uninstall v1, install v2 and reconfigure it.
Thanks and regards,
AliForum: Plugins
In reply to: [WP-SCSS] parse error: failed at `grid-template-columnsIt looks like same problem was reported here and is already fixed with new SCSSPHP versions: