Can't change Site-Wide Post Template

Posted in: Newspaper
Post count: 19

Hello,
I’ve tried to change the post-template, unfortunately, this setting has no effect on the look. (See Screenshot)
Screenshot

Do you have any suggested solutions?

Post count: 20688

Hi,

Normally it depends on the setting in the post edit screen. If the post template is set like this
http://prntscr.com/of6xy9 it will inherit the general post template setting from the theme panel.

However currently there is an issue in this matter. If a child theme is active the post templates won’t apply correctly. This issue will be fixed in the coming theme update, but for the time being please deactivate the child theme if possible. Sorry for the inconvenience. Let me know if you have more questions.

Thanks

Post count: 19

Thanks for your answer,

the actual Update fixed the Problem, that the post template couldn’t be changed, but there is on issue left. The default Template doesn’t appear as expected (see screenshot). The choosen post template in the Arcticle itself is “Panel”. All other templates provided in the site wide post template working correctly. My child-theme doesn’t provide a changed file.

When i deactivate the child theme, the default template shown correctly.

Any suggestions?

Regard,
Robert

Post count: 19

Screenshot2

  • This reply was modified 7 years by Spontis.
Post count: 209

Yes, this is a bug in 9.7.4.
When using a child-theme, the default post template is not applied.
Should be fixed urgently!

Post count: 20688

Hi,

Should work fine. I have tested this as well. Please note that there are 2 default post templates, the one that is used when the composer is inactive (can be considered a default post template), and one that is used when the composer is active and can be selected for posts.

I believe you have copied in the child theme, the loop single and single files from the theme – http://prntscr.com/ognr3o
Note that this template is used when the composer is inactive. When the composer is inactive a sidebar cannot be set for posts because there will be no post settings available, so the template is not supposed to display a sidebar since it cannot be set.

If you want to customize the default post template with the composer active, please copy it from the composer/legacy/Newspaper folder
http://prntscr.com/ogo2la
And make a small modification in the single.php file after you copy in the child theme
http://prntscr.com/ogo38l
Here is the modified code if needed – https://pastebin.com/uaZqtWjM

Please let me know if you have more questions.
Thanks

Post count: 20

No, it is a bug in the child theme functionality.

Even when using the standard child theme provided with the theme without any further changes or files copied, the result is not the same as when activating the parent theme.

With the child theme active the default post template is not working.

Post count: 19

@Simion C.: No, i am not using any modified or copied files vom the template in the Child-Directory (see Screenshot). Unfortunately, that’s exactly what gci-brandlab says. The only file, that have been changend, ist the “style.css”.

Screenshot3

  • This reply was modified 7 years by Spontis.
Post count: 20688

Please try and copy the loop-single and single files from the composer
http://prntscr.com/oh60aw
Paste them in the child theme main folder – http://prntscr.com/oh61r6
In the single file you copied make the modification provided above. Then check if the default post template applies properly.

Please let me know. There is indeed an issue in that specific case, meaning post set to inherit the default post template from the theme panel. This suggestion should solve it.

Post count: 209

Hello Simion,
for me this solution worked.
But coping those files is just a hotfix for me.
When will this error be fixed, so I can delete those two files?
I can see it coming that with one of the next updates, these files may cause problems and the support-answer will be, that there are two files in the childtheme directory, that shouldn’t be there 😉

Post count: 52

Hi Simon C,

I copied file “single.php” from parent theme then copied to child-theme, it worked!

Cheers,

Post count: 19

Hi Simion,
this solution works for me as well. Looking forward, that a future update will fix the Problem at the roots. Mention the change in the changelog maybe, so we can delete those files.

Post count: 209

Hello Simion,
has this bug been fixed in 9.8? Can those two files be deleted in the child-folder?

Post count: 52

Hi be2name,

I have installed last night 9.8, it’s been fixed and seems to be all OK now!

Post count: 20688

Hi,

The child theme has been improved in update 9.8 and will be improved further where possible. Sorry again for the previous issue, now it should work fine.

Post count: 209

Hello,
just updated from 9.74 to 9.8 without problems and deleted loop-single and single files in child-theme folder.
Everything works as expected and error is fixed. Thank you!

Post count: 209

Unfortunaltely I just found out, that this issue has not been resolved for custom post types!

Even copying those two files into the child-theme folder nor changing the default template for posts brings back the normal style with sidebars for custom post types.

Switching to the default Newspaper theme shows CPT correctly.

Please help! What can I do to bring the layout back to custom post types, too?

  • This reply was modified 7 years by be2name.
Post count: 20688

If you want to use one of the theme post template for a CPT, try to copy the desired single and loop single from the composer in the child theme (main folder).

So for example I have a CPT called td_book and I want to use post template 4 for it. I copied the loop-single-4 and single_template_4 PHP files from the composer in the main child theme folder – https://prnt.sc/omu5sk

The single_template_4 has to be renamed single-yourCPTname, in my case it is single-td_book.
So now the CPT uses post template 4 – https://prnt.sc/omu6r9https://prnt.sc/omu6vm
Should work the same for you, please give it a try and let me know.

Post count: 209

Hello Simion,

I just don’t understand this: Where in the composer-folder are those files to copy?

Which one do I use/copy to show my CPT in default style?

Post count: 18283

Hello !

The files are located here: https://www.screencast.com/t/EA441Zb3 In the tagDiv Composer Plugin – Legacy – Newspaper – Parts – Single.

The default one can be found in tagDiv Composer Plugin – Legacy – Newspaper: https://www.screencast.com/t/JwabLdWf ; This one you should copy for the Default Template.

I hope this was more helpfull !

Thank you !

Post count: 209

Thank you Vlad, thank you Simion,

copying the single.php from this location and renaming it (in my case) to single-podcast.php fixed the issue. It was not necessary to copy loop-single also.

Please make sure, that this bug is fixed in the next update, so I can delete the file in my child-folder and the default template is used also for CPT. Thank you!

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