Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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

    #1476904

    I 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

    #1476925

    Hi,

    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,
    Ismael

    #1477577

    Hi can do, but please include a copy of the function that doesn’t break the site. Then I can send you access.

    Thank you

    #1477654

    Hi,
    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 one add_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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.