• Resolved dhdesign1356

    (@dhdesign1356)


    This is my first time using this plugin, and it’s exactly what I’m looking for except that I can’t scroll through the content or click on any of the links. I added the class=”modal-link” to the “Read More” links and surrounded the content I want viewed with id=”modal-ready”. I also made changes to the settings that was in the documentation. I’ve checked my style.css to see if there were any properties interfering with the code and nothing seem to be affecting it. You’ll find the link under Prose -> Read more in the second column. If there’s something I’m missing, please let me know. Feels like there’s an element in front of the content that’s preventing me from clicking any content.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter dhdesign1356

    (@dhdesign1356)

    So I realized that when I was reading through the documentation, that I had added this code to my function when I first started setting up the popup plugin. Since I have a template set-up using the modal-ready class, this function code was interfering with my template class surrounding my custom content. Once I removed this, I could hover and click on links.

    /**
    * Display Modal wrapper for Pop Up Post
    *
    * @since 1.0.0
    */
    add_action(‘wp_footer’, ‘modal_wrapper’);
    function modal_wrapper()
    {
    $HTML = ”;
    $HTML .= ‘<div class=”modal-wrapper”>’;
    $HTML .= ‘<div class=”modal”>’;
    $HTML .= ‘<div class=”close-modal”>X</div>’;
    $HTML .= ‘<div id=”modal-content”></div>’;
    $HTML .= ‘</div>’;
    $HTML .= ‘</div>’;

    echo $HTML;

    }

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t interact with page content’ is closed to new replies.