Jump to content

brambleiah

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by brambleiah

  1. I must of done it wrong because I get a big fat error on my site..

     

    Did I not move it right??->

    /**
    * Display search widget.
    *
    * @since 2.2.0
    *
    * @param array $args Widget arguments.
    */
    get_search_form();
    function wp_widget_search($args) {
    extract($args);
    echo $before_widget;
    
    // Use current theme search form if it exists
    
    
    echo $after_widget;
    }
    
    /**
    * Display archives widget.
    *
    * @since 2.2.0
    *
    * @param array $args Widget arguments.
    

  2. Hello! So, I made a really dumb mistake. I am new to Wordpress and I have published pages on my site. I tried to get into the code of widgets.php, but stupidly, I worked on the original desktop file instead of the one on my server and I uploaded it which replaced it. I should of downloaded widgets.php from my server. I spaced out. So, now I get this error on my page:

     

    Fatal error: Call to undefined function: get_search_form() in /home/borrowde/public_html/iremembermovies/wp-includes/widgets.php on line 771

     

    Here is line 771 (of widgets.php):

     

    /**
    * Display search widget.
    *
    * @since 2.2.0
    *
    * @param array $args Widget arguments.
    */
    function wp_widget_search($args) {
    extract($args);
    echo $before_widget;
    
    // Use current theme search form if it exists
    get_search_form();
    
    echo $after_widget;
    }
    

     

    btw~ I was originally trying to just change the amount of "Recent Posts" my page shows by following this tutorial: here.. Which I'm sure would of worked great, but I was an idiot and I probably added a 'blank' file with no recent search widget options.

     

    My site: http://www.iremembermovies.com

     

    Please help!!

     

    Thank you!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.