Viewing 30 results - 121 through 150 (of 2,320 total)
  • Author
    Search Results
  • #1418787

    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.

    #1418785

    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

    #1418745

    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 2 years, 4 months ago by domchocolate.
    #1418739

    Hi,
    Please try the snippet alone, in my test in worked, also note that I assumed that you would wrap it in a function if you are testing it in the functions.php, like this:

    function one_hotspot_only_script() { ?>
      <script>
    (function($) {
     $(window).ready(function() {
               $('.avia-tooltip').hide();	
           $('.av-image-hotspot_inner').on( "click", function(e) {
           	var $this = $(this).parent().find('.avia-tooltip');
    	      $(this).siblings('.avia-tooltip').toggle('slow');
    	      $('.avia-tooltip').not($this).hide();
            });
         });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'one_hotspot_only_script', 99);

    It looks like your script above is hiding the tooltip on click, including the one clicked, my script already hides the ones except the one clicked.

    Best regards,
    Mike

    #1418733

    Thanks, 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

    #1418702

    Hi,
    On your other thread about this I posted this:
    In my test with the hotspot tooltip set to show – always
    this hides all of the tooltips until one is clicked and when the next one is clicked the others are hidden.

    (function($) {
     $(window).ready(function() {
               $('.avia-tooltip').hide();	
           $('.av-image-hotspot_inner').on( "click", function(e) {
           	var $this = $(this).parent().find('.avia-tooltip');
    	      $(this).siblings('.avia-tooltip').toggle('slow');
    	      $('.avia-tooltip').not($this).hide();
            });
         });
    })(jQuery);

    Best regards,
    Mike

    #1418701

    Hi,
    In my test with the hotspot tooltip set to show – always
    this hides all of the tooltips until one is clicked and when the next one is clicked the others are hidden.

    (function($) {
     $(window).ready(function() {
               $('.avia-tooltip').hide();	
           $('.av-image-hotspot_inner').on( "click", function(e) {
           	var $this = $(this).parent().find('.avia-tooltip');
    	      $(this).siblings('.avia-tooltip').toggle('slow');
    	      $('.avia-tooltip').not($this).hide();
            });
         });
    })(jQuery);

    Best regards,
    Mike

    #1418428

    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

    #1418375
    domchocolate
    Participant

    Hi

    I see there are a lot of threads 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.

    Please see https://owe.brother.design/discover/ for the map. Password below in private content

    Can anyone help?

    • This topic was modified 2 years, 4 months ago by domchocolate.
    • This topic was modified 2 years, 4 months ago by domchocolate.
    #1418373

    Hi

    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 2 years, 4 months ago by domchocolate.
    #1418117

    Hey Frans,

    Thank you for the inquiry.

    This is possible but you have modify one of the script files directly. Please check the following threads for more info.

    // https://kriesi.at/support/topic/close-a-hot-spot-by-clicking-anywhere-away-from-it/#post-1277247
    // https://kriesi.at/support/topic/image-hotspot-tooltips-with-click-again-again-2018/#post-1025216

    Best regards,
    Ismael

    #1418033
    ifranl
    Participant

    Hi Enfold-team,

    I have a question about the ‘Image with hotspots’ element. There are three options for displaying tooltips: on mouseover, always, or ‘show on mouseover, hide on click.’ In the latter case, however, you must click directly on the respective hotspot to close the tooltip. Is it possible to make it so that you can click anywhere on the page to close the tooltip?

    Thanks in advance!

    Ita

    #1415335

    Hi,

    Please try using the first code as the following:

    
    #footer-page .av-social-sharing-box .av-share-link .avia-related-tooltip {
      display: none !important;
    }
    

    The second code should have worked. Please make sure to clear any server-side, plugin-based, and browser caches. If that doesn’t help, please check your custom CSS for errors. You can use this website http://csslint.net/ to do that.

    If the suggestions above don’t work, please create temporary admin logins and share them with us in the private content field.

    Best regards,
    Yigit

    • This reply was modified 2 years, 5 months ago by Yigit.
    #1415289

    Hey sarthakchoudhary,

    Please try the following in Quick CSS under Enfold->General Styling:

    #footer-page .av-social-sharing-box .av-share-link .avia-related-tooltip {
      display: none; 
    }
    
    #footer-page .av-social-sharing-box.av-social-sharing-box-icon .av-share-box ul li a {
      color: red;
    }

    Best regards,
    Rikard

    #1410240

    Hi,
    originally I gave you this css to move the header to the bottom:

    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all #header {
        position: fixed;
        bottom: 0;
    }
    .responsive #top #wrap_all #header #av-burger-menu-ul {
    	padding: 0 !important;
    }
    .avia-search-tooltip {
        top: -85% !important;
    }
    .responsive #top .avia-search-tooltip .avia-arrow {
    	display: none;
    }
    .responsive #top #header_meta {
    	z-index: 1;
    }
    }

    then you asked to move the menu more to the middle to make room for your live chat icon at the bottom right, so I recommend adding this css also:

    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all .container.av-logo-container {
        width: 70%;
        max-width: 70%;
    }
    }

    Best regards,
    Mike

    #1410235

    Hi,
    Please use this css with the other css together:

    
    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all .container.av-logo-container {
        width: 70%;
        max-width: 70%;
    }
    }
    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all #header {
        position: fixed;
        bottom: 0;
    }
    .responsive #top #wrap_all #header #av-burger-menu-ul {
    	padding: 0 !important;
    }
    .avia-search-tooltip {
        top: -85% !important;
    }
    .responsive #top .avia-search-tooltip .avia-arrow {
    	display: none;
    }
    .responsive #top #header_meta {
    	z-index: 1;
    }
    }

    Best regards,
    Mike

    #1410221

    Hey Gagik,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px){
    .responsive #top #wrap_all #header {
        position: fixed;
        bottom: 0;
    }
    .responsive #top #wrap_all #header #av-burger-menu-ul {
    	padding: 0 !important;
    }
    .avia-search-tooltip {
        top: -85% !important;
    }
    .responsive #top .avia-search-tooltip .avia-arrow {
    	display: none;
    }
    .responsive #top #header_meta {
    	z-index: 1;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1410122

    you can remove the titles ( and these are responsible for those browser tooltips ) from those social-bookmark links by this snippet inside your child-theme functions.php:

    function remove_title_attr(){
    ?>
    <script>
    (function($) {
      $(window).on('load', function(){
        $('.social_bookmarks a').removeAttr('title');
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'remove_title_attr');

    Edit: ah i see – you do not belong to the share buttons on top or in the footer – but to those share buttons under the single posts
    so try Nikkos css.

    #1410118

    Hi M-Graphics24,

    Please try to add this CSS code in Enfold > General Styling > Quick CSS:

    #top .av-share-box .avia-related-tooltip.avia-tt {
        display: none !important;
    }

    Best regards,
    Nikko

    #1409207

    Hi Reto,

    No, that code was already in WPCode which I mentioned in the other thread.
    This is the code I moved:

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
          var links = document.querySelectorAll('a, img, *[title]');
          for (var i = 0; i < links.length; i++) {
              var link = links[i];
              link.onmouseover = function() {
                  this.setAttribute("data-tooltip", this.title);
                  this.title = "";
              };
              link.onmouseout = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
              link.onmousedown = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');

    As for the mobile menu items, the font size depends on what is set as the default font size of the site, if that option is untouched then default is 13px which is what is showing on your site, you can change it by adding this CSS code in Enfold > General Styling > Quick CSS:

    #top #av-burger-menu-ul a .avia-menu-text {
        font-size: 18px;
    }

    Just adjust the value as you see fit.

    Best regards,
    Nikko

    #1408607

    Hi Challenge,

    Please try to add this in your child themes functions.php file:

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
          var links = document.querySelectorAll('a, img, *[title]');
          for (var i = 0; i < links.length; i++) {
              var link = links[i];
              link.onmouseover = function() {
                  this.setAttribute("data-tooltip", this.title);
                  this.title = "";
              };
              link.onmouseout = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
              link.onmousedown = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');

    If you don’t have a child theme yet, then go to https://kriesi.at/documentation/enfold/child-theme/ and download the child theme there (instructions on how to use it is also there)
    Hope it helps.

    Best regards,

    Nikko

    • This reply was modified 2 years, 7 months ago by Nikko.
    garysch37
    Participant

    Dear Support Team:

    As part of my responsive images work, I am trying to replace a banner-like image on my home page, that spans the entire browser window width, with a smaller image on smaller windows/screens. I have an Image inside a Color Section at the top of the home page (under the header) that I inserted from my Media Library (that includes the alt & title text). Initially I tried with CSS (couldn’t get it to include alt & title text on the images), and now with Javascript (can’t get it to work at all).

    I’ve tried specifically in (i) Firefox in Windows 7, (ii) Safari, Firefox, & Chrome on a Mac desktop, and (iii) Safari on an iPhone: the smaller banner does not load (and the larger banner displays only because it’s in the Color Section).

    So, as I wrote, initially I tried with CSS:

    @media only screen and (min-width:965px) {
        .homeBannerIMG {
            content: url(https://...banner1.jpg);
        }
        .homeBannerIMG::before { /* For Firefox issues */
            content: url(https://...banner1.jpg);
        }
    }
    
    @media only screen and (max-width:964px) {
        .homeBannerIMG {
            content: url(https://...banner2.jpg); /* Concatenating '/ "test alt"' to the end doesn't work */
        }
        .homeBannerIMG::before{
            content: url(https://...banner2.jpg);
        }
            /* Note: https://developer.mozilla.org/en-US/docs/Web/CSS/content says this works:
                content: url("http://www.example.com/test.png") / "This is the alt text";
            BUT IT DOESN'T FOR ME!. Plus I want the image Title as well for the hover tooltip. */

    But I wasn’t able to maintain my alt & title text on the image. So I switched to Javascript (in my child functions.php file), first trying:

    function displayHomeBanner() {
        if (window.matchMedia("(min-width: 965px)").matches) {
            document.getElementById("homeBannerIMG").src="https://...banner1.jpg";
        } else {
            document.getElementById("homeBannerIMG").src="https://...banner2.jpg";
        }
    }

    But that didn’t work: when I made my browser window below 965px wide, banner2 was not swapped in; it stayed as banner1. Then I tried:

    document.getElementById("homeBannerIMG").getElementsByTagName('img')[0].src="https://...banner2.jpg";

    But that didn’t work. Then I tried:

    document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner2.jpg";

    Still no luck. I just can’t get banner2 to display.

    Note that my full CURRENT code in my child function.php file is:

    function windowSizeActions() {
        ?>
        <script>
            window.onresize = actOnWindowSize;
            window.onload = actOnWindowSize;
            
            function actOnWindowSize() {
                
                function displayWindowSize() {
                    myWidth = window.innerWidth;
                    myHeight = window.innerHeight;
                    document.getElementById("dimensions").innerHTML = " >>> " + myWidth + " x " + myHeight;
                }
            
                function displayHomeBanner() {
                    if (window.matchMedia("(min-width: 965px)").matches) {
                        /*document.getElementById("homeBannerIMG").src="https://...banner1.jpg";*/
                        document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner1.jpg";
                    } else {
                        /*document.getElementById("homeBannerIMG").src="https://...banner2.jpg";*/
                        /*document.getElementById("homeBannerIMG").getElementsByTagName('img')[0].src="https://...banner2.jpg";*/ /* Based on https://kriesi.at/support/topic/using-javascript-to-set-image-src-using-developer-id/: document.getElementById(‘work_image’).getElementsByTagName(‘img’)[0].src = work_image; */
                        document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner2.jpg";
                    }
                }
                displayWindowSize();
                displayHomeBanner();
            }
            
        </script>
        <?php
    }
    add_action( 'wp_enqueue_scripts', 'windowSizeActions' );

    First of all, as you can see, I’ve commented out my earlier attempts at loading the src, with just my last attempt with getElementsByClassName live.

    Secondly, I have my displayHomeBanner function embedded in the function actOnWindowSize, and that in an overall function windowSizeActions, because I need debug code to display the window size, done by my displayWindowSize function (and another function elsewhere to set up the HTML). That function works: my window size is displayed at the top of my window constantly, and changes as I change the browser window size. So this also ensures that things are working, except displayHomeBanner is not working.

    Also note that I have tried my code outside of WordPress/Enfold/Aria, using any w3schools.com‘s page’s Try it Yourself button:

    <!DOCTYPE html>
    <html>
    <body>
    
    <div>
      <img id="homeBannerIMG" src="https://...banner1.jpg" alt="test alt" title="test title">
    </div>
    
    <script>
      window.onresize = actOnWindowSize;
      window.onload = actOnWindowSize;
            
      function actOnWindowSize() {
                
        function displayWindowSize() { /* This of course won't work here, but it's irrevelent. */
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
          document.getElementById("dimensions").innerHTML = " >>> " + myWidth + " x " + myHeight;
        }
            
        function displayHomeBanner() {
          if (window.matchMedia("(min-width: 965px)").matches) {
            document.getElementById("homeBannerIMG").src="https://...banner1.jpg";
          } else {
            document.getElementById("homeBannerIMG").src="https://...banner2.jpg";
          }
        }
                
        displayHomeBanner();
      }
    </script>
    
    </body>
    </html>

    and

    <!DOCTYPE html>
    <html>
    <body>
    
    <div>
      <img class="homeBannerIMG" src="https://...banner1.jpg" alt="test alt" title="test title">
    </div>
    
    <script>
      window.onresize = actOnWindowSize;
      window.onload = actOnWindowSize;
            
      function actOnWindowSize() {
                
        function displayWindowSize() { /* This of course won't work here, but it's irrevelent. */
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
          document.getElementById("dimensions").innerHTML = " >>> " + myWidth + " x " + myHeight;
        }
            
        function displayHomeBanner() {
          if (window.matchMedia("(min-width: 965px)").matches) {
            document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner1.jpg";
          } else {
            document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner2.jpg";
          }
        }
                
        displayHomeBanner();
      }
            
    </script>
    
    </body>
    </html>

    In both, my displayHomeBanner function works: my banner2 displays on smaller window sizes (and the title tooltip works)!

    Can you help me get it to work in WordPress please.

    Thank you,
    Gary

    • This topic was modified 2 years, 8 months ago by garysch37.
    • This topic was modified 2 years, 8 months ago by garysch37.
    #1407380
    ae2agence44
    Participant

    Hi,
    is it possible to display as soon as the page loads, the search field in the menu? By default, you must click on the magnifying glass logo to display it.
    It is also not present in the code until you click on this logo.
    His class is avia-search-tooltip if that can help.
    Best regards,
    Guillaume

    #1406279

    Hey woogie07,
    Thank you for the link to your site, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .av-image-hotspot .inner_tooltip p {
    	font-size: 13px;
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.
    I css your number 4 hotspot is wrapping the text in a div instead of the “p” tag, so this css won’t change that font size, perhaps you were testing?

    Best regards,
    Mike

    #1406072

    Hey papieren,
    Please see this article: How do I create a link to directions?
    Then add your link to the tooltip field for your marker, for example:

    <a title="Google Map and Clickable Directions" href="
    https://www.google.com/maps/dir/43.0342144,-71.5128832/Boston,+M (Email address hidden if logged out) ,-71.5620741,10z/data=!3m1!4b1!4m10!4m9!1m1!4e1!1m5!1m1!1s0x89e3652d0d3d311b:0x787cbf240162e8a0!2m2!1d-71.0588801!2d42.3600825!3e0" target=blank>For Directions & a detailed Google Map click here</a>

    then when the marker is clicked the tooltip with the link will show:
    Enfold_Support_1953.jpeg

    Best regards,
    Mike

    #1405910

    In reply to: Search question

    Hey!

    Glad to know that you’ve found a solution. In case you require an alternative, please try this code in the functions.php file.

    
    // custom script: disable link when AJAX search is open
    function ava_custom_script_search_disable_links()
    {
        ?>
        <script type="text/javascript">
            (function($) {
                $('a').on('click', function(e) {   
                    var search = $('.avia-search-tooltip');
                    
                    if(search && search.css('display') == 'block') 
                    {
                        e.preventDefault();
                        return;
                    }
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action( 'wp_footer', 'ava_custom_script_search_disable_links', 9999 );
    

    Cheers!
    Ismael

    #1404442

    In reply to: Search question

    Hey Tim,

    Sorry for the late reply.

    The underlying js for the search icon behaviour can be found in enfold\js\avia.js line 69:

    new $.AviaTooltip({ …..

    and line 90:

    new $.AviaAjaxSearch({scope:’#header, .avia_search_element’});

    As far as I see there is no easy way to remove this without hacking core js. If you do this and use minify or merged files you need to minifiy this js file again (or make a copy of unminified and name it avia.min.js

    You could try to rename the class avia-search-tooltip and remove data-avia-search-tooltip on pageload before avia.js is executed.
    Or remove the HTML completly and insert your own icon HTML and bind this to your js (which seems to be the easiest and clean solution for me).

    Hope this helps you.

    Best regards,
    Günter

    #1402854

    Hey waveseven,

    Thank you for the inquiry.

    There is no option for this by default but according to this thread, you can achieve it by modifying the chartjs options. Unfortunately, this is beyond the scope of support.

    // https://stackoverflow.com/questions/72767458/chartjs-show-tooltip-automatically

    Best regards,
    Ismael

    #1401975

    Hi, I have this code to underline my links.

    /*** links subrayados ***/
    .avia_textblock p a, .avia_textblock li a, .avia-tooltip p a {
    text-decoration:underline !important;
    }

    Could you please give me the code to add the text in the accordion container?
    Thanks in advance!
    Arantza

    #1401731

    there are many factors that can influence the TTBF values. Go and test your page on : gtmetrix.com
    you can see on waterfall tab more info on how the influence is for TTBF:
    Hover that first line on Waterfall where / is – a tooltip with more info opens.

Viewing 30 results - 121 through 150 (of 2,320 total)