1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Button & Menu Links in Popup Resized Window

Discussion in 'Free Divi Community Forum' started by Terry O'Connor, Jun 8, 2021.

  1. Terry O'Connor

    Terry O'Connor New Member

    Hi,

    I am looking for the best way to have a URL open up in a new window that is resized when clicking on both a menu item and a slider module button.

    With regular HTML, this is what I would look to do:

    <a onClick="window.open('URL','resizable,scrollbars=1,height=800,width=425'); return false;" style="cursor: pointer; cursor: hand;">Click Here</a>

    Any help or insight on how to accomplish this with a divi slider button and menu item would be greatly appreciated.

    Thank you!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Terry O'Connor

    Terry O'Connor New Member

    Update:

    I found a workaround for the slider button. Instead of using the button built into the module, I created my own in the body of the module and styled it to match the 'standard' divi buttons.

    I am still trying to figure out how to have a menu item open up a new window that is resized.

    If anybody has any thoughts on how to do this, it would be a huge help!
     
  3. Terry O'Connor

    Terry O'Connor New Member

    Solved the menu, too!

    A custom class was added in the menu tab: 'custom-menu'

    Note: I had to enable CSS Classes on the menu page under 'screen options.'

    This was added to the head:

    <script>
    jQuery(function ($)
    {
    $(document).ready(function () {
    $( ".custom-menu a" ).click(function(){
    window.open('URL');
    return false;
    });
    });
    });
    </script>
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade promo bar / notification bar with close button for your Divi site without using any plugins:View Demo