How can I add excerpts in td_block_9

Posted in: Newspaper
Post count: 55

Can you give us little inside how I will be able to add excerpts for td_block_9?

Post count: 55

I have added below code in Newspaper/includes/modules/td_module_8.php hard coded the excerpts length in Newspaper/includes/td_config.php and works as expected

<div class="td-excerpt">
                <?php echo $this->get_excerpt();?>
            </div>
  • This reply was modified 10 years by Chito.
Post count: 22421

Hi,
You can add the number of words or letters (depending on the setting you selected in the theme panel) by hand as it will not show up in the panel:

<div class="td-excerpt">
                <?php echo $this->get_excerpt(12);?>
            </div>

Thank you!

Post count: 55

Hi,
I am wondering td_module_8.php file path is changed in latest version or not because I am not seeing this file in that path.

Post count: 35449

Hi,

Yes, in Newspaper v9.7 some files was moved from theme in tagDiv Composer plugin, the new path for td_module_8.php is -> wp-content/plugins/td-composer/legacy/Newspaper/includes/modules/td_module_8.php

Thank you!

Post count: 4

Hi, as a result if I want to edit a file like td_module2.php, I have to edit the file directly in the td-composer plugin folder? There is not any other way ? It is therefore necessary to avoid overwriting the modified file in case of an update of the plugin. Thanks for very much your help.

Post count: 35449

Hi,

Unfortunately for the moment this is the only way, to make the changes directly in tagDiv Composer plugin file.

Thank you for your understanding!

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