Default sidebar... where is it located in php? (3 posts)

  1. Skeary
    Posted 6 years ago #

    This is probably pretty obvious but I've searched both my wordpress files and the support here and not got an answer.

    Where is the code for the default sidebar located? It isn't that of either the default or classic theme.. and I don't know where it'd be in the wordpress files themselves (i've looked for something somewhere else called sidebar.php to no avail).

    I want to start with the basic default widget-ready sidebar because I only want to make a very small change (changing "search" to "go" in the search button..)

  2. Rev. Voodoo
    Posted 6 years ago #

    the sidebar code for the default theme is sidebar.php

    the sidebar gets registered in functions.php

    searchform.php handles the search form

  3. Skeary
    Posted 6 years ago #

    that's what I thought.. themes\default\sidebar.php.. but that sidebar.php has a number things like "You are currently browsing the archives for the X category" that don't show up when I don't have a sidebar.php in my theme's directory, but do show up if I don't have any sidebar defined other than in functions php doing widgets..

    right now my installation of wp does not have a searchform.php anywhere... i see some themes on other installations that do, but i was wondering where the default is defined so I can nab that code and modify it?


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.