wattyrev
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Strange www redirectI put that into the top of my .htaccess, and nothing changes. All the behavior is exactly the same.
I’m having someone look into the DNS settings as well. Unfortunately, I don’t have access to that myself.
Forum: Fixing WordPress
In reply to: Strange www redirectHow can I determine how it is being redirected? I have a .htaccess file, and I have been messing with it but havent noticed any changes so far. Even if I delete the .htaccess, everything acts the same.
Here is a fix that I found in another thread. This works well if you never use attachment pages. Everything just defaults to linking to the media file.
https://finkaboutit.com/how-to-get-rid-of-the-attachment-thing-on-your-images/Forum: Plugins
In reply to: [Firelight Lightbox] Formatting issue for mobile devicesJust to clarify the above, this basically just disabled the .js file for small screens by effectively having a blank if statement, then the actual content within the else.
Forum: Plugins
In reply to: [Firelight Lightbox] Formatting issue for mobile devicesThat code snippet didn’t seem to do anything. The paramaters for the if statement work fine, but the $(document).off bit doesn’t seem to be making any difference.
I ended up modifying the code slightly and adding it to the jquery.fancybox-1.3.4.pack.js file. Here is what I did:
Add this after
;(function(b){
var pixelRatio = window.devicePixelRatio || 1; if(window.innerWidth < 500 || window.innerHeight < 500 || window.outerWidth < 500 || window.outerHeight < 500 ) { }else{
Then add
};
just before the})(jQuery);
at the end of the document.Not a super clean fix, but it works.
Live example at https://www.mshslc.org/gallery/debris-avalanche/
Forum: Plugins
In reply to: [Firelight Lightbox] Formatting issue for mobile devicesHi Ravan,
Thanks for the reply. I think I am going to continue tinkering with things to see if I cannot make it work the way I want, but that snippet may end up being the way I need to go.