Align Woo Buttons
Align Woo Buttons
Description
This lightweight plugin will automatically align your WooCommerce “Add to cart” buttons.
This plugin is not associated with WooCommerce or any of their affiliates.
Nothing looks worse than visiting a WooCommerce shop page to find the “Add to cart” buttons scattered all over the place like a dog’s breakfast.
This simple plugin solves that problem with a little javascript, and without modifying any core files or templates.
This version will also align your Product Titles thus allowing longer titles or larger fonts.
See FAQ about issue with WooCommerce blocks.
Installation
- Upload
woo-align-buttons.zipthrough the “Plugins” menu in WordPress - Else upload unzipped
woo-align-buttonsfolder to the/wp-content/plugins/directory - Activate the plugin through the “Plugins” menu in WordPress
Faq
It hooks a wrapper <div> around the product information above the “Add to cart” buttons.
Javascript then measures the height of that wrapper and adjusts the height to automatically align the buttons.
No. It is designed to work on unmodified WooCommerce files. If your theme has modified any WooCommerce product templates or added hooks that affect those templates or files, this plugin may not work.
It is assumed that if the theme developer has hacked, hooked, or modified any WooCommerce files, they should have already fixed the problem with aligning the buttons.
If it is not working on your theme chances are your theme has been modified or hacked, and this plugin will NOT work.
You can either choose another theme, or contact your theme developer and ask them to fix their theme.
Yes. However, the hook in your theme’s functions.php file will need to be modified slightly.
A sample child theme can be found here on GitHub.
No. WooCommerce has changed the products grid template for their blocks.
Their new template does not allow for separating the ‘Add to cart’ buttons.
Without the ability to separate the buttons, this plugin can not work.
This issue would need to be taken up with WooCommerce Support.
There appears to be a handful of users experiencing issues with the latest updates.
This is most likely caused by previous version files being cached on the users system.
You can try clearing your cache files.
Yes. Every time the screen is resized, it will re-adjust the buttons.
If your theme has been heavily modified and the buttons are outside of the original scope, you may have to consider using another theme.
If you are able to do some of your own coding, a child theme can usually be made to work.
A sample child theme can be found here on GitHub.
Reviews
Love it! Such a simple concept
By gamethrall on November 30, 2023
I don't know why this isn't a default option in WooCommerce, but thank goodness this plugin exists. I've been trying to figure out how to fix this for a while when I stumbled upon this plugin. Does exactly what it says it does. It also works on "Select Options" buttons for variable products.
Works with WooCommerce HPOS
By (jzn21) on October 23, 2023
This plugin is finally compatible with WooCommerce HPOS.
Great plugin. thx!
By sunnysonic on June 15, 2023
without it there is no proper way to accomodate all the options that this plugin does. thanks
Works fine on the block theme I use
By jhnpldng on October 15, 2022
Cool plugin
By Kostiantyn (speedplus) on January 16, 2022
Great little plugin
By David Foreman (davros20) on December 7, 2021
ヾ(^▽^*)))
By alstrar on December 7, 2021
A project-saver that worked like a charm straight away. Thank you!
By muudstudioeu on November 18, 2021
Perfection - Creates a Visually Appealing Grid
By Craig (csthrasher) on September 27, 2021
perfect
By wppityu70 on September 6, 2021
Changelog
3.8.0
- Tested on WordPress version 6.8.3
- Tested on WooCommerce version 10.3.4
- Changed Plugin name.
3.7.0
- Tested on WordPress version 6.3.2
- Tested on WooCommerce version 8.2.1
- Removed WC version lines in main file.
3.6.9
- Tested on WordPress version 6.3.2
- Tested on WooCommerce version 8.2.1
3.6.8
- Tested on WordPress version 6.1.1
- Tested on WooCommerce version 7.2.2
- Not compatible with WooCommerce HPOS.
3.6.7
- General housekeeping
- FAQ about WooCommerce blocks
- Tested on WordPress version 5.8.1
- Tested on WooCommerce version 5.8.0
3.6.6
- Tested on WordPress version 5.7.2
- Tested on WooCommerce version 5.4.1
3.6.5
- Remove WooCommerce version message
- Tested on WordPress version 5.4.1
- Tested on WooCommerce version 4.2.0
3.6.4
- Changed woo-height to class
- Tested on WordPress version 5.4
- Tested on WooCommerce version 4.0.1
3.6.3
- Tested on WordPress version 5.3
- Tested on WooCommerce version 3.8.0
3.6.2
- Tested on WordPress version 5.2.2
- Tested on WooCommerce version 3.7.0
- Includes pure javascript manual option (beta)
3.6.1
- Tested on WordPress version 5.2
- Tested on WooCommerce version 3.6.2
3.6.0
- This version also aligns your product titles
- Tested on WooCommerce version 3.6.1
3.5.8
- Global script can now be called within other Plugins
- Tested on WooCommerce version 3.5.6
3.5.7
- Custom version for modified themes
- Do not use unless you have issues with your theme
- This version has additional event triggers
- Global folder has been removed
- Tested on WooCommerce version 3.5.6
3.5.6
- Updated alternate script in global folder
- See Troubleshooting section for usage
- Tested on WooCommerce version 3.5.6
3.5.5
- Tested on WP version 5.1
- Tested on WooCommerce version 3.5.5
3.5.3
- Tested on WP version 5.0.2
- Tested on WooCommerce version 3.5.3
- Added global script folder
3.4.5
- Tested on WP version 4.9.8
- Tested on WooCommerce version 3.4.5
- Added document change function
- Optional scroll function in
woo-align-public.jsfile
3.4.4
- Tested on WP version 4.9.8
- Tested on WooCommerce version 3.4.4
3.3.5
- Tested on WP version 4.9.5
3.1.1
- Updated install folder name
3.1.0
- Initial release


