Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34914
    mohammed alghamdi
    Guest

    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
    5313

    this messages changed the design of our website its like shifted down and the menu despair
    please help fix this problem ASAP

    #34949
    Jesse Owens
    Keymaster

    Hi 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, 1 month ago by Jesse Owens. Reason: Add disabling wp_debug to avoid error
    #34958
    mohammed alghamdi
    Guest

    thanks Jesse Owens

    I changed the theme and its looks better now

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Error message Notice : WP_Scripts::localize was called incorrectly’ is closed to new replies.