• [email protected]

    (@brandonhallncyahoocom)


    Hello everyone,

    I am new to WordPress. I have very limited experience with html and css. I am trying to add a search bar in my sidebar. The code is as follows:

    <div id="searchwrapper"><form action="">
    <input type="text" class="searchbox" name="s" value="" />
    <input type="image" src="THE_BLANK_SUBMIT_BUTTON_IMAGE" class="searchbox_submit" value="" />
    </form>
    </div>

    Do I just go into the editor, click sidebar, and paste that code?

    **Bonus: can anyone tell me where to add padding to get the “subscribe” box off the left border?

    https://www.startreinventing.com/

    P.S. I am trying to advance my knowledge in html and css so please understand I am trying!!

    Thanks guys!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like you got it done?

    But to answer your question, do not modify theme files – your changes will be lost when the theme is updated.

    Sidebars typically contain widgets so that’s where you should put that code.

    Can’t you just add a Search widget into your sidebar? Go to Appearance > Widgets and there should be a Search widget that you can just drag & drop into your sidebar at the spot you want. No reason to add code if there’s a plugin or widget that does what you want already available.

    Thread Starter [email protected]

    (@brandonhallncyahoocom)

    Yeah the current search bar is the widget version. I just wasn’t too fond of its appearance.

    Can anyone comment about the subscription box? How do I get it off the left margin?

    Thanks guys!

    Can anyone comment about the subscription box? How do I get it off the left margin?

    You can try adding this CSS rule:

    #subscribe-blog-blog_subscription-2 p {
       margin: auto 8px;
    }

    If your theme doesn’t have an option to add custom CSS, you can use a stylesheet manager like Lazyest Stylesheet or Custom CSS Manager.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar Question’ is closed to new replies.