functions.php in child theme (v7.8)

Posted in: Newspaper
Post count: 7

Hi.

I just downloaded the 7.8 update and i’ve got a question about the functions.php file in child theme.
It says “Newspaper V6.3+ Child theme” but my current version (before 7.8 update) says “Newspaper 7 Child theme”. And one of the last lines of code seems a bit different. Why and which version should I use ?

Thanks.

Post count: 22421

Hello,

A child theme is not update proof. No type of customization is. If you use a child theme it should be updated on each update if he files in your child theme have been modified in the main theme update. We sugest using the child theme that comes with the latest version of the theme.

Thank you!

Post count: 11

Its true, if you look into the childtheme that ships with 8.0 it states:
Newspaper V6.3+ Child theme – Please do not use this child theme with older versions of Newspaper Theme
However…
the child theme from 7.8 states:
Newspaper 7 Child theme – Please do not use this child theme with older versions of Newspaper Theme

The only difference in the code is 7.8 has ‘c’ the new one does not. is this important?

7.8 –>
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION . 'c' , 'all' );

8.0 –>
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );

  • This reply was modified 9 years by boomtastic. Reason: English was fine. Was thinking of another post
Post count: 22421

Please use the one without the ‘c’
The latest one.

Thank you!

Post count: 9

The ‘c’ was also problematic for me, now it works just fine !

Thank you for this solution

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.