How to open buttons in same tab in WP Product Review

You need to install any plugin to add JavaScript to your website, and we recommend Custom CSS and JavaScript plugin for this tutorial.

After installing the plugin, you need to navigate to Appearance > Custom JavaScript, and add the following JavaScript to there:

var abtns = document.querySelectorAll( '.affiliate-button a' );
abtns.forEach( function( btn ) {
	btn.removeAttribute( 'target' );
});

Save, and the buttons should open in the same tab.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us