Edit single.php

Posted in: Newspaper
Post count: 12

Good morning tagDiv. I’m writing you about the use of the child theme. I need to edit the single.php and the loop-single.php.

I have already written you on ThemeForest:


Good morning. It is possible to edit the default single.php? I read this tutorial https://forum.tagdiv.com/the-child-theme-support-tutorial/ and it works for single-template-x.php and loop-single-x.php but I don’t understand how to edit the default single and loop-single. Can you help me, please?

So you mean the default post template. After the latest theme update it is possible. The child theme has been improved. Copy both the single and loop-single files from the td-composer/legacy/Newspaper folder. Then make a small modification in the single.php file you have copied in the child theme https://prnt.sc/ogo38l It should work fine.

Hi, thank you for reply me. It doesn’t work. Here you can view my edited single.php https://www.dropbox.com/s/l7ci14wctq4zi3o/single.php?dl=0

Please can you help me?

Post count: 35449

Hi,

I’ve made some tests and this is working properly -> http://prntscr.com/okbope and http://prntscr.com/okbpau -> http://prntscr.com/okbp1p -> http://prntscr.com/okbnwj results -> http://prntscr.com/okbocn

Just please make sure that you have the last version of the theme ( Newspaper v9.7.4 ) and you are using the child theme that comes with this package.

Let me know the results!
Thank you!

Post count: 1

this is sooo confusing, i am stuck at this problem too

which single.php file i have to copy to the child theme ?
whatever files i copy they are all ignored !

Post count: 35449

Hi,

Please make sure that you are using the child from the Newspaper v9.7.4 or last theme package v9.8
Also the single.php file from theme root can be set in child them normally -> https://i.imgur.com/kMSrAD9.png -> https://i.imgur.com/8Zn9Fqk.png
Child theme support ->https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Post count: 12

Good morning Calin, thank you. I had the theme at versione 9.3. Now I have updated it and all works good.

I have another similar question: is possibile to edit functions.php and single.php of the mobile theme in a “not destructive manner”?

Thank you in advance for your help.

Post count: 18283

Hello !

If your coding skills are good enough you can edit it. Also I suggest you to first do the modifications on a local host or test server so you can be certain that you do not create issues.

Thank you !

Post count: 12

Good morning Vlad. Thank you for reply me.

I have already done the modifications on the original files. I’m asking you if you have planned a way to do it in a “not destructive manner”, for example, using the child theme.

Post count: 35449

Hi,

Unfortunately for the moment there are no plans for this because this is a plugin and the child theme is use only for the theme, but I can add it as a suggestion for the coming updates and maybe there will be found a way to do that.

Thank you for your understanding!

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