• Hi,

    I just updates to the last Customizr version and the changes I have made to some of the php files (parts/class-content-post_navigation.php , parts/class-content-comments.php) are being ignored. If I do the same changes to the same files directly in the Customizr theme they show up. Just before the update, everuthing was working fine. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Had this exact same problem. For now I’ve resorted to copying my child pages over to the main template.

    Unfortunately I have the same issue on several websites.
    I just did a quick compare between my custom files and the new ones and it turned out that some of the filters have been changed without considering the option for the old ones.
    For i.e. in class-header-header_main.php
    tc_logo_title_display
    is now called
    tc_logo_text_display

    and in class-content-post.php
    class TC_post
    is now called
    class TC_post_list

    and so on. I understand they are improving this awesome template, but they might have forgotten all the snippets people might have customized.

    Let’s see if there is a work around for this, it might take few days though to figure out what to do properly.

    If you used Center Header Block Items, I published an update when 3.0.14 was released. See here

    Not had any other snippets reported yet.

    Thread Starter sagilca

    (@sagilca)

    For me it’s just about any custom change I’ve made into the php files. I don’t get it?

    Two examples:

    1) for the navigation I am using a plugin and I call it editing the “file class-content-post_navigation.php” changing the code copied below. Before teh update it was working, now it only works if I edit directly the Customizr file. This happens with several similar changes in several files. Am I missing something?

    Change to class-content-post_navigation.php:
    <?php elseif ( $wp_query->max_num_pages > 1 && !is_404() && !tc__f( ‘__is_home_empty’) ) : ?>

    <nav id=”<?php echo $html_id; ?>” class=”navigation” role=”navigation”>
    <?php wp_pagenavi(); ?>
    </nav><!– #<?php echo $html_id; ?> .navigation –>

    <?php endif; ?>

    2) I am using a related plugins and I call it at class-content-post.php adding <?php echo do_shortcode( ‘[manual_related_posts]’ ); ?>
    after <?php do_action( ‘__after_content’ ) ?> . It was working OK but after the upgrade doesn’t show up.

    Theme Author presscustomizr

    (@nikeo)

    Hi guys,
    This is a bug.
    Here’s a quick fix before the new version is live.
    In functions.php, of the customizr theme, line 202, in the tc_() function, replace :

    require_once ( TC_BASE . $path_suffix[0] . '/class-' . $group . '-' .$path_suffix[1] .'.php') ;

    by :

    //checks if a child theme is used and if the required file has to be overriden
                    if ( $this -> tc_is_child() && file_exists( TC_BASE_CHILD . $path_suffix[0] . '/class-' . $group . '-' .$path_suffix[1] .'.php') ) {
                        require_once ( TC_BASE_CHILD . $path_suffix[0] . '/class-' . $group . '-' .$path_suffix[1] .'.php') ;
                    }
                    else {
                        require_once ( TC_BASE . $path_suffix[0] . '/class-' . $group . '-' .$path_suffix[1] .'.php') ;
                    }

    Thanks for pointing this out so quickly since it will potentially impact many users.

    Hi all,
    thanks for the fix! It works well!
    … but I guess I will have also to take a look at the huge improvement you did in the:
    class-admin-customize.php
    and
    class-content-post_list.php

    I did customize them, adding flickr and removing alternate posts, but now I have issues with tc_post_list_thumbnail

    This is a “clean” test site:
    CCG without the update.

    This is a screenshot from my local updated version:
    debug screenshot

    If I find anything I’ll report right away!
    and btw, congratulations for the huge work you did guys.

    Christmas coffee donation is on the way.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘After update to 3.1.4, changes to php files in child theme ignored’ is closed to new replies.