Okay
  Public Ticket #3760518
element has no “src” attribute. Media resource load failed.
Open

Comments

  •  4
    Mr Saeed started the conversation

    Hi Salient Support Team

    When using a video as the background in the menu section, this error appears in the browser.

    <source> element has no “src” attribute. Media resource load failed. 
    All candidate resources failed to load. Media load paused.

    To resolve this issue, which is present in Salient Core, go to line 159 in the class-nectar-wp-menu-style-manager.php file and replace this code:

    $video_layer .= '<source data-nectar-video-src="'. esc_url($menu_item_options['menu_item_link_bg_img_video']) .'"  type="video/'.$video_src_type.'">';
    

    with this code:

    $video_layer .= '<source data-nectar-video-src="'. esc_url($menu_item_options['menu_item_link_bg_img_video']) .'" src="'. esc_url($menu_item_options['menu_item_link_bg_img_video']) .'" type="video/'.$video_src_type.'">';
    

    After this change, the error is resolved, and it functions correctly.

    Thank you and best regards.

  •  1,918
    Judith replied

    Hello Mr Saeed,

    Thanks for writing to us.

    We haven't received any report related to this error and also we haven't replicated it on our end. However we are glad you were able to resolve the issue and we appreciate you sharing the workaround with us.

     If you have any more questions or run into any problems, please feel free to reach out.

    Best regards,

  •  4
    Mr Saeed replied

    Hello Judith , I hope you're having a great start to your week!

    Thank you for your follow-up and the time you dedicate to the powerful Salient theme. Please keep in mind that most users are general users, and few, like us, examine every detail so thoroughly. We carefully review everything, from minor console errors and warnings to advanced analyzers, and it’s very important for us that our site is accessible without any errors.

    Once again, thank you, and I wish you success.

  •  1,918
    Judith replied

    Hi Mr Saeed,

    Thanks for writing back.

    Thank you so much for your kind words! I hope your week is off to a wonderful start as well.

    I appreciate your recognition of the time we dedicate to the Salient theme. It’s rewarding to work with clients who value the details as much as we do! Your diligence and attention to every aspect, from minor console errors to accessibility standards, truly make a difference in the quality and functionality of your site.

    Thank you once again for your feedback and support, and I wish you continued success as well!

    Warm regards,

  •   Mr Saeed replied privately