Tagged: ,

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1366409

    Hello,

    The titles of images opened in the lightbox via click on the button are not displayed. Please see the provided link and click on any button.

    Thank you,
    Marina

    #1366494

    Hey Marina,

    Thank you for the inquiry.

    The images in the lightbox container are displayed correctly when we checked the site. Did you figure out the issue? If not, please provide a screenshot using imgur, savvyify or dropbox. Thanks.

    Best regards,
    Ismael

    #1366800

    Hello,

    Please see the link: mfp-title is empty.

    Best regards,
    Marina

    #1366851

    Hi,

    Thank you for the clarification.

    Please edit the buttons in the Button Row element and in the Styling > Appearance panel, input a value in the Button Title Attribute field. The value in this field will be used as the lightbox title.

    Best regards,
    Ismael

    #1366907

    Hi Ismael,

    Did not help, still nothing, the title is empty.

    Best regards,
    Marina

    #1367157

    Hi,
    Thanks for the link to your site, when I check your buttons have an empty title attribute:
    2022-09-30_005.jpg
    so please ensure that you have added a title to your button:
    2022-09-30_006.jpg
    if you did then check if you have a custom script or plugin removing the titles from your site.
    I have linked to my test page below and the title added to the button will show as the lightbox title:
    2022-09-30_007.jpg
    If this doesn’t help please include admin login in the Private Content area so we can investigate.

    Best regards,
    Mike

    #1367162

    Hello Mike,

    Maybe the problem is that I have fullwidth buttons, since I specified the Button Title Attribute value for both buttons. I have some code removing titles in functions.php (see below), however, if I remove the code and clean browser’s cache, the titles in the lightbox do not appear. I provide you with the credentials for the site.

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

    Thank you,
    Marina

    #1367198

    Hi,
    Thank you for the login, indeed I was testing with the wrong element, so I update my test page and compared the difference between the button grid and the fullwidth button and found that the buttons_fullwidth.php was missing the link title attribute {$title_attr} on line 645:
    2022-10-01_002.jpg
    I added this to your parent theme and now the title is showing.
    But there was one issue on your site, when the button is clicked and the lightbox shows the image the title is not shown, but if you use the arrow to see the next image then the title is shown. I found that this was due to your custom script so I adjusted it to exclude the buttons, please test your buttons and the link on your site that the script should remove the titles from to ensure everything works correctly.
    I will submit this to the Dev Team for their review and would expect this to be added to the next update.

    Best regards,
    Mike

    #1367232

    Hello Mike,

    Thank you very much. I tested, everything seems to be ok. One more thing though, now on mouse hover over these buttons the titles are displayed duplicating the information. Is it possible to hide these but still have the titles in the lightbox?

    Best regards,
    Marina

    #1367236

    Hi,
    I adjusted your script again and it seems to be working as you wish, please clear your browser cache and check.

    Best regards,
    Mike

    #1367238

    Hi Mike,

    Now everything is perfect :), thank you very much. May I ask about another small issue on the same page, or should I better open a new ticket?

    Best regards,
    Marina

    #1367240

    Hi,
    Glad to hear, what is your next question?

    Best regards,
    Mike

    #1367241

    :)

    A small problem with non-active tabs (their bottom borders) after my customizations of tabs background colors. The problem is: there is no border. It disappeared after I added .tab { background-color: #f7f7f7 !important; } around the end of my long Quick CSS. Could you please help to get the border back?

    Thank you,
    Marina

    #1367245

    Hi,
    That was a little trickier than it might seem, but I sorted it out with this css that I added for you, please clear your browser cache and check.

    .js_active .tab:not(.active_tab) {
        border-bottom: solid 1px #E0E0E0;
    }
    .js_active .tab.active_tab {
        border-bottom: solid 1px #fcfcfc !important; 
    }

    Best regards,
    Mike

    #1367349

    Hello Mike,

    Yes, I tried to restore the border myself, but did not succeed. Your code works perfectly, I just adjusted it a bit not to have the double border on mobile:

    .js_active .tab:not(.active_tab, <strong>.fullsize-tab</strong>) {
        border-bottom: solid 1px #E0E0E0;
    }
    .js_active .tab.active_tab {
        border-bottom: solid 1px #fcfcfc !important; 
    }

    Thank you very much for all your help, you can close the ticket.

    With best regards,
    Marina

    #1367355

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Titles of images opened in the lightbox via button are not displayed’ is closed to new replies.