Forum Replies Created
-
AuthorPosts
-
August 25, 2021 at 6:32 pm in reply to: Only one picture needet – not all … / Nur ein Bild beim Anklicken anzeigen #1318329
Dear Ismael
Again: thank you for your help.
Now it works perfectly!
I really appreciate your help!
MartinAugust 23, 2021 at 11:38 pm in reply to: Only one picture needet – not all … / Nur ein Bild beim Anklicken anzeigen #1318048This reply has been marked as private.August 3, 2021 at 7:02 pm in reply to: Only one picture needet – not all … / Nur ein Bild beim Anklicken anzeigen #1314216Dear Ismael
I got help and made the changes you describet.
Unfortunately i see the code now on every page, ond the top
of every page in a red frame… – and the problem with the pictures is not solved.What error i made?
Best, Martin
August 3, 2021 at 4:44 pm in reply to: Only one picture needet – not all … / Nur ein Bild beim Anklicken anzeigen #1314198Dear Isamael
Thank you very much for your help!
Unfortunately, it’s too complicated for me.I am a real WordPress dummy…
I have found a good solution and this works also
fine with the buttons on my site, bud…Solution in “functions.php”:
<?php
function popup_no_gallery() {
if( is_page(113) ) {
?>
<script type=”text/javascript”>
(function($){
$(window).load(function(){
$(‘a.lightbox-added’).magnificPopup({
type: ‘image’,
mainClass: ‘avia-popup mfp-zoom-in mfp-image-loaded anchor-link’,
preloader: true,
midClick: true,gallery: {
enabled: false
},
});
});
})(jQuery);
</script>
<?php
}
}
add_action(‘wp_footer’, ‘popup_no_gallery’);Bud my problem is that I have about 20 pages to add.
And I don’t know how and where I have to ad the pages
in this script.Actually, it’s valid for page 133, but I need also for page 588
and others.Do you have a solution?
Thank you for your help
Martin -
AuthorPosts