Edit single post template file

Posted in: Newspaper
Post count: 6

Hello. When editing loop-single.php in the theme folder nothing changes. I am trying to find the file I can override in my child theme. The single post pages I am trying to change are posts like this one: https://alt-til-windows.spilnettet.dk/programmer/adobe-reader/

Thank you.

Post count: 18283

Hello !

In order to change post pages you can use a Cloud Library template: https://forum.tagdiv.com/design-post-pages-using-cloud-library-templates/

What you want to achieve via child theme ? Maybe there is no need for child theme since I can see that you’re using the 10.1 Version.

Thank you !

Post count: 6

Hi!

Which Cloud library template corresponds to the default single post used by default when the Newspaper theme is used with the demo “Gadget” including demo content?

I want to insert custom code just below the main content before the social media icons, so I can display a couple of custom fields. This was achieved in the “twentytwenty” theme by modifying content.php in template-parts folder.

Is there a way to inject custom code just below main content without using a child-theme in version 10.1?

Thank you!

Post count: 18283

Hello !

By taking a look into Cloud Library – Single you will see all the templates available. You can use the Column Text element in order to insert a plugin shortcode if you want. The shortcode must be inserted in the Text tab of the column text element as you can see it here: https://www.screencast.com/t/zJDUVBGK

Thank you !

Post count: 6

Hi!

OK, what if I need to do use PHP code? Which file should I edit?

Thank you!

Post count: 18283

Hello !

For PHP you will have to edit theme code. There is no options in theme panel for this.

Thank you for your understanding !

Post count: 6

Hi!

Yes, I tried to edit the loop-single.php, but nothing happened as I describe earlier. Can you please guide me to which file I should edit?

Thank you!

Post count: 18283

Hello !

Please make sure that you setup up your child theme properly as you can see it here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

I hope this was helpful !

Thank you !

Post count: 6

Hi!

Yes, the theme setup is correct. But just for test purposes I want to edit the main theme files. So I am changing the wp-content/themes/Newspaper/loop-single.php without any effect. Can you please tell me if I need to edit or add other files when I need to change the cloud template which is now active?

I also tried to edit the wp-content\plugins\td-composer\legacy\Newspaper files but I don’t have the parts\single folder?

Thank you!

Post count: 7

Hi admin_alt_til_windows_dk,

I am currently trying to solve this too.

The template file you are looking for is in:

wp-content\plugins\td-standard-pack\Newspaper\parts\single\

Depending on what Default Post Template Style you chose in Theme Panel >> Post Settings, the number on the filename will be same.

e.g. for STYLE 9 you edit loop-single-9.php

Unfortunately, not my most preferred way to edit plugin files… but the templates are there.

Post count: 6

Hi Colin.

Thanks for the info about the files. If we choose a cloud template for showing single page posts the template file is not found in:

wp-content\plugins\td-standard-pack\Newspaper\parts\single\

But all the others are there, thank you!

Then you can copy loop-single-9.php to your child theme and things should roll.

Anyway, we implemented a custom short-code which can be placed anywhere through the template editor in a column block.

Thank you!

Post count: 18283

Hello !

Please note that the Documentation is no longer relevant due to Newspaper 10 update. Our team is working on updating it. You can find the proper loop files in: wp-content\plugins\td-standard-pack\Newspaper\parts\single

I hope this was helpful !

Thank you !

Post count: 42

hello same problem here…

but when modifying and copying the files in the Child theme structure as follows
newspaper-child/parts/single/loop-single-1.php (and the single-template-1.php)
nothing changes…

so right now we Can’t modify the parts and use them in child theme, we must edit the plugin file, right ?

or use a cloud template..

  • This reply was modified 6 years by robink.
Post count: 42

And the single loop (loop-single.php) by default is not in the plugin folder, it’s in the theme… but when I edit it, override it, but it doesn’t change…

Any clue ?

Post count: 5

Just upgraded to 5.3 and the posts could not be edited via block.

Downgraded back to 5.24 Block now work.


Site is currently demo40.headmagazine.com

I kept restoring it to another demoXX site figuring I did not reinstall it right. I feel better knowing I restored it right. Not so good that I spent most of the day doing it.

Theme config shows the site at version 10.

Thanks.

Post count: 18283

Hello !

Please note that this issue is fixed in the in the Newspaper 10.1 update.

Also for child theme you have to insert all the paths. Also please note that you will have to copy loop single and single template.

Thank you !

Post count: 5

How do I get the 10.1 update?

Post count: 18283

Hello !

Find out how to update here: https://forum.tagdiv.com/how-to-update-the-theme-2/

Thank you !

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