| title | README |
|---|---|
| date | 2021-05-27 |
| draft | false |
| layout | default |
| parent | Boilerplates |
A module for the Pitea Hero.
Report Bug
·
Request Feature
- Table of Contents
- About modularity-pitea-hero
- Getting Started
- Usage
- Deploy
- Roadmap
- Contributing
- License
- Acknowledgements
A WordPress Modularity module for creating hero sections on Piteå municipality websites. This module provides a customizable hero section with background image, heading, search functionality, and action buttons.
- Background Image: Upload and display a background image for the hero section
- Overlay Control: Adjustable overlay opacity to ensure text readability
- Custom Heading: Set a main heading text for the hero section
- Search Bar: Integrated search functionality with customizable placeholder text
- Action Buttons: Add multiple buttons with icons and links to guide users
- PHP
- NPM
- Webpack
- Modularity
- ACF (Advanced Custom Fields)
- Blade templating
To get a local copy up and running follow these simple steps.
- WordPress with Modularity plugin installed
- PHP 7.4 or higher
- Composer
- Node.js and npm
- Advanced Custom Fields (ACF) plugin
Installation instructions:
- Composer (macOS):
brew install composer- Node.js and npm (macOS):
brew install node- Modularity:
composer require helsingborg-stad/modularity- Clone the repo
git clone https://github.com/Considbrs-Webdev/modularity-pitea-hero.git- Install and build NPM packages
npm install && npm run build- Install composer packages
composer installAfter installation, the module will be available in the WordPress Modularity module library. You can add it to any page or post where Modularity is enabled.
- Background Image: Upload a background image (required)
- Overlay Opacity: Adjust the overlay darkness (0-100%, default: 50%)
- Heading: Set the main heading text (required, default: "Välkommen till Piteå kommun")
- Search Placeholder: Customize the search input placeholder text (optional, default: "Vad kan vi hjälpa dig med?")
- Buttons: Add up to 12 action buttons with:
- Icon selection
- Button text
- Link destination
The search bar will always be displayed, even if no placeholder text is set.
Instructions for deploys.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License.
