Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to add new featured image sizes to a child of the WP "Responsive" theme?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #188684
    Antonio Maracano
    Participant

    I’m currently creating a child of Cyberchimps’ Responsive theme, and I can’t figure out how to add custom featured image sizes to the child theme.

    I was able to do it by modifying the parent functions.php file. This is how I did it, after add_theme_support( ‘post-thumbnails’ ); I wrote the following:

    add_image_size(‘banner-image’, 1000, 500, true); // THIS IS MY NEW SIZE

    It worked, however, modifying the parent file is not the correct way of doing things, can anybody help me?

    #188998
    Ilan Firsov
    Participant

    If this is still relevant, you can create a function.php file in your child theme directory and add the code to that. That function.php file will be loaded in addition to the parent theme file.
    WordPress docs on child themes

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.