Can’t wrap close shortcode around links
-
If I use this code:
<p style="text-align: center;"><a class="button" href="/newsletter" target="_blank" rel="noopener">[boxzilla-close]Yes Please![/boxzilla-close]</a></p>then it messes up the button style
—
If I use this code instead:
<p style="text-align: center;">[boxzilla-close]<a class="button" href="/newsletter" target="_blank" rel="noopener">Yes Please!</a>[/boxzilla-close]</p>It just doesn’t close the box when the button is clicked.
—
If I use this code:
<p style="text-align: center;"><a href="/newsletter" target="_blank" rel="noopener">[boxzilla-close]Yes Please![/boxzilla-close]</a></p>Then it just closes the box without opening a new tab with the link specified in the href
—
Ideally what I’m trying to do is display the box on mobile in the center of the screen. When a user clicks “Yes Please!” it would open a new window leading to the newsletter page while closing the box at the same time, so when they come back to the window they were…the box would be gone. The plugin doesn’t seem to be able to make a clickable link also act as a close trigger
The topic ‘Can’t wrap close shortcode around links’ is closed to new replies.