• Resolved qwik3r

    (@qwik3r)


    Hello,

    I’m having trouble with a button not opening a link when clicked. The button is part of an Elementor template that is embedded into the pop up area via shortcode. I’ve also noticed that even using an href link instead of a button in the Elementor template results in the same behavior.

    When you hover over the button it shows the destination, and you can right click ‘open in new tab’ and it works fine, but just clicking it doesn’t redirect to the link. I’m thinking that the pop ups function to close when the link is clicked is interfering. Any ideas?

    • This topic was modified 4 years, 4 months ago by qwik3r.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Bel

    (@belimperial)

    Hello @qwik3r

    Thank you for reaching out!

    The popup’s close function will not interfere with the link or button created in Elementor as they are using different functionality. The popup close uses a CSS selector “popmake-close pum-close” while Elementor uses a button HTML or anchor link HTML.

    I suggest adding the do-default class to the link tag. You may add this under the Elementor.

    I would also suggest checking the article Test if a Plugin or Theme Interferes with Popup Make to identify if there are theme/plugin conflict.

    I also made a test using my test environment, but I could not see any issues with Popup Maker and Elementor. I used the sample template from Elementor with a button.

    Please see: https://share.getcloudapp.com/4guPP6X5

    I hope that helps.

    Let us know if the provided solution helps. If it doesn’t, please do let us know so we can forward it to our developer.

    Thread Starter qwik3r

    (@qwik3r)

    Adding “do-default” to the tag did nothing. class=”popmake-close pum-close do-default” it just closes the pop up and doesn’t redirect to the link.

    Your example also doesn’t have anything to do with what my original query was. I said that I had a button in a pop up already… and that is meant to click to go to a link, and simultaneously close the pop up, not open it like in your example.

    This is the html produced by Elementor:

    <div class="elementor-element elementor-element-5a996abc elementor-mobile-align-justify elementor-widget__width-auto elementor-widget-mobile__width-inherit popmake-close pum-close do-default elementor-widget elementor-widget-button" data-id="5a996abc" data-element_type="widget" data-widget_type="button.default">
    				<div class="elementor-widget-container">
    					<div class="elementor-button-wrapper">
    			<a href="https://www.google.com" target="_blank" class="elementor-button-link elementor-button elementor-size-sm" role="button">
    						<span class="elementor-button-content-wrapper">
    						<span class="elementor-button-text">Watch Episode</span>
    		</span>
    					</a>
    		</div>
    				</div>
    				</div>
    

    On an unrelated note, if you change cookies and then change them back in the targeting, will the original cookie still exist? Or does the new one erase the old one?

    • This reply was modified 4 years, 4 months ago by qwik3r.
    • This reply was modified 4 years, 4 months ago by qwik3r.
    Thread Starter qwik3r

    (@qwik3r)

    I was able to figure this out by setting the data attribute correctly using: data-do-default=”true”. I thought I had to add a class, but that was incorrect.

    Bel

    (@belimperial)

    Hi @qwik3r

    Thank you for your reply.

    We are glad you have fixed the issue on your site and for sharing the fix. Should you need our assistance in the future, please don’t hesitate to write here and we will be glad to help you sort the issue.

    Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Link not opening’ is closed to new replies.