Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #968487

    Hi, can i somhow disable, that the description of an image shows up on mouse hover, but still remains when it opens in a lightbox?
    I already tried this code in my child theme functions php:

    function remove_title_attr(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘#wrap_all a’).removeAttr(‘title’);
    jQuery(‘#wrap_all img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘remove_title_attr’);

    but the the whole description is removed and not shown anymore in the lightbox.
    So what i want is:
    mouse hover: no description in the tooltip
    Image opend in the lightbox: description underneath

    ist this possible?
    thank you in advance
    Katharina

    #970229

    Hey KaJoHa,

    Please provide a link to the site/page in question so we can look into this issue further.

    Best regards,
    Jordan Shannon

    #970291

    See in private content
    Best regards

    #971305

    Hello, any news on this?

    best regards

    Katharina

    #971352

    Hi,

    Try to adjust the code to the following:

    function remove_title_attr(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘#wrap_all .avia-slide-wrap  img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘remove_title_attr’);

    Best regards,
    Jordan Shannon

    #971408

    Hi,
    i’m sorry, that does not work eather. This code has no effect at all.
    I searched through the forum and recognized, that a few people had the same problem, but i could not find any solution. Can you give me a hint, how to present images, with a caption that only shows, when i click on the image?
    When i set the gallery to “show title and caption on mouse hover”, the caption is shown all the time on mobile devices, so that the image is hidden.

    thank you
    Katharina

    #971414

    Hi,

    Please provide admin info so I can log in and look into this issue further.

    Best regards,
    Jordan Shannon

    #971563

    See private content
    thank you

    #971922

    Hi,

    The link you provided did not allow me access to the page. Can you look into this?

    Best regards,
    Jordan Shannon

    #972114

    I think in english the text underneath the image is namend “caption” not “description” as i thought.
    Sorry for the wrong link, here the right one

    #972688

    Hi KaJoHa,

    I added the code to your functions.php that works for the slider, do you also want it to work for the masonry?

    Best regards,
    Victoria

    #972695

    Hi,

    yes please, the masonry, and the galerie on bottom of the page – this is even more important than the slider :)

    thank you

    #973333

    Hi KaJoHa,

    Best regards,
    Victoria

    #973361

    The caption in the lightbox should remain, that’s the thing! Removing the title of the images i could do by myself :)
    The question was, if it is possible to disable the CAPTION in the tooltip, because it’s so long, it doesn’t look good. If only the short TITLE of the images appears on mouse hover, that would be ok.

    best regards
    katharina

    #973725

    Hi KaJoHa,

    Then the titles should remain. We cannot disable them, ass this is a default browser feature which we don’t have control over.

    Best regards,
    Victoria

    #974205

    As feared…

    Would be a nice feature to add on one of the next enfold updates. A possibility to add a short text under or netxt to images to describe them, without appearing the whole text in the tooltips…

    thank you
    Katharina

    #974303

    Hi Katharina,

    There is the title and excerpt option in the masonry for blog posts and portfolio items.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #974461

    ok thank you.
    One last question, then the webste can go live :)
    The header background color changes between 768px an 989px width into grey, screen and mobile width are white, as i want it. Can you please give me the code to fix this? I tried

    @media only screen and (max-width: 989px)
    #top #wrap_all .av_header_transparency {
    background-color: #ffffff;}

    but this doesn’t work

    thank you
    Katharina

    #974492

    ok i solved the problem by adding the code to enable a sticky header only mobile devices.
    best regards
    Katharina

    #974871

    Hi Katharina,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.