Jason LeMahieu (MadtownLems)
Forum Replies Created
-
Wow – thanks for the heads up on Widget Logic. I hadn’t seen or heard of that, but I think it might be wise to steer clear of that for a while. Unfortunately, I don’t have another suggestion at this time. Classic widget use in general is largely phasing out in favor of more block-based site development. Frankly, if I was building a new site from scratch, I’d likely be going in a route that doesn’t use widgets, either – but that’s beyond the scope of these support forums. Good luck with your project!
You may want to consider switching to Widget Logic, which can give more precise control over widgets, as your use case is pretty advanced: https://www.ads-software.com/plugins/widget-logic/
Conditional Widgets is targeted at basic uses of widget areas (sites with a sidebar and/or footer).And these Featured Sliders are implemented as Widgets?
Are you assigning multiple categories to a single Post? If you’ve categorized a post as both “All”, and “Business”, then each corresponding slider widget would be displayed.
and go to that individual WordPress entry page, multiple Featured Sliders appear at the top.
Can you confirm that you are working with WP’s default “Posts”, as opposed to a custom post type?
Forum: Plugins
In reply to: [Page Links To] Redirection cacheUnfortunately, you can not. This plugin redirects with a 301 (permanent) redirect.
Forum: Plugins
In reply to: [Page Links To] Deleting A page that’s been linkedThe link/redirect does not persist. The redirect likely still exists in your browser – and the browser of anyone who’s viewed it recently – because they are set with 301 (permanent) redirects.
Forum: Plugins
In reply to: [Page Links To] SEO status for pagesThis plugin redirects with a 301 code (permanent).
I believe the fix, since 6.6, is to stop disabling them fields – and instead set them to “readonly”
Forum: Plugins
In reply to: [Speculative Loading] Content Security Policy?Awesome – thank you so much. I’ll take a look at this in the days to come and report back.
Forum: Plugins
In reply to: [Speculative Loading] Content Security Policy?Please share how you’ve configured your Content-Security-Policy.
We currently have no mention of script-src in it. I THINK that doing something like:
script-src ‘self’ ‘unsafe-inline’; should make it work.
Do you have a suggested method of testing whether or not this prefetching/prerendering is actually working as expected? Should I be able to watch the Network tab as I hover over links? Is there another method?Heya,
While you’re waiting for John to chime in, I have some ideas which you can consider.
Is this with the Classic Editor?
If so, I think this is a case where there is ultimately a redirect at the end of saving a post. So the page load that you’ve logged during is never actually rendered. If you’re trying to debug something there, consider writing to your debug or error log instead.
I don’t think that would work with the Block Editor either, as so much is done via the REST API / Ajax. (See https://www.ads-software.com/support/topic/admin-block-editor/ )
Forum: Plugins
In reply to: [WordPress Importer] Issues backfilling URLs for images that have been edited“I’m happy to help and also create it for you if you would like”
That would be awesome! Thank you for doing that. Drop a link here so I can follow along and clarify/test anything if needed, please. Cheers!
Forum: Plugins
In reply to: [WordPress Importer] Issues backfilling URLs for images that have been editedI just did a simple test of exporting a post with a Cover Block and Media/Text Block, and got slightly odd behavior – though it doesn’t sound like what you got.
My Cover Block actually updated perfectly. The url attribute of the imported block contains the link to the image on the new site. Perfect.
However, the attribute for the Media & Text Block did not (though the MARKUP did). So, investigating the markup from the front-end makes it look like it went fine, but there’s still a reference to the old site in the “mediaLink” attribute of the wp:media-text block.
(However, this all feels like a fundamentally different issue, though.)
Forum: Plugins
In reply to: [WordPress Importer] Issues backfilling URLs for images that have been editedHi there. Here are my steps to reproduce. This is on WP 6.5.5 multisite with 2019 Theme, and the Block Editor. I did this on a subsite called “/sitefrom/”.
- Upload image.jpg
- Use image.jpg in a new Post. I made my post be the following:
“BEFORE EDITING”
“Thumbnail”
(Image block using image.jpg in thumbnail size)
“Medium”
(Image block using image.jpg in medium size)
“Large”
(Image block using image.jpg in Large size)
“Full”
(Image block using image.jpg in Full size) - Edit the image. I cropped it into a different aspect ratio.
- Edit the post, and append the following:
“AFTER EDITING”
“Thumbnail”
(Image block using image.jpg in thumbnail size)
“Medium”
(Image block using image.jpg in medium size)
“Large”
(Image block using image.jpg in Large size)
“Full”
(Image block using image.jpg in Full size)
Verify that the post shows 4 different sizes of the original image, followed by 4 different sizes of the edited image. Perfect!
5. Export all content.
6. Import it onto a new site on the same network (mine is called /siteto/). And view the post. Note that many of the Image tags were NOT backfilled, and still use images from /sitefrom/.
For the original, pre-edited, Image Blocks, Thumbnail, Medium, and Large, all still refer to /sitefrom/. Only the Full size uses the image from /siteto/. Note that is uses the edited filename: /2024/07/image-e1720554498236.jpg
All of the post-edited Image Blocks reference /siteto/ as expected, and all have the edited filename, such as: 2024/07/image-e1720554498236-183×300.jpg
So, it seems that any Image tags created before the image was edited are not properly backfilled on the new site. And I don’t think they actually CAN be, currently, because those underlying image files didn’t get copied in the export/import and don’t actually exist on the new site.
/sitefrom/’s upload folder contains a total of 12 image files (all related to this one media item. approximately half of generated sizes of the original, and half of the edited version)
where /siteto/’s upload folder only contains 5 image files (all based on the edited image). in fact, image.jpg is not even present there, only image-e1720554498236.jpgSo, I think the key part here is using an image on a site, THEN editing it, then exporting/importing. That’s when things get lost.
Yes – these are done with the Location Control.
Show the block if…. Category … is at least one of …. X.
https://blockvisibilitywp.com/knowledge-base/how-to-use-the-location-control/