Skip to content

Instantly share code, notes, and snippets.

View netaddicts's full-sized avatar
🏆
Focusing

Dirk De Grave netaddicts

🏆
Focusing
View GitHub Profile
@pgregorynz
pgregorynz / previewbadge.xml
Last active August 29, 2015 14:08
A better Umbraco Preview Mode Indicator
<!--
replace the previewBadge element in the umbracosettings.config
This will give you a green fixed banner across the bottom of the screen.
It adds 50px to the bottom of page to ensure the banner
doesnt mess with your design. It also has a high z-index so it will work properly in most situations.
-->
<PreviewBadge><![CDATA[
<div style="width:100%; height:50px;">
<a id="umbracoPreviewBadge" style="position: fixed; z-index:1000; width:100%; background: #00cc00; bottom:0;left:0;padding:15px" href="{0}/endPreview.aspx?redir={2}">