Menu entry Pending on creation
-
Hello,
I am building a childtemplate for a paid template and whenever i try to add a Page to the Menu it adds just a (Pending) Custom Link. If i try to save it it does not save the menu. If i switch to the parent template or any other template this error does not occure. However I checked the http Request and it gets a Response with the menu entry, also there is no error in the console and I also switched on the wordpress debugging, but there are no errors. This is my first wordpress project so could you please tell me how to debug this kind of error?I also just include one javascript file like this:
add_action( 'wp_enqueue_scripts', 'enqueue_scripts' ); function enqueue_scripts(){ wp_enqueue_script('script', get_stylesheet_directory_uri() . '/js/wp-core.min.js', array('jquery'), 1.1, true); }[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
I dont think this code gets included in the backend so it should not make any problems right?
-
This topic was modified 8 years, 5 months ago by
luiginator.
-
This topic was modified 8 years, 5 months ago by
luiginator.
-
This topic was modified 8 years, 5 months ago by
bdbrown.
-
This topic was modified 8 years, 5 months ago by
-
First of all, we need to establish consistent terminology so we can be sure we’re talking about the same thing. Your use of “template” is incorrect in the WP/English universe. I think you intend to mean “theme”, as in
“I am building a child theme for a paid theme and …. If i switch to the parent theme or any other theme…”“Template” has a separate, different meaning. Templates are the individual files within a theme that are responsible for generating output in response to a request.
Are you saying that you pick a page in the pages section of the menu screen, then add it to the menu, where it shows up as a custom link item? I’m not sure where “pending” is coming from, I’ve never seen that in menus. Could it be the page you added is not published? That could be a problem.
Then you say the response contains the added item? So then it was saved after all? Is the problem that it is not displayed? What response do you mean? Front end or back end?
Do you have any caching active? Have you cleared your browser cache and reloaded the page afresh? It sounds like the problem is within your child theme. If the item is in the response but not displayed, you probably have a CSS issue. Use your browser’s developer tools to inspect the related HTML and CSS. Find which rule is causing the issue and work out an alternative that works. Then adjust your child CSS to utilize the adjustment that you worked out.
The script would have no effect in the backend, you can verify this by checking the page source, there should not be any meta link reference to this file.
The topic ‘Menu entry Pending on creation’ is closed to new replies.