Installation
- Log in to your WordPress dashboard
- Go to Plugins > Add New
- Click the “Upload Plugin” button at the top of the page
- Click “Choose File” and select the WC Product Buttons zip file
- Click “Install Now”
- After installation completes, click “Activate Plugin”
Note: WC Product Buttons requires WooCommerce to be installed and activated.
Quick Start Guide
After installation, follow these steps to add your first custom button:
- Go to WooCommerce > Product Buttons to set up global button styles
- Edit any product where you want to add a custom button
- Scroll down to find the “Custom Button Settings” section
- Enter your button text and URL
- Update the product
- View the product page to see your new button
Global Button Styling
Configure global button styles under WooCommerce > Product Buttons. These settings will apply to all custom buttons unless overridden.
Colors Section
- Background Color: Main button color
- Text Color: Button text color
- Hover Background: Button color when hovered
- Hover Text Color: Text color when hovered
- Border Color: Color of the button border
Typography Section
- Font Size: Size of button text in pixels
- Font Weight: Choose from Normal, Medium, Semi Bold, or Bold
- Text Transform: Options for text capitalization:
- None: Text appears as entered
- Uppercase: ALL CAPS
- Lowercase: all lowercase
- Capitalize: First Letter Capitalized
Spacing & Layout Section
- Border Radius: Rounded corners (in pixels)
- Border Width: Thickness of the border
- Padding Top/Bottom: Vertical spacing inside the button
- Padding Left/Right: Horizontal spacing inside the button
- Margin Left: Space between the Add to Cart button and custom button
- Button Width: Choose from:
- Auto: Fits button content
- Full Width: Spans entire container
- Custom Width: Set specific width
- Box Shadow: Toggle for adding depth to buttons
Adding Buttons to Products
Add custom buttons to individual products:
- Go to Products > All Products
- Edit the desired product
- Scroll to “Custom Button Settings” meta box
- Configure:
- Button Text: The text displayed on the button
- Button URL: The destination link (full URL required)
- Update the product
Tips for Button URLs:
- Always use full URLs (including https://)
- Test links before saving
- Consider using relative URLs for internal links
- UTM parameters can be added for tracking
Style Customization Options
Color Options
All color settings support:
- Hex codes (#FF5733)
- RGB values (rgb(255, 87, 51))
- RGBA values for transparency (rgba(255, 87, 51, 0.8))
Spacing Guidelines
Recommended values:
- Border Radius: 3-5px for subtle rounding, 20px+ for pill shape
- Padding: 10-20px for comfortable spacing
- Margin Left: 10-15px for separation from Add to Cart button
Responsive Behavior
The buttons are mobile-responsive by default:
- Maintains spacing ratios on mobile
- Stacks vertically if space is limited
- Adjusts font size for readability
Troubleshooting
Common issues and solutions:
Button Not Displaying
- Verify WooCommerce is active
- Check if button text and URL are entered
- Ensure theme supports WooCommerce hooks
- Clear cache if changes don’t appear
Styling Issues
- Clear browser cache
- Check for conflicts with theme CSS
- Verify color values are valid
- Ensure numbers have no units (px) in number fields
Mobile Display Problems
- Check responsive layout settings in theme
- Verify button width settings
- Test different margin values
- Consider smaller font sizes for mobile
FAQ
Q: Can I add multiple buttons to one product? A: Currently, the plugin supports one custom button per product.
Q: Will the button styling match my theme? A: The plugin provides complete style control to match any theme. Use your theme’s colors and typography settings as a reference.
Q: Can I use the button for external products? A: Yes, you can link to any valid URL, internal or external.
Q: Does this work with variable products? A: Yes, the custom button displays regardless of product type.
Q: Can I translate the button text? A: Yes, the plugin is translation-ready. Use WPML or similar plugins for translations.
Q: Will this slow down my site? A: No, the plugin is lightweight and optimized for performance, adding minimal load to your pages.
For additional support or feature requests, please contact our support team.