Steve
Forum Replies Created
-
OK thank you for your help.
I’m very grateful.
SteveI’ve just discovered that I had avatars disabled in:
wordpress settings > discusstion > Show Avatars
Everything working perfectly now.
Sorry for the mistake.
SteveHi,
Thank you for your message.
You can view the requested screenshots here:
https://snipboard.io/6dTna9.jpg
https://snipboard.io/PDWGTV.jpg
Yes, I uploaded the images in the registration form.
Best Regards,
SteveForum: Plugins
In reply to: [LiteSpeed Cache] Woocommerce Cart not displayingSorry, don’t follow, which setting?
Forum: Plugins
In reply to: [LiteSpeed Cache] Woocommerce Cart not displayingHello,
Thank you for your message.
I mean the whole cart page:
https://ecommerce-demo.netmonics.com/cart/
SteveForum: Plugins
In reply to: [LiteSpeed Cache] Woocommerce Cart not displayingSorry, I meant to say:
Replace “If I remove the above excludes it still works” with ” > “I then reactivated the plugin and it now displays the cart. If I remove the above excludes it still works.”Forum: Plugins
In reply to: [LiteSpeed Cache] How to exclude part of a page from cacheAh, OK. Thank you.
Forum: Plugins
In reply to: [LiteSpeed Cache] How to exclude part of a page from cacheI think I can go the widget route as the block I’m adding is to be displayed on every page.
I enabled ESI but I don’t see any additional widgets created, particularly the ‘resent posts’ widget mentioned here:
https://blog.litespeedtech.com/2017/09/06/wpw-esi-and-litespeed-cache/
Best Regards,
SteveForum: Plugins
In reply to: [LiteSpeed Cache] How to exclude part of a page from cacheOK thank you.
Forum: Plugins
In reply to: [LiteSpeed Cache] How to exclude part of a page from cacheOK thank you.
Do you happen to know a good resource which explains how to the custom coding?Forum: Plugins
In reply to: [LiteSpeed Cache] How to exclude part of a page from cacheI’ve had a look at the link but can’t see how to apply ESI to a gutenberg block. Is that possible?
Forum: Plugins
In reply to: [LiteSpeed Cache] How to exclude part of a page from cacheOK thank you!
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 stopped workingHello Takayuki, Thank you for your reply. You can't see it because I replace the form with a different type and removed the Contact Form 7 form. I've put the form details below, I've changed the domain name of the emails. I tried creating 4 images to show the mail tab but have no way to upload images, the image block here only seems to use urls. I don't think there's anything wrong with the form because it was working the day before. It could at least send emails to any domain apart from the site's one. I found that I had to edit a setting in the cPanel to allow it to email externally, so at least that is working. Steve *********** Form *********** Name: [text* your-name] Email: [email* your-email] Subject: [text* your-subject] Message: [textarea* your-message] [acceptance acceptance-777] I agree to the storage of my data according to the Privacy Policy [/acceptance] [submit "SEND"]Forum: Fixing WordPress
In reply to: Get a timeout error when attempting to login to WordPressJust following up.
I spoke to the hosting company and they tell me that the site’s IP address has changed. Apparently it still works when viewing the site as the old address is forwarded to the new one. Not sure why it doesn’t work when logging in though.
Anyway, I’ve updated the IP address and everything is working fine.
I don’t recall seeing a notification that the IP address would be changing, that’s something I need to follow up on and ensure that this doesn’t happen again.
Best Regards,
SteveForum: Developing with WordPress
In reply to: Using parse_blocks() on a widget?Hello Farid,
Thank you so much for your reply and suggestion.
What I’m trying to do is to access the attributes for my dynamic block which contains child blocks.
I can access the top level attributes from my block from the $attributes variable as follows:
$attributes[‘SomeAttribute’]I don’t know how to directly access the attributes for the child blocks.
The above code retrieves the content for the page/post, so I can iterate through the structure and identify my block, then extract it’s attributes including the nested attributes.
Though it’s not a very efficient way to obtain the attributes as my block can exist inside a row/column block and so each instance of my block needs to read the content for the whole page/post each time and then navigate through the structure recursively to find possible instances of my block and identify the correct one before extracting it’s attributes. However, at least it works when the block is on a page or post.
I also want to be able to place my block on a widget but now it won’t work as the parse_blocks() retrieves the values for the page/post not a widget.
So I suppose there are really two questions:
1) How can I access the attributes for child blocks directly?
2) If 1) is not possible, how can I read the content of a widget if the block actually on a widget.I’m not sure if my block might need to exist in other places but so far I need it for pages, posts and widgets. Could there be other places where it might exist I wonder?
Hope that’s clear, it’s tricky to explain.
Steve