This topic contains 1 reply, has 2 voices, and was last updated by Sofia Moss Sofia Moss 2 months ago.

ext url in the same tab and not in a new one

  • I would like to know how to transform the target of the external link:
    target=’new’ to target=’_self’

    Thanks

    Sofia Moss
    StaffSuper ContributorUser Level

    Hi there,

    Thanks for reaching out, if you’re using the WordPress version, you can set the external link to pop up on a new window or existing window , more info available in this knowledge base article here.

    If you’re using the standalone version with Mega Locator theme, you can try to edit js/mega-superstorefinder.js and search for the following code:

    <div class="infobox__row   store-exturl" style="display:none;"><a target="new" ',((_store.exturl.substring(0, 4)!="http") ? 'href="http://'+_store.exturl : 'href="'+_store.exturl),'">

    Change it to”

    <div class="infobox__row   store-exturl" style="display:none;"><a ',((_store.exturl.substring(0, 4)!="http") ? 'href="http://'+_store.exturl : 'href="'+_store.exturl),'">

    Save and upload the file, then, clear browser cache and refresh the page.

    Cheers,
    Sofia

The topic ‘ext url in the same tab and not in a new one’ is closed to new replies.