In case you have a website where each post or a custom post type, requires a featured image, there is a chance, the client might ignore that when publishing. In this tutorial, we’ll learn how to disable the publish/update button if there is no featured image added.
Read MoreCategory: JavaScript
Gutenberg Components and Invalid Hook Call Error in React. What do do?
When you’re using Gutenberg Components (Packages) in a separate Web App (maybe Headless WordPress app), you might encounter the error that shows you the Invalid Hook Call error in React.
Read MoreUltimate Guide for JavaScript in Elementor Widgets
Elementor Widgets are a great way to build your landing pages when using Elementor. Mostly, widgets are done through PHP but if you need some of the functionality on the front end or for the user editing the page, you will need to use JavaScript.
In this tutorial, we will learn about all the methods you can use with their JavaScript widget model and check for examples of the same.
Read MoreHeadless WordPress: Displaying a Single Article
In the last two articles we have shown how to get the articles, display them and also use the React Router for pagination. In this tutorial we will now see how to show a single article using the React Router in out Headless WodPress application.
Read MoreHeadless WordPress: React Router Pagination
In the last tutorial we have loaded articles when clicking a pagination button. If you would like to load articles even from a page parameter from URL, we need to implement a route. We will use the React Router to paginate through pages.
Read More