• Resolved T_ed

    (@t_ed)


    Hi there. Can someone give a litle help to a coding noobie?) In mother theme functions.php file I have this code:
    // Thumbnail sizes
    add_image_size( ‘thumb-small’, 160, 160, true);
    add_image_size( ‘thumb-standard’, 320, 320, true);
    add_image_size( ‘thumb-medium’, 520, 245, true );
    add_image_size( ‘thumb-large’, 720, 340, true );

    In _child_ theme I need replace it by this :
    // Thumbnail sizes
    add_image_size( ‘thumb-small’, 160, 160);
    add_image_size( ‘thumb-standard’, 320, 320);
    add_image_size( ‘thumb-medium’, 520, 245);
    add_image_size( ‘thumb-large’, 720, 340);
    It means just without “true”. I read manual on this site, but as I said, I am just noobie and didn`t understand anyway.
    I understand thats a trivial question, sorry about that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi T_ed. You would need to copy the entire function alx_setup() from the parent theme functions.php file to your child theme functions.php file, then make the changes in the child theme file. You would copy just the function, not the “function exists” line, or the “add action” line, or the last closing bracket “}” above the “add action” line. The function will then be loaded from your child theme. When the parent function tries to load it will see that it’s already loaded and won’t load again.

    Thread Starter T_ed

    (@t_ed)

    Thank you, bdbrown! It works ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme`s functions.php editing .’ is closed to new replies.