Preventing a widget from opening in a new tab on a mobile browser

Widgets in Rock Gym Pro are responsive to mobile browsers. If clicked in a mobile browser the widget will display itself in a new tab to give the user the best mobile experience. However, if you wish to prevent the widget from opening in its own tab and keep it within your page you can override this behavior.

To prevent a widget from opening a new tab on a mobile browser, add the following code to the beginning of the embedded link:

script id="rgp_never_redirect_script_id"


The resulting embedded code will look like this:

<script id="rgp_never_redirect_script_id" src="https://gymurl.com/lk=5993d93a11e386c"></script>

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.