Forum Replies Created
-
AuthorPosts
-
This is the code that I inserted into the functions.php it caused a critical error on my site:
/**
* add submenu to product pages
*/
function ava_woocommerce_before_main_content() {
if ( is_product() ) {
echo do_shortcode(‘[av_submenu which_menu='' menu='49' position='left' sticky='aviaTBsticky' color='alternate_color' mobile='disabled' mobile_switch='av-switch-768' alb_description='' id='' custom_class='' template_class='' av_uid='av-lnbxc8ss' sc_version='1.0']
[av_submenu_item title='Menu Item 1' button_style='' link='' linktarget='' av_uid='av-fdyw7' sc_version='1.0']
[av_submenu_item title='Menu Item 2' button_style='' link='' linktarget='' av_uid='av-70t2n' sc_version='1.0']‘);
}
}
add_action( ‘woocommerce_before_main_content’, ‘ava_woocommerce_before_main_content’, 10 );Can you please let me know where the issue is? I’m just learning PHP and am not sure where the error is at. Thank you.
Thank you. I have enabled debug mode and I see the shortcode for the sub menu. My question is, where do I put that template hook? In the functions.php or in the single page template for a woocommerce product? I am also confused as to how much of the shortcode to put into the function. In debug mode, this is the shortcode that I see:
[av_submenu which_menu='' menu='49' position='left' sticky='aviaTBsticky' color='alternate_color' mobile='disabled' mobile_switch='av-switch-768' alb_description='' id='' custom_class='' template_class='' av_uid='av-lnbxc8ss' sc_version='1.0']
[av_submenu_item title='Menu Item 1' button_style='' link='' linktarget='' av_uid='av-fdyw7' sc_version='1.0']
[av_submenu_item title='Menu Item 2' button_style='' link='' linktarget='' av_uid='av-70t2n' sc_version='1.0']
[/av_submenu]Should I be grabbing all of that shortcode and adding it to the function?
Thank you for the reply. The section in question is “Our Global Customs Compliance Solutions”. Our fault. I tried adding those two classes back to the section but could not get it to show hide.
Added av-small-hide av-mini-hide to Custom CSS Class and then Lockable Custom CSS Class – still wouldn’t show/hide using the checkboxes.
Thoughts?
All of the categories and tags have items (over 25 in each) so why would they not be listed in the sorting option when they are available? Why do only one or two show up in the others when the first in the order shows all six? Shouldn’t it load the first six in EACH since they exist? I guess I am confused as to why this is the behavior of the element.
Hi Mike, credentials are below in the private content area, thanks!
Sure thing: https://tecexv2dev.wpengine.com/ If you scroll down, the section “Our Global Customs Compliance Solution” should be hidden on mobile. Right now – it is, only because we’ve had to put in CSS to hide it (code is below):
#homepage-element-01 {
display: none !important;
}When we check the box in in Element Visibility to hide on mobile, it was still appearing on mobile devices, even after clearing both the site cache and the server cache.
Ok, I will try that and report back. Thank you!
Thank you. When I do that and add it into the column, it doesn’t give the column a drop shadow, it gives all of the content within the column a drop shadow. I only need the column to have a drop shadow, like this site: https://tecex.com/
Thank you Ismael! When you say manually create a container, can you please be specific?
Hi Mike,
I was finally able to get a copy of the screen reader that my client was using. I tested it on the site and it worked perfectly. So the issue wasn’t with the site at all – it’s with their version of the screen reader. They will be contacting technical support to determine if they need a version update. You can close this thread. Thanks so much for all of your help!
Becky
Hi Mike!
I wanted to give you an update on this issue. We’ve tried every piece of code you’ve recommended with no luck. My lead developer is planning to custom code the menu navigation in the hopes that it will be picked up by the screen reader. I don’t think that this is necessarily and Enfold issue, as we’ve tested the site on other screen readers and it’s being picked up, but an issue with the screen reader being used by the client (JAWS). The technical support team for JAWs was pretty much worthless when I tried reaching out to them.
The menu should be coded by the end of next week, so I’ll report back with the outcome. Again, thanks for all of the help as we troubleshoot this.
Cheers!
Becky
Hi Mike,
Thanks for all of your help with this. I’ll reach out to my client and see about the disabled setting. I’ll also remove the PHP before installing the plugin. Appreciate all of your hard work in helping me to troubleshoot this.
Cheers!
Becky
Hi Mike,
Still no luck with that last piece of PHP code. I tried to call JAWs to talk with their technical support team, but the rep told me to visit https://www.tpgi.com/. This looks like a software tool to manage accessibility. Is there a plugin that can be downloaded to assist with this?
Thanks!
Becky
Thanks Mike! I do have Title Attributes on all menu items. I’ll give this code a shot and let you know. Again, thanks for all of the help with this!
Hi Mike!
No luck with adding that PHP to the site and getting the screen reader to function. Any other ideas?
Thanks so much!
Becky
Hi Mike! Sorry for the delayed response, I was out of town over the weekend. Thanks for sending this information over. I’m going to try adding this PHP and I’ll let you know the outcome. Appreciate all of the help!
Hi Ismael,
It needs to work on the Jaws screen reader as that is what the majority of the visually impaired users will view it on. Forgive my ignorance, but I don’t know what the aria-label is. What I did do yesterday was go through the entire media library and make sure that the alt tag, title, caption and description were all filled out.
Thanks!
Becky
Hello Ismael,
Sorry for the delayed response. This php code did not work to get the screen reader to pick up everything on the pages. From my client,
“The menu list at the top (who we are, how we help, etc.) cannot be reached.Also, the increase don’t, darken background, etc are at the top of the links page for Jaws.
Now he was able to move his mouse over with jaws to reach the top, but it did not allow for him to click underneath each tab for the other subsets (like radio reading, voucher program, etc.)”
Is there something else that we can try to get the screen reader to work on this site?
Thanks!
Thanks Ismael!
Rikard, that was it! Thank you! Didn’t notice I was missing a character in a special heading. Thanks for the help!
That worked, thanks Yigit!!!
Hi Rikard,
Sorry for my delayed response. I need to add CSS that will show the animation on larger screens like you mentioned.
Thanks!
Becky
Yep, that’s it! I was viewing on my larger monitor and when I just pulled it down onto my laptop, I could see the animation. Where would I add piece of CSS? into the .homeheader section?
I’ve tried looking at in Incognito mode, I’ve cleared the cache but I still cannot get the background to animate when I hit refresh. Here is the site address to check. https://wordpress-692037-2388778.cloudwaysapps.com/. Thanks!
It’s still not animating. I’m using a color section with the word “extrusion” as the background of the section. I’m putting the code into Quick CSS in the General Styling section. Should it go somewhere else?
Hello, I tried the code that you gave me, but the animation is not working. I called my color section .homeheader and inserted this code:
.avia-section .homeheader {
animation: anime 60s linear infinite;
}@keyframes anime {
0% {
background-position:0% 50%
}
50% {
background-position:100% 50%
}
100% {
background-position:0% 50%
}
}When I refreshed the page, the background did not animate. https://wordpress-692037-2388778.cloudwaysapps.com/
Thank you! I’ll give this a shot this morning and report back.
-
AuthorPosts