Mô tả
Button Shortcode is a powerful yet easy-to-use plugin for WordPress that lets you create fully customizable buttons on your website using shortcodes.
Whether you’re looking to add call-to-action (CTA) buttons, links, or styled buttons, this plugin has you covered. The plugin integrates seamlessly into WordPress with an intuitive admin menu where you can create, style, and manage buttons effortlessly.
Key Features:
- Create Customizable Buttons: Create buttons with custom text, URLs, and styling, including background color, text color, border radius, hover effects, and more.
- Simple Shortcode Integration: The plugin generates shortcodes for each button, which can be used in posts, pages, widgets, and more.
- Admin Menu for Easy Button Creation: Access the new Button Shortcodes menu in the WordPress admin dashboard to create and manage buttons.
- Multiple Styling Options: Add CSS classes, adjust padding, border-radius, and more to style your buttons exactly how you want.
- Shortcode Gallery: Easily view all created buttons and their shortcodes in one place for quick access.
Admin Menu and Button Creation:
- Access Button Shortcodes: After activating the plugin, navigate to the Button Shortcodes menu in your WordPress admin dashboard.
- Create New Button: Click the Create New Button option to open the button creation page.
- Customize Button Attributes:
- Button Text: Define the text that will appear on the button.
- URL: Set the URL that the button links to.
- New Window Option: Choose whether the link should open in a new window (set
new_window="yes"
) or within the same window (new_window="no"
). - Button Styles: Customize background colors, text color, border radius, padding, and hover effects.
- Save and Generate Shortcode: Once you’ve customized the button, click Save, and the plugin will generate a unique shortcode like [button id=”123″] for your button. This shortcode can now be used to display the button anywhere on your website.
Example Shortcode:
The following is a basic example of the button shortcode:
This shortcode can be placed in any post, page, or widget to display the button.
For more advanced styles and customizations, use the following attributes within the shortcode:
In this example:
– text: The text that appears on the button.
– url: The link that the button will redirect to.
– new_window: Open the URL in a new window (yes
) or the same window (no
).
– class: Add custom CSS classes to style the button further.
Benefits of Using Button Shortcode:
- Improve User Experience: Buttons are a great way to make key actions (e.g., purchases, contact, sign-up) easy for visitors to perform.
- Enhance Design Flexibility: Customize the appearance of buttons without needing to code by using simple admin settings.
- Boost Engagement: Add clear calls to action (CTAs) and drive traffic to important pages.
- SEO Benefits: Properly optimized buttons with clear calls to action can enhance your website’s user experience and contribute positively to SEO.
Cài đặt
To install the Button Shortcode plugin, follow these simple steps:
-
Download and Upload the Plugin:
- Download the plugin ZIP file from the WordPress plugin repository or your source.
- Upload the
button-shortcode
folder to the/wp-content/plugins/
directory on your WordPress website.
-
Activate the Plugin:
- Go to the Plugins menu in the WordPress admin panel and click Activate next to the Button Shortcode plugin.
-
Create a Button:
- After activation, a new menu item named Button Shortcodes will appear in the WordPress dashboard.
- Click Button Shortcodes > Create New Button to start creating custom buttons for your website.
-
Use the Shortcode:
- Once your button is created, copy the generated shortcode and paste it into any post, page, or widget to display the button.
Hỏi đáp
-
- Go to the Button Shortcodes menu in the WordPress admin dashboard.
- Click Create New Button.
- Customize the button by adding text, URL, and adjusting the styles.
- Save the button to generate the shortcode.
-
- Simply copy the shortcode generated for your button from the Shortcode Gallery and paste it into any post, page, or widget.
-
- Yes! You can customize various elements such as:
- Button Text: Define what text appears on the button.
- URL: Link to any external or internal URL.
- Open in New Window: Choose if the button opens the link in a new window or the same window.
- Styling Options: Adjust the background color, text color, border-radius, padding, and hover effects.
- Yes! You can customize various elements such as:
-
- No! You can create as many buttons as you need. Each button will have its own unique shortcode like [button id=”123″] that you can use throughout your site.
-
- All created buttons are visible in the Button Shortcodes menu under Shortcode Gallery. Here, you can view all your buttons and their shortcodes for easy access.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“WP Button Shortcode – Create Custom Buttons in WordPress” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “WP Button Shortcode – Create Custom Buttons in WordPress” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
2.0 | December 9, 2024
- Added Admin Menu for creating and managing custom buttons.
- Introduced Shortcode Gallery for easy access to all generated buttons.
- Enhanced button styling options (background color, text color, padding, border-radius).
- Added support for customizing the button text, URL, and new window behavior.
- Bug fixes related to shortcode rendering in certain themes.
- Improved admin UI for button creation.
1.0 | August 28, 2024
- Initial release with basic shortcode functionality for creating buttons.