Giter Site home page Giter Site logo

socenpauriba / chihuapi4elementor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 341 KB

Replaces Elementor placeholder image with a random dog image from dog.ceo API

License: GNU General Public License v3.0

PHP 100.00%
elementor silly-project wordpress

chihuapi4elementor's Introduction

ChihuAPI for Elementor

ChihuAPI for Elementor

ChihuAPI for Elementor Plugin is a fun project aimed at replacing Elementor placeholder images with random chihuahua images fetched from the dog.ceo API. Instead of displaying the default placeholder image provided by Elementor, this plugin adds a touch of humor by displaying adorable dog images as placeholders.

Why not using a hook?

Initially, I attempted to use the elementor/utils/get_placeholder_image_src hook provided by Elementor to replace placeholder images. However, it was discovered that this hook is only executed once during the page rendering process, resulting in all placeholder images using the same URL generated by the hook.

To overcome this limitation and ensure that each placeholder image is unique, the plugin instead dynamically replaces placeholder images using JavaScript after the page has fully loaded. This approach allows for a diverse range of dog images to be displayed as placeholders, enhancing the developer experience.

How to Contribute

Contributions to this project are welcome and encouraged! If you have ideas for improvements, additional features, or bug fixes, please feel free to open an issue or submit a pull request. Together, we can make this plugin even more fun and delightful for users.

License

This project is licensed under the GNU General Public License v3.0. Feel free to modify, distribute, and use the code in your own projects.

GPLv3 License

chihuapi4elementor's People

Contributors

socenpauriba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.