Options

Hide map in Lightbox Info popup

RichardRichard Administrators, Vanilla Admin Posts: 19,931 moderator
edited October 15, 2015 in SmugMug Customization
I vaguely recall seeing this question before, but I can't seem to find it. Please forgive the repetition.

I have almost no map data on my site, so I would like to eliminate entirely the map section on the info display. Seeing "No Map Data" all the time feels like a reprimand somehow. It wastes space and forces the viewer to scroll unnecessarily.

Comments

  • Options
    Lille UlvenLille Ulven Registered Users Posts: 567 Major grins
    edited October 14, 2015
    I think it was HikingMike who kindly donated the code that I am using to hide the maps if no data is given:
    /* remove empty map box from info popup */
    .sm-user-ui .sm-panel-imageinfo.sm-imageinfo-nomapdata .sm-map-container,
    .sm-user-ui .sm-panel-imageinfo.sm-imageinfo-nomapdata .sm-imageinfo-nomapdata-overlay {
    	display:none;
    }
    .sm-user-ui .sm-panel-imageinfo.sm-imageinfo-nomapdata .sm-imageinfo-container {
    	top:auto;
    }
    

    If you put it into your theme's css it should work fine.

    Good luck

    Lille Ulven
    https://www.lilleulven.smugmug.com - The Photos of my travels
  • Options
    RichardRichard Administrators, Vanilla Admin Posts: 19,931 moderator
    edited October 14, 2015
    clap.gif Worked perfectly. Thanks Lille (and Mike).
  • Options
    Hikin' MikeHikin' Mike Registered Users Posts: 5,458 Major grins
    edited October 14, 2015
    I think it was HikingMike who kindly donated the code that I am using to hide the maps if no data is given:
    /* remove empty map box from info popup */
    .sm-user-ui .sm-panel-imageinfo.sm-imageinfo-nomapdata .sm-map-container,
    .sm-user-ui .sm-panel-imageinfo.sm-imageinfo-nomapdata .sm-imageinfo-nomapdata-overlay {
        display:none;
    }
    .sm-user-ui .sm-panel-imageinfo.sm-imageinfo-nomapdata .sm-imageinfo-container {
        top:auto;
    }
    
    If you put it into your theme's css it should work fine.

    Good luck

    Lille Ulven

    Nope, wasn't me. ne_nau.gif
  • Options
    Lille UlvenLille Ulven Registered Users Posts: 567 Major grins
    edited October 14, 2015
    Hm... I have found a couple of threads where Denise said she had this code but could not remember from where she had it either...

    Well unknown provider of code: thanks for it anyway :)
    https://www.lilleulven.smugmug.com - The Photos of my travels
  • Options
    David_S85David_S85 Administrators Posts: 13,201 moderator
    edited October 15, 2015
    My Smugmug
    "You miss 100% of the shots you don't take" - Wayne Gretzky
Sign In or Register to comment.