Forums

[Plugin: Widget Logic] Using widget logic to switch out graphics yet still look good in I.E (1 post)

  1. dblast
    Member
    Posted 1 year ago #

    Hi I installed widget logic after someone helped me make some style.css changes to make a graphic in a text widget stay in an absolute position so it looked the same in various browsers. I was having widgets overlap with the graphic in Internet explorer the style.css change fixed that.

    So I got braver and tried to use widget logic to put a different graphic on a different page. But when I did that the original graphic was turned off and the new one on but I had the field overlap problem return in I.E.

    This is the original code has the original graphic working fine
    #text-245503761{
    //holds karate man, give it some height to push the lower menu items down
    display:block;
    height:280px
    }

    #text-245503761 DIV.textwidget{
    //position karate man absolutely on the screen
    display:block;
    position:absolute;
    right:2px;
    top:5px;
    }

    I then added this after that code pointing to a different text widget with a different graphic, turned on this widget on a specific page and it did not look the same in I.E
    #text-280119011{
    //holds karate man, give it some height to push the lower menu items down, here I changed the text block to the meditation graphic
    display:block;
    height:280px
    }

    #text-280119011 DIV.textwidget{
    //position karate man absolutely on the screen, here I changed the text block to the meditation graphic
    display:block;
    position:absolute;
    right:2px;
    top:5px;
    }
    I went back to the original code. But my question simply is there a way that I can switch out the 'karate dude' when other pages are clicked? It would be neat to have a matching graphic i.e mediation dude for the mediation page, a kicker dude for a kicking page etc.

    That would be the cherry on top.

    Thanks

    Dan

Topic Closed

This topic has been closed to new replies.

About this Topic