Home › Toolset Professional Support › [Resolved] ALT text doesnt show for a specific element in a view.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 32 replies, has 2 voices.
Last updated by kristenM 1 year, 6 months ago.
Assisted by: Nigel.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
That looks correct, and I just double-checked on a local test site, where it works.
It seems to be just the first image that has the problem, so maybe you are affected by that other issue I talked about too.
We released a hotfix for Blocks (to 1.6.7) today that fixes that issue, so can you please be sure to update to 1.6.7 and then make sure the fix I proposed is applied to that version, then re-test.
Hello Nigel.
I'm very sorry for the inconvenience.
I have updated Toolset Blocks to 1.6.7 and inserted line 106 in Placeholder.php but I still can't see ALT text on Model MRM: Manual Roll Manipulator on this page: hidden link
If it helps this Image is shown as a View.
Best regards
Kristen
Hello again Nigel.
I just tried to insert an image and a text manually in blocks and here you can see the ALT text.
You can see it on hidden link
Could it be a Toolset Views problem?
Best regards
Kristen
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
I found the same, it worked when outputting the image directly (e.g. in a template), but not when it was the first item in the View.
I double-checked if being the first item was significant, and it appeared to be, because when I edited my View block and switched the order (so the image didn't appear as the first result) then it worked okay.
And when I switched the ordering back again (so the image is now output as the first result), it still works.
Which makes me think the View cache is relevant here.
Edit the View block and disable the View cache, or make a meaningful change to the View (such as the ordering setting) which will bust the cache, and check again.
Hello again Nigel.
Thank you for your support.
I have tried to deactivate View cache and also tried to change Ordering. That didn't help on ALT text. I have also tried to change dynamic source of the image and change it back again but that didn't help either.
I'm talking about this page View: hidden link
The output is shown here: hidden link
The dynamic product that is viewed first (not the first product - that is manual/static) is this:hidden link
As you can see it doesn't show ALT text.
Any suggestions?
Best regards
Kristen
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Kristen
Sorry, I was off Friday.
Looking at this again, I'm not sure if you have shared the correct links.
Your final link—to the page of the product itself which is the problem product in the output of the View—is to "Model MRM: Manual Roll Manipulator".
When output by the View it does display the alt text, see my screenshot.
Hello Nigel.
I'm sorry for not addressing this. The customer has over the weekend decided to remove the Views on Pages under the menus of Industries and Handling. That is why you can see ALT texts on "Model MRM: Manual Roll Manipulator".
I just tried to look at ALT texts on the page hidden link.
The images had no ALT texts so I put ALT text on the first 3 of them - and it works now!!
Maybe it's because the cache didn't empty correct or that I should update image ALT text before it shows - but now it works. Thank you!
I finish this support thread and I wish you a terrific day 🙂
Best regards
Kristen
My issue is resolved now. Thank you!
Hello again Nigel.
Going through my list of missing ALT texts I actually thought it worked now. Unfortunately it still doesn't work on the Page hidden link
When you look at the Lifters below "Custom Manipulators Gallery" and look at "Industrial Lifter for Gripping and turning boxes" or the other elements there are no ALT texts when I look at "inspect". See attached image.
In the Media Page I find ALT texts for these images too.
The View is set to "No cache" and I have changed sorting a couple of times - and Saved it. I've even deleted "Content selection" and tried again but it doesn't work.
It's just weird because the view above this view shows ALT texts.
Will you take another look at it, please?
Best regards
Kristen
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Those images are all new, right?
They weren't in the backup copy I took the other day.
Anything I should know about how they were added? It seems a bit of a coincidence.
Hello Nigel.
I wish it were so that they were new - but they are old. The images were uploaded back in 2022 (may 26th) when I started converting the site from this Joomla site: hidden link
So that page is about 1 year old.
I can also see that the page hidden link is published on May 26, 2022.
Since I wrote to you I have tried to erase the view and build it again - with same result.
When I click on the first image in the view at the backend and look through inspect I can see the ALT text but when I look at the image from the frontend ALT text is empty. Look at attached image please.
I would mean that the problem is in this View on the frontend?
Best regards
Kristen
Hello again.
It just hit me that this maybe the only page with 2 views on it. Could that be the problem?
The problem is on the 2nd view while the first view shows correctly.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
No, it doesn't seem to be that, I just tried on my local copy of your site adding the View on its own to a test page, with the same result. (I could have sworn those images weren't on my local server, but checking again I see that they are.)
So let me look into why this is happening with these images.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Scratch that. Blocks had updated on my local server and overwritten the changes I had made. After re-applying those changes it works fine, both on the test page I added the View alone to, and the industrial-material-handling page (where it is the second View).
Because you marked the ticket as resolved earlier the credentials for your site were automatically deleted.
Let me set another private reply to get them from you again. (I don't need FTP.)
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Huh. That's odd. I'm seeing it work on my local site but not yours because on your server the code that passes the image url through a regular expression returns a different result than on mine.
I guess there must be some server-level configuration relating to that which would explain it.
I'm checking with my colleagues that would know more about that than I do, and I'll get back to you.