Forcing widget button links to open in same window
-
Hello,
When using the widget, both the “Buy Now” and the “Read Review” buttons open in a new window. I am trying to make the “Read Review” buttons to open in the same window, the “Buy Now” button is fine.
I saw in the help docs section something about adding the following javascript to the pages:
var abtns = document.querySelectorAll( '.affiliate-button a' ); abtns.forEach( function( btn ) { btn.removeAttribute( 'target' ); });
I tried this, but nothing changed. Can someone point me in the right direction?
Thanks!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Forcing widget button links to open in same window’ is closed to new replies.