Loop and Single templates

Posted in: Newspaper
Post count: 22

Hi,

I would like to make some changes in code regarding the templates that are responsible for
– post loops
– Single post pages
– Some flex boxes

On category and tag pages I use post loop. On single post page i use template from cloud library with some design modifications. But i need some “under the hood” modifications in php for single as well as for the post loops. Can you tell me which php templates are responsible fr this as I can see many of them inside the Newspaper theme folder as wel as in the td-composer folder.

Thanks. And if there is more information needed, please let me know.

Post count: 27744

Hello,

Please let me know what changes you want to make; maybe you do not need to make them in the theme files.

Thank you!

Post count: 22

Hi. Thanks for reaching out.

I need these changes:
– Article block on loop template, for every single article, should be wrapped in one a href link (current: link is article title, article image and if there is category name that is also a link). This is for SEO purposes mostly. Also I would lke to make this work across the whole website, not only on loop templates but they are priority for now as i have them on category and tag pages.
– I need to add a prefix to an Article name and that prefix should dynamicaly show the category name that article belongs to, before the title itself, and wrapped in span html tag (should be non clickable). This can be made on a single article template but i havent found a solution to work on the category/tag/home page blocks so I probably need to deal with php templates for this custom modifications

Thats the tasks 🙂
Thanks

Post count: 27744

Hello,

For the issue with the image link, you can try to use this option -> https://i.imgur.com/LmJjrn7.png
For posts loop this is the path wp-content/plugins/td-cloud-library/shortcodes/common/tdb_loop.php and tdb_loop_2.php
For flex Block 1 you can find the files in these paths
wp-content/plugins/td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php
wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php
and for single this path wp-content/plugins/td-cloud-library/shortcodes/single

Thank you!

Post count: 22

Hi. Thanks for the info.
let me just be a little more precise. I need template paths for blocks with these names:
– Posts Loop / https://imgur.com/a/73ktqUj
– Flex Box 1 to Flex Box 4 (you already provide this info)

Posts loop is the important one.

Regards,
Vladimir

Post count: 27744

Hi,

For posts loop this is the path wp-content/plugins/td-cloud-library/shortcodes/common/tdb_loop.php and tdb_loop_2.php

Thank you!

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