Forum Replies Created

Viewing 30 posts - 1 through 30 (of 152 total)
  • Author
    Posts
  • in reply to: Show caption in iframe lightbox #1484762

    Hi Ismael,

    I tried to add the gallery function like that:

    (function($){
    $(document).ready(function() {
    $('.test').magnificPopup({
      type: 'iframe',
      gallery: { enabled: true },
      iframe: {
         markup: '<div class="mfp-iframe-scaler">'+
                    '<div class="mfp-close"></div>'+
                    '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
                    '<div class="mfp-title">Some caption</div>'+
                  '</div>'
      },
      callbacks: {
        markupParse: function(template, values, item) {
         values.title = item.el.attr('title');
        }
      }
      
    });
    });
    })(jQuery);

    And it works! Images and videos mixed in a lightbox gallery as iframes with titles below each entry. Only the arrows look different to the usual ones from the lightbox, but I can sort that out with CSS I think.

    Thank you for helping me out!

    All the best,
    Daniel

    Hi Günter,

    I replaced the old code with yours on multiple installs and everything works as expected. The editors can use the ALB and load templates from the dropdown again. Thanks a lot!

    Kind regards,
    Daniel

    in reply to: Show caption in iframe lightbox #1484685

    Maybe it is sufficient to add:

    gallery: { enabled: true }

    Could that be possible?

    • This reply was modified 2 weeks, 5 days ago by spooniverse.
    in reply to: Show caption in iframe lightbox #1484684

    Hi Ismael,

    thanks for your link. This works: https://codepen.io/dimsemenov/pen/kXGxJv

    But: The arrows ar missing again. We are one big step further and have JPG and MP4 with captions and opening in lightboxes. How can I have them grouped with arrows to go from one to the next?

      <div class="isotope">
        <a class="test" title="Test title1" href="xxx.mp4?iframe=true">Vid1</a>
        <a class="test" title="Test title2" href="xxx.mp4?iframe=true">Vid2</a>
        <a class="test" title="Test title3" href="xxx.jpg?iframe=true">Img1</a>
      </div>

    Script:

    (function($){
    $(document).ready(function() {
    $('.test').magnificPopup({
      type: 'iframe',
      
      iframe: {
         markup: '<div class="mfp-iframe-scaler">'+
                    '<div class="mfp-close"></div>'+
                    '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
                    '<div class="mfp-title">Some caption</div>'+
                  '</div>'
      },
      callbacks: {
        markupParse: function(template, values, item) {
         values.title = item.el.attr('title');
        }
      }
      
    });
    });
    })(jQuery);

    Do you have an idea how to merge the lightboxes as you have done with your script before?

    Kind regards,
    Daniel

    in reply to: Show caption in iframe lightbox #1484673

    Hi Ismael,

    it still is not working as expected. Now the arrows are back, I can go from one slide to the other, even with mixed media (image / video). But it is missing the title for videos. Can I somehow show titles for images and videos?

    And: It would be fine for me to add ?iframe=true to all linked media, in fact it would be easier this way. But I am finde with whatever fits your solution.

    Quick note: You specified the title twice in you HTML.

    Best regards,
    Daniel

    in reply to: Show caption in iframe lightbox #1484577

    Hi Ismael,

    this works! But: For images only. I use the iframe=true for mixing images and videos. Should have made that clearer:

    <div class="isotope">
      <a alt="CUSTOM ALT HERE" title="CUSTOM TITLE HERE" class="inline_popup" href="xxx.img?iframe=true"> 01 </a>
      <a alt="CUSTOM ALT HERE" title="CUSTOM TITLE HERE" class="inline_popup" href="xxx.mp4?iframe=true"> 02 </a>
    </div>

    So I am back to your script because it works for images and videos but breaks the possibility to click from 01 to 02 – any idea on how to keep the arrows linking to the next frame working?

    Best regards,
    Daniel

    Hi Ismael,

    I do have the problem on multiple installs right now. The editor can “edit_posts” and I still get the error …

    You find the login details in private.

    The settings are:
    • Deactivated ALB for everyone exept admin
    • Code in functions.php to allow it for admin AND editor
    • Without “remove_filter” because change in 2021 (see above)
    • Both have “edit_posts” capability
    • Error occurs only in Enfold 7

    Hope you find a solution. Thanks in advance!

    Best regards,
    Daniel

    in reply to: Show caption in iframe lightbox #1484531

    Nice! Thank you Ismael, now I can load the title. But: The connection to the next images is broken! I have more pictures, connected as lightbox gallery like that:

    <div class="isotope">
      <a alt="CUSTOM ALT HERE" title="CUSTOM TITLE HERE" class="inline_popup" href="xxx.img??iframe=true"> 01 </a>
      <a alt="CUSTOM ALT HERE" title="CUSTOM TITLE HERE" class="inline_popup" href="xxx.img??iframe=true"> 02 </a>
    </div>

    With your code only the first image loads in a lightbox. The arrows to navigate from 01 to 02 are missing.

    Can you fix that?

    All the best,
    Daniel

    in reply to: SVG icons missing #1484488

    Hi @Ismael,

    your bit of code mentioned in #1483430 is super useful:

    $logo_url = avia_get_option( 'logo' );

    Is there a similar snippet to load the logo trom the transpareny settings? Anything like:

    $logo_url = avia_get_option( 'TRANSPARENT_LOGO' );

    Can you help me?

    All the best,
    Daniel

    Hi Ismael,

    see your post #1276219. I asked in 2021 because the line remove_filter destroys the code and again everyone is able to use ALB. You suggested to delete the first line and in this way it worked for years. And it still does, but right now the users besides administrators can’t access the ALB templates from the dropdown.

    And they even get the error message when I add the remove_filter line to the code. It is like that:

    With remove_filter: Everyone can use ALB exept templates
    Without remove_filter: Only the user roles from the arry can use ALB exept templates

    Seems as if there are certain rights necessary to use the templates and those rights aren’t granted with the function. What do you think?

    Cheers,
    Daniel

    in reply to: Show caption in iframe lightbox #1484484

    Hi Ismael,

    nice idea! I tried it (see code) but it sadly didn’t work. The iframe lightbox has no title container at all. If I inspect the lightbox of a gallery I see a div for the title. There is no such div with an iframe lightbox …

    Can I somehow get the iframe lightbox to show it?

    Best regards,
    Daniel

    in reply to: Barrierefreiheitsstärkungsgesetz (BFSG) #1484445

    Hi Kriesi,

    das ist doch gut zu wissen. Danke für die Info in Bezug auf euer Vorgehen. So können wir als User entsprechend planen.

    Eine Empfehlung eurerseits im Backend oder Changelog in Bezug auf ein Plugin, welches ihr empfehlt, wäre super. Dann wissen wir als Endanwender, dass damit eine gute Kompatibilität gegeben ist. Danke!

    Und danke auch für eure Arbeit, am Theme und hier im Forum.

    Viele Grüße,
    Daniel

    Hey @Ismael and @Guenni007,

    I found this old thread of yours and I am wondering if I could even load a title for a lightbox if the lightbox contains an image from the media library?!

    Example: I have a link in a text like https://homepage.de/wp-content/uploads/image.jpg?iframe=true to show the image in a lightbox. Everything works as expected, the lightbox opens the image from the library in an iframe. But no title, description or whatsoever.

    Any idea on how to get the title displayed with an ?iframe=true link?

    All the best,
    Daniel

    in reply to: SVG icons missing #1483514

    But could I somehow disable the SVG icons? I have some pages with a lot of icons and different colors for them set in CSS as color:. Now I would have to change that to stroke: or am I wrong?

    Best regards,
    Daniel

    in reply to: SVG icons missing #1483513

    Nice! That is the final code I am using to load only the logo as SVG-file and use SVG paths for the rest:

    function avf_no_inline_svg_mod($attachment_id, $url) {
        $logo_url = avia_get_option( 'logo' );
    
        if ($url && $url == $logo_url) {
            return true;
        }
    
        return false;
    }
    add_filter('avf_no_inline_svg', 'avf_no_inline_svg_mod', 10, 2);
    in reply to: SVG icons missing #1483390

    Nice! Pretty shure I tried this and it didn’t work but never mind. Glad about the code. Thanks! You can delete the linked image.

    A last question about the hook: Can I somehow load the logo url from the theme settings? In the Enfold theme options I link to the logo file and if I could refer to the given path there I would not have to change it in the code in the functions.php. Like:

    $logo_url = URL FROM THEME OPTIONS;

    Any chance to do so?

    All the best,
    Daniel

    in reply to: SVG icons missing #1483295

    Sorry, I tried different itterations but none of them loads the logo as file. I don’t want the logo to be loaded as path. How can I achieve that?

    in reply to: SVG icons missing #1482133

    Hi Ismael,

    that is the right direction. How can I write the if part if the logo is not in the library? Because I don’t have a ID for the logo …

    Any idea?

    All the best,
    Daniel

    in reply to: SVG icons missing #1481958

    Here I got the code from Rikard: Post #1327639

    Is there a hook to tie it only to the logo?

    in reply to: SVG icons missing #1481937

    Hi Ismael,

    that’s quite obvious in the end. I could have come across that myself. Sorry! This code was shared here in the forum when you started to embed the logo as SVG directly.

    I want the logo as SVG not to be used in paths. The file should be loaded. Therefore I have the code in all my pages.

    Can I adapt it somehow? So that it only affects the logo, not the entire homepage? Because otherwise I have the problem with the icons and they can be used as a path because of me.

    Is there a filter for the code so that (only) the logo is integrated as a file (SVG) and not as a path?

    I look forward to your support. Thanks a lot!

    Best regards,
    Daniel

    in reply to: SVG icons missing #1481822

    Hi Ismael,

    sorry for delay. Did quite some testing. I have the problem with the missing icons on all Enfold installations I am managing and where I did the update. I rolled it back and afterwards tried it with some fresh installations in different browsers, cleared cache and so on. I can’t deactivate the svg option and can’t see icons …

    That is the case for preselected icons (like the scroll up arrow for example) and in the pagebuilder. If I select an icon element the first section “SVG Iconset: Entypo Fontello (Default)” is empty and shows nothing.

    You find some credentials in private to a new project with the error in full display. Hope you can help me!

    Best regards,
    Daniel

    in reply to: SVG icons missing #1481125

    Hi Ismael,

    I am sorry but no change at all. Tried all of the options in the performance settings. Emptied browser cache, opened in a private window. The Icons are even missing on two fresh installations …

    Any ideas on what to do?

    All the best,
    Daniel

    in reply to: Header visibility and transparency #1481087

    Found a post you put into an other thread and I think this is the way:

    add_filter('avf_header_setting_filter', function($header) {
      $header['header_transparency']  = 'header_transparent header_hidden';
      $header['header_class'] .= " av_header_transparent header_hidden";
      return $header;
    }, 10, 1);

    Now the header is gone 🙂

    in reply to: Header visibility and transparency #1481080

    Hey Guenni007, can I tweak you code to deactivate the header for all pages:

    add_filter('avf_header_setting_filter', function($header) {
      $header['header_transparency']  = 'header_transparency';
      $header['header_class'] .= " av_header_transparency";
      return $header;
    }, 10, 1); 

    Use something like:

    add_filter('avf_header_setting_filter', function($header) {
      $header['hidden_eader_transparency']  = 'hidden_header';
      return $header;
    }, 10, 1); 

    There is an option in the meta box to choose that deactivates the header for a single page. Therefore it should be possible with the filter – or am I wrong?

    Kind regards
    Daniel

    in reply to: Multiple Taxonomies in Masonry Element #1480981

    Hi Ismael, thanks for your quick reply. Has there ever been a question or request like that here in the forum? Couldn’t fine one but maybe you can search in a different way or know of a similar topic.

    Sorry Guenni007 for not letting you know, that your wizardry did the trick. Fiddled a bit with the CSS and it works. Thanks a lot! Please excuse the long waiting time.

    All the best,
    Daniel

    in reply to: Language error after update to 6.0.8 #1475414

    Thanks for your fast reply! Any idea on a schedule?

    in reply to: Language error after update to 6.0.8 #1475404

    Hi Ismael,

    I do have the same problem on several installs. After the last update nearly everything in the frontend and backend is in English. Before the update I had ‘German’ as language selected. Any idea on what the problem ist?

    Best regards,
    Daniel

    Hi Ismael,

    your code is going in the right direction. Unfortunately, it does not yet work as desired. A search icon is added to the mobile menu at the end, which is not quite the behavior I want to achieve.

    Regarding your question: My code works. It comes here from your forum and I use it on several pages. It works as follows:

    Desktop: Search field instead of icon in the menu
    Mobile: Neither

    What I want to achieve:

    Desktop: Search field instead of icon in the menu (as with my code)
    Mobile: Magnifying glass icon next to the lines of the hamburger menu. So basically the same as it is in your standard.

    Can I change my code so that it only affects the normal menu (used for desktop) and the mobile menu remains unchanged? Perhaps that would be a simpler solution than defining something specially for the mobile. What do you think? Is there a corresponding restriction that I could use?

    Christmas greetings,
    Daniel

    in reply to: Change header colour when scrolling #1474181

    Perfect! Thanks a lot.

Viewing 30 posts - 1 through 30 (of 152 total)