Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi @jrothra, the update has changed the file structure, that’s probably why your file is not found anymore in the child theme.
    But this is not an issue for you because there’s a much simpler solution to set your custom metas with a filter : tc_meta_utility_text. (located in class-content-post_metas.php)

    Copy and paste the following snippet in your functions.php file of the child theme and you’re done. (I have used the code provided in your previous support topic)

    add_filter( 'tc_meta_utility_text', 'my_meta_texts' );
    function my_meta_texts() {
        if ( false != get_the_tags() ) {
            $my_metas = __( '<span class="by-author"> By %4$s</span> on %3$s<br />Categories: %1$s  | Tags: %2$s' , 'customizr' );
        } elseif ( false != get_the_category() ) {
            $my_metas = __( '<span class="by-author"> By %4$s</span> on %3$s<br />Categories: %1$s' , 'customizr' );
        } else {
            $my_metas = __( '<span class="by-author"> By %4$s</span> on %3$s' , 'customizr' );
        }
        return $my_metas;
    }

    Generally speaking, it is always safer (and easier to debug) to alter the core theme’s code with the Customizr hooks API (filters and actions) instead of copying a whole bunch of core code into the child theme.
    Hope this helps and thanks for using the theme!

    Thread Starter jrothra

    (@jrothra)

    @nikeo,

    That does help ?? Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update to 3.1.17 cancelled changes’ is closed to new replies.