Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Add custom icon to Episerver toolbar

$
0
0

I would really like to get the globe back, to be able to «view on website» with one single click.

I guess it should be possible to add a button like this, getting the url from the link «view on website».

Example: https://imgshare.io/image/globe.vA9aq


If I were able to call the following javascript when the UI is fully loaded, it would work. Running the javascript from the browser's console puts the globe back in place.

var url = document.querySelectorAll('[data-dojo-attach-point="lastPublishedViewLinkNode"]')[0].href;
$('.dijit.epi-globalToolbar.dijitToolbar').find('.epi-toolbarTrailing').prepend('<a href="' + url + '" target="_blank"><span class="epi-iconWebsite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></a>')

Any suggestions?


Viewing all articles
Browse latest Browse all 6894

Trending Articles