• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Javascript broken (search-bar.js) – help

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › StudioPress Themes › Genesis Sample › Javascript broken (search-bar.js) – help

This topic is: not resolved

Tagged: javascript, search bar

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 4 months ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 2, 2021 at 5:29 pm #504367
    billdoy
    Participant

    Hi. I recently purchased a website using the genesis-sample theme. Audit reports are showing I have "broken javascript" on every page of the site. This link is coming up 404 on every page:
    /wp-content/themes/genesis-sample/js/search-bar.js

    There is a script called on every page to this javascript file, but I cannot find this file or even the 'js' folder anywhere on the server. I also noticed the script is deferred, if that makes a difference. There is no front-end issue and the search box works fine.

    I can handle html and css, but I'm at a loss when it comes to javascript and google searches have been futile.

    Can anyone point me in the right direction?

    August 4, 2021 at 6:51 am #504371
    Victor Font
    Moderator

    There is no js directory that comes with the Genesis Sample theme. So, a 404 response is correct for this theme. The question is, where is this link coming from? It could be coming from custom programming that someone attempted before you owned the site. I would look at functions.php or files that are loaded in functions.php for custom code. If that doesn't work, are there any custom plugins?

    If I were troubleshooting this, I would download the entire theme directory to my local environment and use the search tools on my Mac so I can see if that text string is anywhere in any theme file.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble