Aditya Dhade
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Developing BlockHello @arakchievilya,
From the errors you provided probably your
block.jsonorpackage.jsonfiles contains invalid syntax for the property name.
Like in.jsonfiles you need to make sure that your property name should be double-quoted for example.{
name: "My block name" # This is not valid json
"name": "My block name" # This is valid json
}I would recommend you to check the
block.jsonorpackage.jsonfiles for the above mistakes.Hope this helps!
Forum: Developing with WordPress
In reply to: cannot create/post rendered block through APIHello @sgt621,
The issue you’re experiencing with the error messagerest_no_routewhen trying to call the REST API using the{{baseUrl}}/?rest_route=/wp/v2/block-renderer/postman-generated-blockis likely happening because the routepostman-generated-blockit trying to to find thepostman-generated-blockblockin WordPress default blocks but suchblockdoes not exist in the WordPress.
You can try accessing blocks like archives, search which should work.{{baseUrl}}/?rest_route=/wp/v2/block-renderer/core/archives&context=editAlso add authentication the request may require authentication.
Here’s how to add it in Postman:
- In Postman, go to the Authorization tab.
- Select Basic Auth.
- You will need a username and an application password.
To generate an application password in WordPress, follow these steps:
- Navigate to Users > Profile in the WordPress admin dashboard.
- Scroll down to Application Passwords.
- Give it a name and click Add New Application Password.
- Copy the generated password and use it in Postman.
You can follow this tutorial:
https://dev.to/david_woolf/using-postman-with-the-wordpress-rest-api-41bk#basic-authentication-with-application-passwordsHope this helps!
- This reply was modified 1 year, 7 months ago by Aditya Dhade.
Forum: Fixing WordPress
In reply to: Menu SubItems covered by Parent Menu ItemsHello @ricknu2208,
I tried to find why this is happening, This is probably happening because the menu should havez-indexset torevertbut theelementoris setting it to0and You have probably added the custom CSS to make itz-index: 9999 !important.
To solve this you can replace your custom CSS with below to solve the issue..elementor-nav-menu--main li.menu-item {
z-index: revert !important;
}For the issue of the search icon on this page https://freshhope.us/product-category/short-term-courses/ . The problem is the search icon has
z-index: 9and the header hasz-index: 8.To solve this you can place this CSS to make the header come on top of everything.
.elementor-sticky--active {
z-index: 99 !important;
}Hope this helps!