Tagged: child theme
- This topic has 7 replies, 2 voices, and was last updated 8 years, 11 months ago by danielski.
-
AuthorPosts
-
May 5, 2015 at 2:48 am #57139danielskiMember
Hi
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 #57175SakinKeymaster@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 #57183danielskiMemberwell, I want to change some <span> elements on <div> in catchbase-breadcrumb.php
May 5, 2015 at 2:08 pm #57184danielskiMemberand 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:9add_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 #57376SakinKeymaster@danielski:
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 functioncatchbase_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 #57379danielskiMemberThanks Sakin.
Can you give me some tips about where this slash: http://screencast.com/t/EawDbHj0Nu5E comes from? It shows up only on second level of categories. Look, here is ok:
http://screencast.com/t/rXMq1JcY – post
http://screencast.com/t/7KdofRrVxz – first level of categoriesThanks again.
May 10, 2015 at 9:47 am #57476SakinKeymaster@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 #57509danielskiMemberThanks
-
AuthorPosts
- The topic ‘override files in "inc" folder’ is closed to new replies.