WordPress.org

Forums

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

  1. igironi
    Member
    Posted 1 year ago #

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

  2. stephencottontail
    Member
    Posted 1 year 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 11 months ago #

    thanks

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic