Tagged: child theme
May 5, 2015 at 2:48 am #57139
I am trying to create child theme and I wonder how can I override files in “inc” folder? I have created “inc” folder and uploaded file in it but it doesn’t override parent file.
Thanks in advance
DanielMay 5, 2015 at 12:36 pm #57175
@danielski: You cannot overwrite inc folder like that. Can you let me know what are you trying to do it. So, that I can guide. You can actually copy functions from those files and add in your child theme functions and edit it.May 5, 2015 at 1:57 pm #57183
well, I want to change some <span> elements on <div> in catchbase-breadcrumb.phpMay 5, 2015 at 2:08 pm #57184
and I want to change feature image size, I think I have to do this in catchbase-core.php, am I right?
`add_theme_support( ‘post-thumbnails’ );
// Add Catchbase custom image sizes
add_image_size( ‘catchbase-featured-content’, 400, 225, true); // used in Featured Content Options Ratio 16:9
add_image_size( ‘catchbase-slider’, 1200, 514, true); // used in Featured Slider Ratio 21:9
//One Archive Image
add_image_size( ‘catchbase-featured’, 780, 439, true); // used in Archive Landecape Ratio 16:9`May 8, 2015 at 10:16 am #57376
1. For breadcrumb, both the function that you will find in catchbase-breadcrumb.php is child theme ready. So, just copy those function in your child theme functions.php file and edit it.
2. Yes, that image size is defined in catchbase-core.php file. To change that, just copy whole function
catchbase_setup()to your child theme functions.php file and edit it. After you change the image size, don’t forget to regenerate the thumbnail using Regenerate Thumbnail plugin.May 8, 2015 at 12:11 pm #57379May 10, 2015 at 9:47 am #57476
@danielski: You can add the following code in your child theme functions.php file.
https://gist.github.com/sakinshrestha/40517f67f327631181e7#file-gistfile1-phpMay 11, 2015 at 12:48 pm #57509
- The topic ‘override files in "inc" folder’ is closed to new replies.