Forum Replies Created
-
AuthorPosts
-
February 5, 2024 at 9:11 pm in reply to: Adding a skip to content id to dynamic post template for accessibility #1433048
Don’t worry – I found a solution.
Yep, it’s working on both sites – thanks so much. This is an excellent fix!
OK – just to be clear – I can just copy and paste this into my functions on my live site. Is that right?
Thanks again
Dominic
Hi Mike
So the code back is now just a javascript snippet and I can delete all the code from the functions.php, is that right? I need to duplicate this on my live server.
Dominic
- This reply was modified 9 months, 2 weeks ago by domchocolate.
Sorry that username and password are to get to the frontend only further details below in private content. Thanks again.
OK, I’ve got the code so it no longer shows an error. And I can see the javascript in the page source.
But it’s not having the desired effect on my site. Any ideas?
There’s an error around line 1416 – Uncaught SyntaxError: missing ) after argument list – could it be that?
Username and password below
- This reply was modified 9 months, 2 weeks ago by domchocolate.
Thanks Ishmael
But now I just get an error here instead:An error of type E_COMPILE_ERROR was caused in line 109 of the file /nas/content/live/oxwedev/wp-content/themes/enfold-child/functions.php. Error message: Cannot redeclare tab_though_menu_skipping_sub_menu_items_unless_down_or_up_arrow_keys_are_used() (previously declared in /nas/content/live/oxwedev/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(287) : eval()’d code:2)
Thanks, Mike. Appreciate the hard work.
I’m afraid there’s an error in that code somewhere – when I put it in my dev environment I got a fatal error – “There has been a critical error on this website. Learn more about troubleshooting WordPress.” And –
An error of type E_PARSE was caused in line 108 of the file /nas/content/live/oxwedev/wp-content/themes/enfold-child/functions.php. Error message: syntax error, unexpected token "-", expecting "(" -
Line 108 is:
function tab_though_menu_skipping_sub-menu_items_unless_down_or_up_arrow_keys_are_used() { ?>
And when I try and add it using WP Code snippets I get the same error.
November 13, 2023 at 11:12 am in reply to: Adding a modified helper-privacy.php to child theme #1425425Or is there a way to change the language that’s inserted when this short code is used – essentially I want this – see “Council privacy policy”
av_privacy_class::$default_privacy_message = apply_filters( 'avf_default_privacy_message', __( 'I agree to the terms and conditions laid out in the [av_privacy_link]Privacy Policy[/av_privacy_link]', 'avia_framework' ) ); ' to read
av_privacy_class::$default_privacy_message = apply_filters( ‘avf_default_privacy_message’, __( ‘I agree to the terms and conditions laid out in the [av_privacy_link]Council privacy policy[/av_privacy_link]‘, ‘avia_framework’ ) );
‘November 13, 2023 at 11:05 am in reply to: Adding a modified helper-privacy.php to child theme #1425418Thanks Mike – do you know if it can be done with a translate plug-in? Or do the only work with.po/.mo
Maybe this…https://en-gb.wordpress.org/plugins/say-what/
Dominic
- This reply was modified 1 year ago by domchocolate.
October 29, 2023 at 7:10 pm in reply to: Accessibility issue with image gallery/masonry image gallery #1424050Hi Mike
I think the error is suggesting the opposite. The masonry gallery is currently divs and the error suggests it should be
- .
Does that help?
TIA
DominicOctober 22, 2023 at 5:32 pm in reply to: Accessibility issue with image gallery/masonry image gallery #1423327Hi all – any thoughts?
Hi anyone have any ideas?
Sorted it – did this:
<main class='content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper( array( 'context' => 'content', 'post_type' => 'post' ) );?>> <div class="archive-header" style="text-align: center;"><h1><?php post_type_archive_title(); ?><?php single_term_title(); ?></h1></div>
September 12, 2023 at 11:42 am in reply to: Clickable hotspots rather than rollover in 2023 #1418874Lovely work, Mike – really happy with that.
Thanks again for your hard work.
Dominic
Actually on the z-index I may need some help in inserting it into our existing code. Thanks
Dominic
Hi Mike
When I say wrapping I mean the text auto-wraps as the tooltip ‘grows’ – I’ve got quite a bit of content in my tooltips and I think this looks a bit hokey. Check out https://oxwedev.wpengine.com/this-is-a-map-test/ to see this happening. If we could fix that then the drawer effect would bother me less. Otherwise, maybe a simple fade would suffice.
I’ll try the z-index now.
Dominic
Plus, is there a way to get the tooltip to sit above the hotspots? At the moment, a higher numbers hotspot appears on top of the activated tooltip.
Yeah, it’s pretty good. I’m not sure I like the way the tooltip draws from top left to bottom right on activation – I don’t like the way the text wraps. Is there a way to tweak that?
Thanks again, Mike
Dominic
Hi Mike – fixed it. I had an old bit of Javascript hiding in an enqueued file that was trying to do the same thing and broke it!
- This reply was modified 1 year, 2 months ago by domchocolate.
Hi Mike thought I’d fixed it but I haven’t… ignore this message/edit
- This reply was modified 1 year, 2 months ago by domchocolate.
Hi Mike thought I’d fixed it but I haven’t… ignore this message/edit
- This reply was modified 1 year, 2 months ago by domchocolate.
Hi Mike
I have removed the code that was needed for the section tabs, and I am just running your code (I tried it as a JS snippet, as a PHP snippet and PHP in functions.php). The code is doing something because the tooltips are appearing and not showing them all at once. But they are disappearing as quickly as they appear.I have set up an instance on a dev server here.
https://oxwedev.wpengine.com/this-is-a-map-test/
Any ideas? Thanks again for your hard work on this.
Dominic
- This reply was modified 1 year, 2 months ago by domchocolate.
September 11, 2023 at 12:03 pm in reply to: Clickable hotspots rather than rollover in 2023 #1418733Thanks, Mike
Close, but no cigar for me yet. If you check this page: https://oxwedev.wpengine.com/this-is-a-map-test/ – password below – you’ll see the hotspots appear and disappear quickly. I think this is because the code is clashing with:
// custom script: hide the tooltip on the tab click function ava_custom_script_hide_tooltip() { ?> <script type="text/javascript"> (function($) { $(document).ready(function() { $('.av-tab-section-tab-title-container').on('click', function(event) { $('.avia-tooltip').css({ opacity: 0, display: 'none' }); }); }); })(jQuery); </script> <?php } add_action( 'wp_footer', 'ava_custom_script_hide_tooltip', 9999 );
This code hides any visible tooltips when we click on a section tab – very important.
The clash is causing:
1. The clickable hotspots to open and close really quickly, and;
2. The clickable hotspots to stop working at all if you navigate away from the tab and back again.Is there a way to tweak this/these code/s so that they don’t clash?
I really appreciate any help you can provide.
Dominic
Anyone? Any thoughts?
Hi, further to above – I got it HALF working with the following code and setting the tooltip as – always
//Clickable hotspots on ALWAYS (function( $ ) { $(window).ready(function() { jQuery('.avia-tooltip').hide(); $('.av-image-hotspot_inner').on( "click", function(e) { jQuery(this).siblings('.avia-tooltip').toggle('slow'); }); }); })(jQuery);
However, the tooltip doesn’t close/hide when I click on another hotspot.
See example: https://oxwedev.wpengine.com/this-is-a-map-test/
Username and password below.Thanks in advance
Dominic
September 7, 2023 at 4:10 pm in reply to: Image hotspot Tooltips with click – again – again 2018 #1418373Hi
I see there are a lot of threads kike this one around creating clickable hotspots rather than rollover ones. However, none do exactly what I need them to do or work in more recent versions of Enfold. So I wonder if anyone can help.
This is how I’d like it to work:
1 A Hotspot activates a tooltip onclick (rather than rollover) and stays activated (to enable users to click for more information on that tooltip)
2 The tooltip closes when the user clicks on the corresponding hotspot OR selects a new hotspot by clicking on it.I appreciate that Show on mouse hover – hide on click does something similar but it is confusing users in testing.
Can anyone help?
- This reply was modified 1 year, 2 months ago by domchocolate.
Hi, thinking about this further – would it fix it if, for example:
<a href="#5" class="goto-slide" role="link" style="transition: none 0s ease 0s;">5</a>
was changed to
<a href="#5" class="goto-slide" role="button" style="transition: none 0s ease 0s;">5</a>
and/or adding
<a href="#5" class="goto-slide" role="button" aria-hidden="true" style="transition: none 0s ease 0s;">5</a>
I also found this:
Accessibility of non-semantic controls: When a series of nested <div>s along with CSS/JavaScript is used to create a complex UI-feature, or a native control is greatly enhanced/changed via JavaScript, accessibility can suffer — screen reader users will find it difficult to work out what the feature does if there are no semantics or other clues. In these situations, ARIA can help to provide what’s missing with a combination of roles like button, listbox, or tablist, and properties like aria-required or aria-posinset to provide further clues as to functionality.
- This reply was modified 1 year, 3 months ago by domchocolate.
Thanks Yigit
That worked.
Dominic
Thanks, Yigit. I thought it might be.
-
AuthorPosts