Title: Edit functions php
Last modified: May 26, 2020

---

# Edit functions php

 *  [met45](https://wordpress.org/support/users/met45/)
 * (@met45)
 * [6 years ago](https://wordpress.org/support/topic/edit-functions-php/)
 * Hi!
 * I don’t understand coding, really, not my world.
    But somebody please put this
   code
 *     ```
       add_filter( 'da_detail_image_size', 'my_da_detail_image_size', 10, 4 );
       function my_da_detail_image_size( $size, $hotspot, $img_post, $settings )
       {return 'full';};
       ```
   
 * inside this code
 *     ```
       <?php
       // Exit if accessed directly
       if ( !defined( 'ABSPATH' ) ) exit;
   
       // BEGIN ENQUEUE PARENT ACTION
       // AUTO GENERATED - Do not modify or remove comment markers above or below:
   
       if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
           function chld_thm_cfg_locale_css( $uri ){
               if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
                   $uri = get_template_directory_uri() . '/rtl.css';
               return $uri;
           }
       endif;
       add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
   
       if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
           function chld_thm_cfg_parent_css() {
               wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array(  ) );
           }
       endif;
       add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
   
       // END ENQUEUE PARENT ACTION
       ```
   
 * Thank you
    -  This topic was modified 6 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years ago](https://wordpress.org/support/topic/edit-functions-php/#post-12894861)
 * add it at the end of the file.
 *  Thread Starter [met45](https://wordpress.org/support/users/met45/)
 * (@met45)
 * [6 years ago](https://wordpress.org/support/topic/edit-functions-php/#post-12895128)
 * Like this?
 *     ```
       <?php
       // Exit if accessed directly
       if ( !defined( 'ABSPATH' ) ) exit;
   
       // BEGIN ENQUEUE PARENT ACTION
       // AUTO GENERATED - Do not modify or remove comment markers above or below:
   
       if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
           function chld_thm_cfg_locale_css( $uri ){
               if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
                   $uri = get_template_directory_uri() . '/rtl.css';
               return $uri;
           }
       endif;
       add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
   
       if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
           function chld_thm_cfg_parent_css() {
               wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array(  ) );
           }
       endif;
       add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
   
       add_filter( 'da_detail_image_size', 'my_da_detail_image_size', 10, 4 );
       function my_da_detail_image_size( $size, $hotspot, $img_post, $settings )
       {return 'full';};
       // END ENQUEUE PARENT ACTION
       ```
   
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years ago](https://wordpress.org/support/topic/edit-functions-php/#post-12895283)
 * put it after that last comment so you know where that stuff came from. But yeah,
   that should work anyway.

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

The topic ‘Edit functions php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/edit-functions-php/#post-12895283)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
