Hiding image in Footer triggers disappearance of widgets in Body

photoclickphotoclick Registered Users Posts: 278 Major grins
edited January 27, 2016 in Bug Reporting
Hello Smugmug employee or Aaron,

I think I found a bug that, unfortunately, cripples one of my sites. Imagine you have a Single Image block in the (Entire Site) Footer section. Then imagine you have a page with some content blocks. Now add CSS block on that page and add a code that simply hides that Single Image Block in the Footer section.

The css works. It hides the image in the footer. Unfortunately, along with the image in the footer the Menu and Image content blocks on the PAGE will disappear as well. Why????

Here is the test site: https://mvs.smugmug.com/ PM me for the password if you need to test it. This is a clean test site with no other code.

Thank you very much.

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited January 14, 2016
    Make sure you use the exact widget class name so it's specific to that widget.
    .sm-page-widget-XXXXXXX

    <div id="sm-page-widget-QRxkSNTh" class="sm-page-widget
    sm-page-widget-html sm-page-widget-13597242" data-typeid="13597242">


    Also the specific page class name found in the <body>. .sm-page-node-XXXXXXX


    .sm-page-node-nd6CmZ .sm-page-widget-13597242 {display:none}
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • photoclickphotoclick Registered Users Posts: 278 Major grins
    edited January 14, 2016
    Good advice, thanks. Yes, I used the exact class name. I even made a full text search in case the same class name is present anywhere else in the document. Regardless what I do and how I refer to that element - other elements are somehow affected. I can give you access to that test site if you wish to check it out.
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited January 14, 2016
    photoclick wrote: »
    Good advice, thanks. Yes, I used the exact class name. I even made a full text search in case the same class name is present anywhere else in the document. Regardless what I do and how I refer to that element - other elements are somehow affected. I can give you access to that test site if you wish to check it out.
    I'd like to take a look. Have a link to the page this is happening on? PM me
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited January 15, 2016
    I don't see why this doesn't work. It seems to work using WebDev.


    .sm-page-node-dZsdrx .sm-page-widget-13606680 {display:none}

    You can put it in "entire site" CSS because it has the specific page in the rule.
    or
    If it's a Page, it is already set to "Just This Page" and that will be highlighted in right flyout.
    You should find a CSS widget that says that in it's title bar.
    In that CSS widget you don't need the .sm-page-node-dZsdrx.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • leftquarkleftquark Registered Users, Retired Mod Posts: 3,784 Many Grins
    edited January 15, 2016
    Everything appears to work fine when you're in the Customizer, but as soon as you publish I'm seeing a JavaScript error that's preventing the rest of the footer from loading. I'm sending this to QA to dig deeper.
    dGrin Afficionado
    Former SmugMug Product Team
    aaron AT aaronmphotography DOT com
    Website: http://www.aaronmphotography.com
    My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
  • HeroOfCantonHeroOfCanton Registered Users Posts: 208 Major grins
    edited January 15, 2016
    leftquark wrote: »
    Everything appears to work fine when you're in the Customizer, but as soon as you publish I'm seeing a JavaScript error that's preventing the rest of the footer from loading. I'm sending this to QA to dig deeper.

    It appears this is caused by the Single Photo CB. I did a quick test on the following scenarios:

    - Remove Multiple Photo - Just this Page: works as it should, only that CB is removed.
    - Remove Single Photo - Just this Page: Other blocks on page, and entire site blocks remain, but Multiple Photo block, and Single Photo block on Just this Page are removed. Error "TypeError: _ is undefined" appears in console.
    - Remove Multiple Photo - Entire Site: works as it should, only that CB is removed.
    - Remove Single Photo - Entire Site: Entire page is blank, only Multiple Photo - Entire Site remains. Error "TypeError: _ is undefined" appears in the console.


    I replicated this in a new testing scenario and I've filed the bug to be triaged.
    Quality Engineer - My SmugMug Site

    Getting started on DGrin? Go here first!
    Contact a Support Hero: http://help.smugmug.com/customer/portal/emails/new
  • photoclickphotoclick Registered Users Posts: 278 Major grins
    edited January 15, 2016
    Thank you, everyone. If possible - please, update this post when the fix is pushed. I really appreciate how quickly everyone here helped chasing this bug.

    mike
  • photoclickphotoclick Registered Users Posts: 278 Major grins
    edited January 19, 2016
    Would it be pushing my luck if I ask how is this thing going? :)
  • leftquarkleftquark Registered Users, Retired Mod Posts: 3,784 Many Grins
    edited January 19, 2016
    It never hurts to ask. At the moment all our engineers are tied up and I'm not able to pull them off but I do have it high on the priority when we get a free moment.
    dGrin Afficionado
    Former SmugMug Product Team
    aaron AT aaronmphotography DOT com
    Website: http://www.aaronmphotography.com
    My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
  • photoclickphotoclick Registered Users Posts: 278 Major grins
    edited January 19, 2016
  • leftquarkleftquark Registered Users, Retired Mod Posts: 3,784 Many Grins
    edited January 27, 2016
    We had this issue pop up again today with another customer and one of our Engineers took a peek at fixing this. Is this now fixed for you, Michael?
    dGrin Afficionado
    Former SmugMug Product Team
    aaron AT aaronmphotography DOT com
    Website: http://www.aaronmphotography.com
    My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
  • photoclickphotoclick Registered Users Posts: 278 Major grins
    edited January 27, 2016
    YES!!!!!!! Just checked - it is fixed:) Thank you!!!
Sign In or Register to comment.