Aditya Dhade
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Developing BlockHello @arakchievilya,
From the errors you provided probably your
block.json
orpackage.json
files contains invalid syntax for the property name.
Like in.json
files 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.json
orpackage.json
files 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_route
when trying to call the REST API using the{{baseUrl}}/?rest_route=/wp/v2/block-renderer/postman-generated-block
is likely happening because the routepostman-generated-block
it trying to to find thepostman-generated-block
block
in WordPress default blocks but suchblock
does 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=edit
Also 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-passwords
Hope this helps!
- This reply was modified 1 month, 1 week 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-index
set torevert
but theelementor
is setting it to0
and 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: 9
and 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!