How to create a custom single template

Posted in: Newspaper
Post count: 62

I know old files have been moved to the td-composer extension. Where do I put archive-cep-telefonlari.php in the new system? Previously theme/newspaper/archive-cep-telefonlari.php was included here.

(Where do I put my previous private singles and archive files?)

Is here?? -> /plugins/td-composer/legacy/Newspaper
Is here?? – /plugins/td-composer/legacy/Newspaper/parts/single

Please also refresh the following page. https://forum.tagdiv.com/custom-post-type-support/

Post count: 20688

Hi,

So you would like to create a single template for a CPT? That is possible in a child theme. You can copy a template from the composer (both single and loop files) in the child theme main folder, for example template 2 – https://prnt.sc/p83m25

Then rename them in the child theme as the events CPT name is https://prnt.sc/p83s0a -> https://prnt.sc/p83nc1 (I used a CPT added by an Events plugin)

Now it’s required to make a small modification in the loop file you copied in then child theme -> https://prnt.sc/p83olv

The result is that the event CPT will use this post template, I used template 2 in my example – https://prnt.sc/p83p48

You can place the archive in the main child theme folder -> https://prnt.sc/p84658
https://prnt.sc/p846fs -> https://prnt.sc/p846ji

Thanks

Post count: 62

Thank you so much.

So when I want to add functions.php and footer.php files, where do I add them?
Child theme or root theme or composer/newspaper ?

Post count: 35449

Hello,

You can get the functions.php and footer.php from theme, but those are only the basic files, but you can get the files from wp-content/plugins/td-composer/legacy/Newspaper/parts/footer&header and set theme in child theme, also you can get more information from our guide .

Hope this will help you!
Thank you!

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