Forum Replies Created
-
AuthorPosts
-
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,
DanielMay 28, 2025 at 8:59 am in reply to: Problem to unlock “Lock advanced layout builder” for editor #1484761Hi 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,
DanielMaybe it is sufficient to add:
gallery: { enabled: true }
Could that be possible?
-
This reply was modified 2 weeks, 5 days ago by
spooniverse.
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,
DanielHi 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,
DanielHi 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,
DanielMay 21, 2025 at 4:33 pm in reply to: Problem to unlock “Lock advanced layout builder” for editor #1484532Hi 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 7Hope you find a solution. Thanks in advance!
Best regards,
DanielNice! 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,
DanielMay 20, 2025 at 9:29 am in reply to: Problem to unlock “Lock advanced layout builder” for editor #1484486Hi 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
Withoutremove_filter
: Only the user roles from the arry can use ALB exept templatesSeems 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,
DanielHi 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,
DanielHi 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,
DanielMay 16, 2025 at 3:34 pm in reply to: Add caption in lightbox under image in masonry gallery #1484346Hey @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,
DanielBut 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 tostroke:
or am I wrong?Best regards,
DanielNice! 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);
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,
DanielSorry, 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?
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,
DanielHere I got the code from Rikard: Post #1327639
Is there a hook to tie it only to the logo?
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,
DanielHi 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,
DanielHi 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,
DanielFound 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 🙂
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
DanielHi 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.
March 19, 2025 at 4:40 pm in reply to: Change Search Icon to Search Field – only for expanded menu #1479728Sorry 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,
DanielThanks for your fast reply! Any idea on a schedule?
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,
DanielDecember 23, 2024 at 1:45 pm in reply to: Change Search Icon to Search Field – only for expanded menu #1474182Hi 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: NeitherWhat 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,
DanielPerfect! Thanks a lot.
-
This reply was modified 2 weeks, 5 days ago by
-
AuthorPosts