WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding a search box to Pilcrow's menu (6 posts)

  1. jmartinez889
    Member
    Posted 2 years ago #

    I'd like to add a search box, flush right, to my navigation menu. I'm using the Pilcrow theme:

    noparticulartheme.com

    What code do I need to add/edit, and where would I do that? Thanks!

  2. scsmash3r
    Member
    Posted 2 years ago #

    Heya, jmartinez889.

    Since there is no widget area at that place, where you want your search box to be, source code of template needs to be modified properly. To do that, yo need to have at least basic PHP skills and know basic PHP language structure, etc.

  3. DXigner Resources
    Member
    Posted 2 years ago #

    You may need to play with CSS

    go to style.css at Appearance - Editor
    Add this following script at bottom
    /* Top Search Bar */
    #nav .topsearchbar {
    float: right;
    width: 250px;
    height: 20px;
    }

    then go to Header(header.php) in Editor
    find the script:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The searchbar should be appeared at the navigation part.

    Hope this helps.

    [sig moderated as per the Forum Rules]

  4. jmartinez889
    Member
    Posted 2 years ago #

    That worked! Thanks very much. Is there a way to get it completely flush right? Much, much appreciated!

  5. jmartinez889
    Member
    Posted 2 years ago #

    ...Never mind, figured it out! Thanks!

  6. DXigner Resources
    Member
    Posted 2 years ago #

    :) No problem.

Topic Closed

This topic has been closed to new replies.

About this Topic