Title: Code php wrongly and wp page stop working
Last modified: August 21, 2016

---

# Code php wrongly and wp page stop working

 *  Resolved [portega](https://wordpress.org/support/users/portega/)
 * (@portega)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/)
 * Hi,
    Im doing a e-commerce website, and I added this exact code
 * <?php echo do_shortcode(‘[yith_woocommerce_ajax_search]’); ?>
 * into functions.php
 * After that, my wordpress admin page and website stop working, only showing me
   a blank page with no error sign, nor anything else.
 * How can I fix this error?
 * PS: Im a newbie, so I don’t understand that well programing language. Please 
   have patience with me.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591205)
 * You do not put shortcodes in the functions.php file. You put them where you want
   the shortcode to run. Most likely a page or post.
 *  Thread Starter [portega](https://wordpress.org/support/users/portega/)
 * (@portega)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591211)
 * yes, thanx, now I know that. But It cost me a lot!
 * Do you know how do I fix the problem? Cause I can’t get to the dashboard, everything
   is in blank.
 *  [FriendlyWP](https://wordpress.org/support/users/mmcginnis/)
 * (@mmcginnis)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591212)
 * Don’t put that code into functions.php. It should go on the theme file where 
   you want it to display, maybe page.php or single.php. If you put it after `the_content()`
   on page.php for instance, it would display on every page of your site after the
   content.
 * If you want to use the shortcode in a specific page or post, you’d go into the
   control panel and edit the page, then insert just this where you want it to appear:
 * `[yith_woocommerce_ajax_search]`
 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591255)
 * Just remove it from the functions.php file. If you were editing the code through
   the admin, use can do what you need to by using ftp if you have access to the
   server.
 *  Thread Starter [portega](https://wordpress.org/support/users/portega/)
 * (@portega)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591266)
 * [@graphical_force](https://wordpress.org/support/users/graphical_force/) Im editing
   the code through the admin, and I do have access to the server. The only problem
   is that I don’t know how to use it very well, so i can’t quite remove it by myself.
   
   Could you guide me please? Like step by step instructions?
 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591279)
 * This should help you: [http://codex.wordpress.org/FTP_Clients](http://codex.wordpress.org/FTP_Clients)
 *  [FriendlyWP](https://wordpress.org/support/users/mmcginnis/)
 * (@mmcginnis)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591283)
 * … and once you FTP in, find your theme in wp-content/themes, download the functions.
   php file – make a copy as a backup – then edit it and re-upload into your theme.
 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591293)
 * Or if you are editing a theme that is not a custom one that you wrote, you should
   use a child theme: [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 *  Thread Starter [portega](https://wordpress.org/support/users/portega/)
 * (@portega)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591352)
 * It worked!! Thank you so much Michelle and graphical_force!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Code php wrongly and wp page stop working’ is closed to new replies.

## Tags

 * [admin page](https://wordpress.org/support/topic-tag/admin-page/)
 * [php code](https://wordpress.org/support/topic-tag/php-code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [portega](https://wordpress.org/support/users/portega/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/code-php-wrongly-and-wp-page-stop-working/#post-4591352)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
