Title: entering code
Last modified: August 24, 2016

---

# entering code

 *  Resolved [kentannenbaum](https://wordpress.org/support/users/kentannenbaum/)
 * (@kentannenbaum)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/)
 * I have a sharpness issue with uploaded photos that are already sized correctly.
 * I’ve gotten advice about what code to insert. The question is: do I access the
   theme content functions:php in the FILE MANAGER at the host site OR is it entered
   from the DASHBOARD > Appearance > theme > functions:php
 * Thanks very much. Ken

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

 *  [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * (@santeven)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161779)
 * Dashboard>appearance>editor>functions.php would be THE SAME as File Manager> /
   wp-content/themes/*active_theme*/functions.php
 * EDITED: Good call by [@questas_admin](https://wordpress.org/support/users/questas_admin/)…
   Use a child theme or a custom css feature via plugin instead of editing directly
   the active theme.
 *  [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161788)
 * The best way to make changes like this to a theme is to use a child theme, so
   your tweaks won’t be overwritten when updating the theme. Here are some guides
   in case you haven’t made one before:
    [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
   [http://op111.net/53/](http://op111.net/53/)
 *  Thread Starter [kentannenbaum](https://wordpress.org/support/users/kentannenbaum/)
 * (@kentannenbaum)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161793)
 * Thanks very much. Ken
 *  [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161798)
 * If you make a mistake with your functions.php file your site will likely go down,
   If you do it in a child theme, then all you need to do is rename the funtions
   file in your child theme to something else by FTP and your site will come back
   online, then you can figure out any mistakes.
 *  Thread Starter [kentannenbaum](https://wordpress.org/support/users/kentannenbaum/)
 * (@kentannenbaum)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161853)
 * Again, THANKS for the input. I’ll dig through it all. Back to my issue (besides
   the coding placement). What’s going on is a softness to SOME of my photos, all
   sized properly before upload at 600px x 72dpi. What’s been recommended in the
   forum are a couple of code solutions that remove the size attributes before upload
   which some coders think might solve the problem of softness. If anyone has a 
   further opinion in this thread I’d love to hear it. Here are two suggestions 
   I came across:
    FIRST SOLUTION: dd_filter( ‘post_thumbnail_html’, ‘remove_width_attribute’,
   10 ); add_filter( ‘image_send_to_editor’, ‘remove_width_attribute’, 10 );
 * function remove_width_attribute( $html ) {
    $html = preg_replace( ‘/(width|height)
   =”\d*”\s/’, “”, $html ); return $html; }
 * SECOND SOLUTION:
    function gpp_jpeg_quality_callback($arg) { return (int)100;}
 * add_filter(‘jpeg_quality’, ‘gpp_jpeg_quality_callback’);
 * HERE’S MY SITE: [http://kentannenbaum.com](http://kentannenbaum.com)
 *  [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * (@santeven)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161855)
 * [@kentannenbaum](https://wordpress.org/support/users/kentannenbaum/) You might
   have better results if you mark this topic “entering code” as resolved, since
   we have discussed where to enter the code. Then create perhaps a new topic with
   more specific title like “need code to improve jpeg quality” … Good Luck
 *  Thread Starter [kentannenbaum](https://wordpress.org/support/users/kentannenbaum/)
 * (@kentannenbaum)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161858)
 * Good idea…I’ll do that. Thanks.
 *  [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * (@santeven)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161865)
 * You are welcome, please mark this topic resolved?
 * And maybe also this one as it’s sort of a duplicate? : [https://wordpress.org/support/topic/reduced-sharpness-of-images?replies=2](https://wordpress.org/support/topic/reduced-sharpness-of-images?replies=2)
 *  Thread Starter [kentannenbaum](https://wordpress.org/support/users/kentannenbaum/)
 * (@kentannenbaum)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161866)
 * yes, thank you.

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

The topic ‘entering code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [kentannenbaum](https://wordpress.org/support/users/kentannenbaum/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/entering-code/#post-6161866)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
