custom title on home and archive sites

Posted in: Newspaper
Post count: 35

Hi everyone,

I would like to add a secondary title to posts, which is not shown on the single-posts itself, but only on all the other elements on the homepage, the archive pages, the slider, blocks / modules / widgets and so on…

I use Advanced Custom Fields to create those alternative titles, but I am not sure how to embed them into the template. As I see, newspaper theme uses get_title-function in the modules – so is it possible, to code an if-condition into it for an alternative title? Which files have to be changed for it?

I know, that’s a “special” question, but maybe someone can still help me with that issue? Thanks a lot in advance 🙂

  • This topic was modified 6 years by sscom.
Post count: 35449

Hi,

Please take a look over the next useful guide from here -> https://forum.tagdiv.com/topic/add-additional-fields-to-posts-in-category-grid/ -> https://forum.tagdiv.com/topic/add-custom-field-to-post/ to know how you can configure your Advanced Custom Fields.

Hope this helps!

Thank you!

Post count: 35

First of all, thanks for your help.

Unfortunately, the topics you linked to don’t really help in my case, because I guess the structure of the Newspaper theme changed a lot since then.

I guess, I have to change files in the wp-content/plugins/….-folder now (instead of themes-folder). Nevertheless, I don’t really understand the structure. Can you maybe tell me, which files are for the Blocks (for example “Block 6” in TD Composer), the Slider and which ones for the category styles set in Theme Panel?

Otherwise, does TagDiv offer a paid customization service to get some changes like this done maybe?

Thanks a lot in advance.

  • This reply was modified 6 years by sscom.
Post count: 35449

Hi,

Indeed some files were change in our theme, for example the block 6 is made from module 5 -> https://i.imgur.com/AjU2Hs7.png therfore you’ll need to edit that module -> wp-content/plugins/td-standard-pack/Newspaper/includes/modules/td_module_5.php also the category template -> https://i.imgur.com/fvzioIp.png -> wp-content/plugins/td-standard-pack/Newspaper/includes/category_templates/td_category_template_1.php -> https://i.imgur.com/SKeKpkJ.png -> wp-content/plugins/td-standard-pack/Newspaper/includes/category_top_posts_styles/td_category_top_posts_style_fl_1.php and this slide -> https://i.imgur.com/6datWPP.jpg is in wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_slide.php

Also we have a department for custom services here -> https://tagdiv.com/web-development-services/

Thank you!

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