Skip to content

A collection of powerful and reusable code snippets, scripts, and utilities to extend and enhance the functionality of WordPress websites. This repository provides tools for developers to implement custom features, optimise performance, and improve SEO and usability.

Notifications You must be signed in to change notification settings

web-lifter/wordpress-functionality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Functionality

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.


Repository Structure

The repository is organised as follows:

  1. 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.

  2. 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.

  1. 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.


Getting Started

To use the snippets and scripts:

  1. Clone the repository:

    git clone https://github.com/web-lifter/wordpress-functionality.git
  2. Add the desired code snippet or script to your WordPress theme or plugin.

  3. Follow the usage instructions provided in the respective file's comments.


Contributions

We welcome contributions! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name
  3. Make your changes and commit them: git commit -m 'Add new feature'
  4. Push to the branch: git push origin feature-branch-name
  5. Submit a pull request.

Suggestions and Issues

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.


Requirements

  • WordPress version: 5.0 or higher.
  • PHP version: 7.4 or higher.

License

This repository is licensed under the MIT License. Feel free to use, modify, and distribute the code in accordance with the license terms.


Author

This repository is maintained by Web Lifter. If you have any questions or need support, feel free to reach out!


Contact

For any questions or inquiries, please contact [email protected].


Thank you for visiting the WordPress Functionality repository. Happy coding! 🎉

About

A collection of powerful and reusable code snippets, scripts, and utilities to extend and enhance the functionality of WordPress websites. This repository provides tools for developers to implement custom features, optimise performance, and improve SEO and usability.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project