Forum Replies Created
-
AuthorPosts
-
December 15, 2020 at 12:33 am in reply to: BUSINESS CONSULTING — Photo Gallery Alt Attribute #170676
Just wanted to circle around about this. I’ve done some research and seen that some people intentionally have the alt text pull the title. Perhaps it’s new information that the ADA compliance software flags it as redundant then?
I found a couple of sources that say this is the code to pull up the alt text from the media library:
// retrieve alt (which is stored as metadata to a post) $alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
or this…
<?php $alt_text = get_post_meta($img_id , '_wp_attachment_image_alt', true); ?> <h1 class="entry-title"><?php echo $alt_text; ?></h1>
Perhaps, I’ll have to just start experimenting (after backing up my site, of course), but since y’all are the experts, I’d love to see if you have insight on how to recode the Photo Gallery so the alt text is the alt text from the media library, NOT the title again.
Thank you!
CasaraDecember 13, 2020 at 11:33 pm in reply to: Make-Up Ele / Elementor –> EDIT THE MENU BUT KEEP THE CSS #170534Thank you! Once I set the screen options to include that feature, I was able to spot it and make the change. Thanks!
Casara
Do you just mean the URL for the page of the website that has the photo gallery?
Or is there some URL I can/should pull that would be specific to only the photo gallery?
Assuming it’s the former, there are two pages that utilize the photo gallery.
The page linked in the very first post on this thread is the one that has three category-specific photo galleries (under OUR CLIENTS)! (I’d relink it again, but this post didn’t go through when I linked it and I understand that sometimes too many URLs is the cause of that).
This page has one category-specific photo gallery: https://www.ramolawpc.com/refresh/financing-legal/I did some review in the theme files myself and within sktframe, in the corefunctions.php, I see this code, starting line 808:
$pfStr .= '<li data-id="id-'.$j.'" data-type="cat-item-'.implode(' ', $slugAr).'" class="portfolio-item2"> <a class="image-zoom" href="'.( ($videoUrl) ? $videoUrl : $imgSrc[0] ).'" rel="prettyPhoto[gallery]" title="'.get_the_title().'"><div><span class="image-block"><img src="'.$imgSrc[0].'" alt="'.get_the_title().'" title="'.get_the_title().'"/></span><h3 class="gallerytitle">'.get_the_title().'</h3></div></a></li>';
It seems to me that
alt="'.get_the_title().'"
might be the exact cause of my problem!
I would love it if the alt pulled from the ALT field in the media library INSTEAD of the title.
Do you know what code I would replace “‘.get_the_title().'” with to have it pull up the alt text instead?
Thank you!
CasaraIt looks like the “code” tool ended up cutting off the text, so recopying the error here:
An active PHP session was detected | Performance
A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.December 3, 2020 at 11:46 pm in reply to: Make-Up Ele / Elementor –> EDIT THE MENU BUT KEEP THE CSS #1700933/3
And if I try a whole new menu, I lose the red button altogether:
https://cynthialeaclark.com/PsyD/PhD/MHt/actress/writer/wp-content/uploads/2020/11/no-red-button-at-all.jpeg
So how do I keep the big red button and put it on a different menu item? I can’t merely edit the link, so what else can I do?
December 3, 2020 at 11:42 pm in reply to: Make-Up Ele / Elementor –> EDIT THE MENU BUT KEEP THE CSS #1700922/3
If I try and create a new menu item, I don’t see how I get it to adopt the css of the big red button. I was hoping the css applied to whatever menu item was at the far right… but no.
If I put a menu item to the right, it just looks like this:
https://cynthialeaclark.com/PsyD/PhD/MHt/actress/writer/wp-content/uploads/2020/11/new-menu-items.jpeg
December 3, 2020 at 11:40 pm in reply to: Make-Up Ele / Elementor –> EDIT THE MENU BUT KEEP THE CSS #170091RESPONSE SPLIT INTO THREE POSTS
1/3
Here’s a screencap of that window (Appearance >> Menu).
https://cynthialeaclark.com/PsyD/PhD/MHt/actress/writer/wp-content/uploads/2020/11/menu-interface.jpeg
The menu item is TIED to the page. It’s not like a ‘custom link’ menu item, where I COULD change the link myself… See, there’s no option to change the link. Just the option to click the “Original” page… And view the page it’s tied to…
This post has a different problem actually.
The problem here is that any time I utilize the Photo Gallery, the alt text is being pulled/generated from the title (I think) and creating redundant information.
You can see in this picture here: https://www.ramolawpc.com/refresh/new/wp-content/uploads/2020/12/beverly-luff-lin-alt-text.jpeg
…That I did manually modify the alt text attached to the image in the photo gallery. I chose wording that would not be flagged as redundant.
Yet, the code (copied in my reply above) clearly shows a different alt text, one that is an exact match to the title text. So the Photo Gallery ignores/overrides what I entered and seemingly auto-generates its own alt text based on the exact text of the title.
This ONLY happens in the photo gallery. And I’d love it to not happen.
(In that other post, there’s no alt text being generated at all. So, very different.)
Thank you!
December 3, 2020 at 8:29 am in reply to: BUSINESS CONSULTING — Alt Text for Images / SKT Builder #170066Do you mean through the media library?
I did manually add alt text to every image in the media library, yet, when I view source code on the page, no alt text appears in the a href tags.
I imagine that if I was able to edit the code directly (if that’s what you meant by manually) then yes, the alt text would appear… but I’d need to figure out what pages specifically to edit to manage that.
November 28, 2020 at 2:14 am in reply to: BUSINESS CONSULTING — Alt Text for Images / SKT Builder #169814Thank you for the suggestion. I am looking into it. Though I’m concerned about the auto-generation of alt attributes (since duplicate information flags the ADA compliance check as much as missing information). [I just posted a new topic that concerns this…]
I guess there’s no way to just go into file manager and add the code manually?
Thank you for trying.
Casara
November 24, 2020 at 8:25 pm in reply to: BUSINESS CONSULTING — Alt Text for Images / SKT Builder #169661Okay, thank you.
I would be happy to try to add the alt descriptions manually through the code code. I would just need to know where to look in the files to be able to do so. Is it possible to let me know the file path if I’m in the host’s file manager or the ftp files?
Thank you,
CasaraNovember 23, 2020 at 8:33 pm in reply to: Make-Up Ele / Elementor –> Can’t change color on one feature #169585Found it, thank you!
Thank you!
November 18, 2020 at 4:19 am in reply to: BUSIENSS CONSULTING / SKT THEME BUILDER — banner question #169266Awesome!
Yes, exactly! Thank you!!
Perfect! Thank you!
-
AuthorPosts