Tagged: Inspirations, Themes Custom CSS/JS
- AuthorPosts
- March 12, 2021 at 12:32 pm #34914mohammed alghamdiGuest
Notice
: WP_Scripts::localize was called
incorrectly
. The
$l10n
parameter must be an array. To pass arbitrary data to scripts, use the
wp_add_inline_script()
function instead. Please see
Debugging in WordPress
for more information. (This message was added in version 5.7.0.) in
/home/perfec42/public_html/wp-includes/functions.php
on line
5313this messages changed the design of our website its like shifted down and the menu despair
please help fix this problem ASAPMarch 12, 2021 at 2:35 pm #34949Jesse OwensKeymasterHi Mohammed-
Thanks for reaching out, I’m sorry to hear about the error with your menu display.
The notice that you’re seeing is a new addition to WordPress 5.7, but in our testing this wasn’t caused by any of the BoldGrid Plugins or Themes. You can find out which plugin is causing it with the Query Monitor plugin.
WordPress developers recommend disabling WP_DEBUG to avoid seeing this message. It’s not considered a good practice to keep debugging active on your production site.
The issue with your menu isn’t related to that message, however. It has to do with the way the wedge shapes in the Wedge theme are created. You can fix this by adding a little bit of custom CSS.
Navigate to Customize > Advanced > Custom JS & CSS and paste this snippet into your Custom Theme CSS:
.entry-content > .bgtfw > .container-fluid::before, .entry-content > .bgtfw > .container-fluid::after { top: 0px; }
- This reply was modified 3 years, 9 months ago by Jesse Owens. Reason: Add disabling wp_debug to avoid error
March 15, 2021 at 12:12 pm #34958mohammed alghamdiGuestthanks Jesse Owens
I changed the theme and its looks better now
- AuthorPosts
- The topic ‘Error message Notice : WP_Scripts::localize was called incorrectly’ is closed to new replies.