Welcome to the WordPress Functionality repository! This repository contains a collection of code snippets, scripts, and utilities designed to enhance and implement specific features and functionality in WordPress websites. Whether you're a developer looking for quick solutions or exploring ideas for custom functionality, this repository is here to help.
The repository is organised as follows:
-
dynamic-hreflang-attributes-single-lang.php
This script helps dynamically set hreflang attributes for multilingual WordPress websites. It ensures correct search engine indexing and improves SEO for sites targeting multiple languages or regions. -
dynamic-hreflang-attributes-multi-lang.php
This script dynamically generates hreflang attributes for multilingual WordPress websites where different languages are hosted under specific URL structures (e.g., /en, /fr, /de). It ensures reciprocal hreflang links between all translated versions of a page, complying with Google’s guidelines for multi-language SEO.
preload.js
This script enables dynamic prefetching of resources in a WordPress environment, enhancing website performance by preloading specified URLs. By integrating this script, WordPress users can improve their site's loading speed and user experience, particularly for frequently visited pages.
For more detailed information about each file, including usage instructions and examples, visit the Project Wiki.
To use the snippets and scripts:
-
Clone the repository:
git clone https://github.com/web-lifter/wordpress-functionality.git
-
Add the desired code snippet or script to your WordPress theme or plugin.
-
Follow the usage instructions provided in the respective file's comments.
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-branch-name
- Submit a pull request.
If you have ideas for new functionality or encounter any issues with the existing code, please open an issue in this repository. Your feedback helps us improve and expand this resource.
- WordPress version: 5.0 or higher.
- PHP version: 7.4 or higher.
This repository is licensed under the MIT License. Feel free to use, modify, and distribute the code in accordance with the license terms.
This repository is maintained by Web Lifter. If you have any questions or need support, feel free to reach out!
For any questions or inquiries, please contact [email protected].
Thank you for visiting the WordPress Functionality repository. Happy coding! 🎉