acmdesigns
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Smush Pro CDN breaks Nivo LightboxThat being said, I see that Nivo Lightbox development stopped in 2016 and the repo was archived in 2021. So I guess there’s a near-zero chance this will be fixed unless the maintainer of the Responsive Lightbox & Gallery WP plugin either updates the js directly or decides to remove Nivo altogether.
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Smush Pro CDN breaks Nivo LightboxA simple fix for the code in Nivo Lightbox would be:
o.match(/\.(jpeg|jpg|gif|png)(\?.*)?$/i)Which would match an image URL with or without query string parameters.
Forum: Plugins
In reply to: [Simple Masonry Layout] layout doesn’t respect Category settingI figured out the column layout issue. The problem was 33.3%, 50% and 100% widths in
.sm-grid .grid-sm-boxes-inweren’t fitting for some reason. Reducing the widths to 32% for 3 columns and 47% for 2 columns fixed it, but that’s obviously not an ideal solution. After digging more, the following CSS resolved it:*, :after, :before { box-sizing: inherit; }Might want to consider including this in your plugin’s CSS as it seems to be necessary for the columns widths to be sized correctly.
Forum: Plugins
In reply to: [Simple Masonry Layout] layout doesn’t respect Category settingI also thought maybe it was allowing room for the sidebar, but that’s not the case. It wasn’t showing the sidebar and when I enabled it, it made it smaller to accommodate the sidebar and still left an empty space where the 3rd column should be.
Forum: Plugins
In reply to: [Simple Masonry Layout] layout doesn’t respect Category settingWell, I’m not sure if it’s my theme either. I tried the stock Twenty Twenty Three theme and get the same result. Is there a setting I’m unaware of? I’ll try to see if there are any other plugins that can be causing this, but any help is appreciated.
Forum: Plugins
In reply to: [Simple Masonry Layout] layout doesn’t respect Category settingAh ok, I didn’t know there was a shortcode attribute
sm_category_name— had to dig through your code, because it wasn’t being set in the shortcode field. There seems to be a bug in your plugin.In
class.siple.masonry.admin.phpline 156-162, thesm_category_nameattribute only gets set if the$sm_post_typeand$sm_as_galleryis set. This means if you have Use as Masonry Layout Gallery disabled, it will never add category the attribute to shortcode in the admin UI. I had to manually add the attribute in my shortcode and it started filtering by the category I specified.I don’t see any other place in your code where
sm_category_nameis set.Original code Line 156-162:
if ($sm_post_type && $sm_as_gallery) { $shortcode_atts['gallery'] = 'yes'; if ($sm_category !== 'none') { $shortcode_atts['sm_category_name'] = $sm_category; } }Updated code:
if ($sm_as_gallery) { $shortcode_atts['gallery'] = 'yes'; } if ($sm_post_type && $sm_category !== 'none') { $shortcode_atts['sm_category_name'] = $sm_category; }On an unrelated note, I’m not sure if I’m doing something wrong here, or it’s a conflict with my theme CSS, but It’s only showing 2 columns with a lot of space on the right instead of 3. I assume it’s either some configuration that I missed or some CSS or HTML that’s causing it to push the 3rd column down to the next row. Maybe it’s not wide enough. I’ve been digging through the HTML and CSS for a bit and haven’t found anything yet. Any suggestions?
- This reply was modified 2 years, 8 months ago by acmdesigns.
Forum: Plugins
In reply to: [Simple Masonry Layout] divs are invisible/transparentI figured it out, the theme I’m using also has Modernizr loaded, but with only http://modernizr.com/download/#-csstransforms3d-csstransitions-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes and
cssanimationsisn’t included so it overwrites the loaded instance of Modernizr from Simple Masonry Layout 🙁Is there a good way to override modernizr in wordpress so only 1 combined modernizr is used.
Forum: Plugins
In reply to: [Simple Masonry Layout] divs are invisible/transparentAfter some investigation, I found that the JS code on line 108 of AnimOnScroll.js is never run:
if( inViewport( el ) ) { ... }Looking at that function, it checks if the element is in view, and if so, it adds the.shownclass to the div which turns the opacity to 1.I noticed that it’s because the check for
Modernizr.cssanimationsreturnsundefinedfor some reason. I have no idea why, as this would be browser specific and I’m using Chrome v116 (I’m going to test updating to the latest CHrome, but I don’t think it’ll help)I double checked and
Modernizris correctly loaded —Modernizr.csstransitionsistrue, so I’m really not sure what to make of this.After fiddling a bit, I figured out a different solution. Add another Flat Rate shipping method and rename it to Pickup. This applies the appropriate taxes.
I actually saw that documentation page, but completely glazed over that filter. :facepalm:
Thank you!
Thanks. This was exactly what I needed and it works beautifully. Is there any documentation for this or other development-related help on the site?
Forum: Plugins
In reply to: [Better Font Awesome] The attempt to reach the jsDelivr API server failedCan confirm, performance issues are no longer present with Better Font Awesome plugin enabled. Thank you for following up on this Mickey.
The timeout definitely needs to be lowered to a reasonable level. It was frustrating having severe performance issues without knowing the cause of it. For a while the site was very slow but without the timeout error displaying. I would assume that the timeout wasn’t being hit, but the CDN was still taking a significant amount of time.
Forum: Plugins
In reply to: [Better Font Awesome] The attempt to reach the jsDelivr API server failedjumping on this. Having the same problem and it’s massively slowing down one of my sites. Disabling this plugin dropped my page load times from ~20seconds to about 1-2 seconds.
- This reply was modified 5 years, 3 months ago by acmdesigns.
Found this bug already mentioned on the WooCommerce github repo issues: https://github.com/woocommerce/woocommerce/issues/27247
Forum: Plugins
In reply to: [Download Monitor] woocommerce shop manager can’t access download logsThanks that worked. I also needed to add
dlm_manage_logscapability to allow the Shop Manager to see the Logs page in Download Monitor.WooCommerce lost password form