WooCommerce Product Buttons

Documentation

Installation

  1. Log in to your WordPress dashboard
  2. Go to Plugins > Add New
  3. Click the “Upload Plugin” button at the top of the page
  4. Click “Choose File” and select the WC Product Buttons zip file
  5. Click “Install Now”
  6. 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:

  1. Go to WooCommerce > Product Buttons to set up global button styles
  2. Edit any product where you want to add a custom button
  3. Scroll down to find the “Custom Button Settings” section
  4. Enter your button text and URL
  5. Update the product
  6. 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:

  1. Go to Products > All Products
  2. Edit the desired product
  3. Scroll to “Custom Button Settings” meta box
  4. Configure:
    • Button Text: The text displayed on the button
    • Button URL: The destination link (full URL required)
  5. 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

  1. Verify WooCommerce is active
  2. Check if button text and URL are entered
  3. Ensure theme supports WooCommerce hooks
  4. Clear cache if changes don’t appear

Styling Issues

  1. Clear browser cache
  2. Check for conflicts with theme CSS
  3. Verify color values are valid
  4. Ensure numbers have no units (px) in number fields

Mobile Display Problems

  1. Check responsive layout settings in theme
  2. Verify button width settings
  3. Test different margin values
  4. 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.

Shopping Cart
Scroll to Top