• Resolved jtm12

    (@jtm12)


    I like your plugin. It’s the best one I have found.

    But I’m struggling with the gallery layout losing its style or changing its style after a few hours, and I don’t know why.

    I actually have several galleries set up. This happens to some of them, and I haven’t figured out yet why it affects only some. Everything should be set up the same.

    I would have a better chance of figuring out the problem if I knew what was happening.

    The gallery is set up for the thumbnails to be 250 pixels in width, with no caption showing. Two thumbnails fit across the browser screen on a standard laptop.

    After a few hours, the layout changes to the thumbnails stacked one to a line with a caption showing underneath.

    The lightbox still works after the layout is lost. I can click a photo and launch the lightbox.

    I can fix the layout issue by using the two provided cache buttons in the settings. The galleries return to their correct styling.

    I did look in the web console for JavaScript errors. I am not seeing any.

    I have had the plugin installed for several months. I’m not sure it happened right away. I’d like to think I would have noticed. But it’s happening every few hours now.

    Any suggestions would be appreciated.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bradvin

    (@bradvin)

    hey @jtm12

    I had a look at your page and I think I know what the issue is.

    The foogallery CSS stylesheet is being loaded over HTTP and not HTTPS. It has to do with your website’s SSL certificate, and I am not sure why it is trying to load over HTTP. You can fix this by enabling the “Force HTTPS” setting in the FooGallery settings page under the Advanced tab.

    Thread Starter jtm12

    (@jtm12)

    I decided to contact my host, Hostmonster, before responding to you.

    I haven’t used your plugin fix yet because I realized that you solved a problem for me on another of my sites where the tablesorter plugin wasn’t loading when I switched the site to https.

    I wanted Hostmonster to see the problem.

    The Hostmonster tech person I chatted with said to do the following, which he did on his end, and he said the style sheet was loading https afterward, similar to the other style sheets. I should have double-checked before I let him go, because that’s not what I’m seeing. But here was his suggestion:

    Just need to update the http redirect code to .htaccess file
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]]

    Is that was your plugin does to force https? I’d like to understand the actual fix since I know Hostmonster has the potential to create this problem on all my sites.

    I apologize for asking you another question after you actually solved your plugin’s issue.

    Thanks.

    Plugin Author bradvin

    (@bradvin)

    hey @jtm12

    Our setting does not do anything with .htaccess, instead we force all assets we enqueue to be HTTPS and not HTTP.

    It is always better to do it at the host level, but also make sure your WordPress address and Site Address settings are set to HTTPS under Settings -> General

    Thread Starter jtm12

    (@jtm12)

    The website with the Foo Gallery plugin is indeed set to https in the general settings. I will go ahead and use your solution now.

    I noticed the style sheet problem with the tablesorter plugin on the other site when I switched the WordPress general settings from http to https.

    The table is on the home page, and the tablesorter functionality broke immediately when I made the switch.

    I googled for hours trying to find someone else who had that issue and didn’t come up with anything. And I didn’t see any issues with my enqueue method.

    I should have realized I was looking at the same issue on both sites.

    Thanks so much for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gallery layout seems to lose style after several hours’ is closed to new replies.