
-
AuthorPosts
-
February 11, 2025 at 6:39 pm #1476903
There are so many iterations of this can you please direct me to a thread that is complete and current, including code so the page doesn’t scroll and css for the window.
I added class=” inline_popup” to some text, to the column using developer setting, mfp-hide does not hide he color window, I’m linking to an anchor..notta.
This shouldn’t be this confusing, its just a modal window.
Thank you
February 11, 2025 at 8:29 pm #1476904I have this ins functions,.
function inline_popup_enabler(){
?>
<script>
(function($){
$(document).ready(function() {
$(‘.inline_popup’).magnificPopup({
type:’inline’,
midClick: true
});
});
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘inline_popup_enabler’, 9999);add_action(‘wp_footer’, ‘inline_popup_enabler’);Show inline popup in a text box
tried test-popup and mfp-hide in developer settings id and class
tried the same in a color box..nothing, the pop upi content is not hiding and no pop up box.
Please respond asap
February 12, 2025 at 6:40 am #1476925Hi,
Thank you for the inquiry.
Please create a test page and provide the link in the private field. Did you apply an href attribute to the element with the inline_popup class name.
<a class="inline_popup" href="#popup1">Open Popup 1</a>
This should open the element with the ID “popup1” inline.
Best regards,
IsmaelFebruary 21, 2025 at 6:48 pm #1477577Hi can do, but please include a copy of the function that doesn’t break the site. Then I can send you access.
Thank you
February 22, 2025 at 7:59 pm #1477654Hi,
The css that goes with that script sets the background color of the popup box, if you don’t want the color then change the css.mfp_popup_content { position: relative; background: #ffffff; padding: 40px; width: auto; max-width: 600px; margin: 100px auto; overflow: auto; }
also your code above has two add actions:
add_action('wp_footer', 'inline_popup_enabler', 9999);add_action('wp_footer', 'inline_popup_enabler');
you should only have oneadd_action('wp_footer', 'inline_popup_enabler', 9999);
this is probably why you see an error, or you have curly quotes in your code.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.