Upgrading to the latest Newspaper theme child theme top posts override broken

Posted in: Newspaper
Post count: 49

Hi,
Upgraded to the latest Newspaper theme.
My child theme had a custom top posts section which overrides the td_category_top_posts_style_2 class to show posts I’ve tagged as ‘featured’.
When I look at the new theme in the folder Newspaper/includes/category_top_posts_styles/ the only file I am seeing is . I would have expected to see a whole list of files for each of the top post category type classes?

Screenshot of the folder New theme: https://www.dropbox.com/s/780582iqweukzut/Screenshot%202019-05-22%2019.51.52.png?dl=0

In the previous version of the theme I would see a list of files for each category top posts type in the Theme Panel.

Like this screenshot Old Theme: https://www.dropbox.com/s/05bg4fm07ybw9l1/Screenshot%202019-05-22%2019.50.49.png?dl=0

Is my theme missing these somehow or is it now called in a different way, meaning I’ve to adjust my child theme?

Thanks,
James

Post count: 49

Updating the post:

I am not sure if that file / folder is even used in the new theme. Can you point me in the direction of how to edit it in the new theme?

I tested this by renaming the parent themes folder includes/td_category_top_posts and it didn’t break the theme and I was still able to select different category grid styles in the Theme Panel so I’m guessing this file / folder or method of overriding is redundant?

Thanks,

James

Post count: 49

Some additional info you may need to help us.

I have put our child theme in dropbox so you can see the file we used.

The file I’m referring to can be found in the child theme: Newspaper-child/includes/category_top_posts_styles/td_category_top_posts_style_2.php

That would override the parent theme file and show the grid we wanted based on a wordpress shortcode.

You can find that file here in dropbox:
https://www.dropbox.com/sh/z96z6cglv1ox31o/AAD7XdqHbj32kFQPsVzQVocKa?dl=0

Post count: 20688

Hi,

That will not work anymore with a child theme. After the 9.7 update many of the theme files were moved in the tagDiv composer, due to the new Envato requirements
https://tagdiv.com/updating-the-core-of-tagdiv-themes/
As a consequence the child theme is quite limited now, only a few theme files can still be used in it.

The category top post style files are now here – http://prntscr.com/ns8oaf and the only way to edit them would be there directly. A child theme containing these files will have no effect.

If you have more questions, let me know.

Thanks

Post count: 49

Hi Simion,
Thanks for pointing me in the right direction here. I was able to make the change now in the core plugin. A pity there is no real way to add into a child theme to protect against updates moving forward but I have made note of this now. Changing the top category grid layout to just allowed featured tags is the key for us as we have sponsored posts in our newspaper layout so we must continue to be able to alter this area. I am not sure if there are any plans to have an option in the theme options to be able to associated a tag for each category called featured_category name for example and then those featured posts stay in that area – who knows:)

At least now we have it all setup again the way we need it. Appreciate the time.

Thanks you.

Post count: 20688

Maybe this will change in the future, can’t say for sure what will happen. Or maybe we find a solution to be able to modify plugin files in a safer way, as it was possible with a child theme before. Sorry for the inconvenience.

If you simply want to display a shortcode in a category page, you could use a cloud template. The shortcode can be entered in a column text element, then the template can be applied to the needed categories – https://cloud.tagdiv.com/#/load/Category

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