acmdesigns
Forum Replies Created
-
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-in
weren’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.php
line 156-162, thesm_category_name
attribute only gets set if the$sm_post_type
and$sm_as_gallery
is 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_name
is 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 1 year, 6 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 https://modernizr.com/download/#-csstransforms3d-csstransitions-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes and
cssanimations
isn’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.shown
class to the div which turns the opacity to 1.I noticed that it’s because the check for
Modernizr.cssanimations
returnsundefined
for 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
Modernizr
is correctly loaded —Modernizr.csstransitions
istrue
, 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 4 years, 1 month 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_logs
capability to allow the Shop Manager to see the Logs page in Download Monitor.WooCommerce lost password form
Forum: Plugins
In reply to: [No CAPTCHA reCAPTCHA for WooCommerce] WooCommerce 3.0 change neededalternatively, instead of overriding an entire template file, you can simply add this to your theme’s function.php until they fix the plugin:
add_action( 'woocommerce_register_form', 'mytheme_woocommerce_register_form', 1000 ); function mytheme_woocommerce_register_form() { do_action( 'register_form' ); }
Forum: Plugins
In reply to: [WP Go Maps (formerly WP Google Maps)] center map on all markersFYI, the code you provided didn’t quite work by itself. I needed to do some extra leg work to get it to work. I had to create the marker which added a duplicate marker to the map and looked funny and some other things that seemed like patch work on the existing map.
I ended up purchasing the pro version as it allowed me to use the built-in openInfoWindow method and had some other features that I liked as well. Thanks for the help.