WP Manifestindependent plugin directory
manifest / content / carok-wp-promotion-button

Carok WP Promotion Button

Plugin to display a promotional button in the top bar or as a fixed position at the bottom.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/abdhannan/carok-wp-promotion-button/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Carok WP Promotion Button is a lightweight WordPress plugin for displaying a customizable promotional button. The button can be positioned in a top bar above the header or as a fixed position at the bottom of the page.

🚀 Features

  • Flexible Positioning: Display the button in the top bar or as a fixed element at the bottom.
  • Customizable Styles:
    • Button text
    • Background color, hover color
    • Text color, hover text color
    • Font size and weight
  • Link Options:
    • Add a custom URL.
    • Choose whether to open the link in a new tab.
  • Custom CSS: Easily add custom CSS for advanced styling.
  • Translation Ready: Fully translatable with .pot file included.
  • Developer-Friendly: Built with modular structure, adhering to WordPress coding standards.

📸 Screenshots

1. Admin Settings

Admin Settings

2. Button Displayed in Top Bar

Top Bar Button

3. Button Displayed in Bottom Fixed Position

Bottom Button


🛠️ Installation

  1. Upload the Plugin:

    • Download the plugin and upload the carok-wp-promotion-button folder to /wp-content/plugins/.
    • Alternatively, install directly from your WordPress admin dashboard.
  2. Activate the Plugin:

    • Go to the "Plugins" menu and activate "Carok WP Promotion Button."
  3. Configure Settings:

    • Navigate to "Promotion Button Settings" in the WordPress admin to customize your button.

📖 Documentation

Admin Settings

Configure the following settings via the admin page:

  • Button Text: Customize the button label.
  • Link URL: Add your custom link.
  • Target Behavior: Toggle whether the link opens in the same tab or a new tab.
  • Position: Choose between "Top Bar" or "Fixed Bottom."
  • Styles: Set background color, hover color, text color, font size, and font weight.
  • Custom CSS: Add your own CSS for additional styling.

Translation

The plugin includes a .pot file in the languages/ folder. Use translation tools like Poedit to translate the plugin into your language.


📚 Changelog

Version 1.0.0

  • Initial release.
  • Added:
    • Customizable button styles and text.
    • Top bar and fixed bottom display options.
    • Admin settings page.

🛠️ Tech Stack


🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs.
  • Submit pull requests.
  • Suggest new features.

📝 License

This plugin is licensed under GPL-2.0-or-later.


👨‍💻 Author

Developed by Abd Hannan.