Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #57139
    danielski
    Member

    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
    Daniel

    #57175
    Sakin
    Keymaster

    @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.

    #57183
    danielski
    Member

    well, I want to change some <span> elements on <div> in catchbase-breadcrumb.php

    #57184
    danielski
    Member

    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`

    #57376
    Sakin
    Keymaster

    @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 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.

    #57379
    danielski
    Member

    Thanks 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 categories

    Thanks again.

    #57476
    Sakin
    Keymaster

    @danielski: You can add the following code in your child theme functions.php file.
    https://gist.github.com/sakinshrestha/40517f67f327631181e7#file-gistfile1-php

    #57509
    danielski
    Member

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘override files in "inc" folder’ is closed to new replies.