WordPress.org

Ready to get started?Download WordPress

Forums

Serene
when wrong permalink is typed the page has 2 search bars (3 posts)

  1. igironi
    Member
    Posted 4 months ago #

    an example of this is:
    http://www.gorm.tk/g

  2. stephencottontail
    Member
    Posted 4 months ago #

    Short version: It's a bug in the theme. Until the developer fixes it, a temporary fix would be to rename sidebar-footer.php to sidebar.php.

    Long version: What's happening is that on your 404 page, your theme calls get_search_form(). That creates the first search form. Then your theme calls get_sidebar(), except that your theme doesn't contain a sidebar.php, it only contains a sidebar-footer.php. So WordPress calls in the default sidebar.php, which also calls get_search_form(), leading to duplicate search bars.

  3. igironi
    Member
    Posted 3 weeks ago #

    thanks

Reply

You must log in to post.

About this Theme

About this Topic