Sonntag, 30. April 2017

How to make icon in Hero template to get DB image

1- Create a Item with Type Display Image like so: For Example in my Case P1_NEW

2- In the Icon Css Class for the Breadcrumb add a Class. for example image_icon

3- Add this Css in the Inline Css for your Page Property

    display:none !important;
.image_icon {

  background-repeat: none;
    background-size: 75px;

4- Add this Javascript in execute when Page Load

var imageUrl=$('#P1_NEW').attr('src');

$('.image_icon').css('background-image', 'url(' + imageUrl + ')');

5- Demo

1 Kommentar: