Replace subtitle with excerpt on posts.

Posted in: Newspaper
Post count: 5

Hi.

I would like to replace the theme Subtitle function (as seen here: http://i.imgur.com/FNSppi3.png) on article posts and instead show the standard WordPress excerpt (as seen here: http://i.imgur.com/2RLOTou.png) instead because all my old articles were written in a previous theme that used the WordPress excerpt feature.

It was explained to someone in this comment: https://themeforest.net/comments/8825335
..however those links no longer work.

I figure it would be a simple case of changing the function in charge of displaying Subtitle text to instead display Excerpt text.

Post count: 5

Here’s a screenshot I borrowed from another thread else:
http://www.screencast.com/t/w9K2vww1v

What I want is to have the Excerpt shown below the title in articles instead of the Subtitle 🙂

Post count: 5

I fixed it myself by making these changes (patch file):

— /volumes/velociraptor/flaskeposten.nu/loop-single.php.BAK
+++ /volumes/velociraptor/flaskeposten.nu/loop-single.php
@@ -17,11 +17,11 @@
<header class=”td-post-title”>
<?php echo $td_mod_single->get_title();?>


– <?php if (!empty($td_mod_single->td_post_theme_settings[‘td_subtitle’])) { ?>
– <p class=”td-post-sub-title”><?php echo $td_mod_single->td_post_theme_settings[‘td_subtitle’];?></p>
+ <?php if (!empty($td_mod_single->get_excerpt())) { ?>
+ <p class=”td-post-sub-title”>
+ <?php echo $td_mod_single->get_excerpt();?>
+ </p>
<?php } ?>

<div class=”td-module-meta-info”>
<?php echo $td_mod_single->get_author();?>

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