Excerpts on single posts and sidebars

Posted in: Newsmag
Post count: 5

Hi!

I’ve bought your plugin, and I want to ask two questions

1. I want to show the excerpt (manual created in each wordpress article) in individual posts. Where could I activate it?

2. How could I manage sidebars in frontpage?

Post count: 5

One more question:

3. How could I show my logo bigger?

Post count: 23312

Hello alopfr,

1)Sorry but the theme does not have any such an option for Excerpts for posts but only for Blocks/Modules on pages. Please check here -> https://forum.tagdiv.com/excerpts-introduction/
2)You should try using the Widgetised Sidebar from here -> https://www.screencast.com/t/TLUs22Dx
3)You should use a header style which displays the logo in full width, for example, header style 10. Please check here -> https://forum.tagdiv.com/header-styles/

Thanks for your understanding!

Post count: 5

Hi!

Thanks.

About excerpts, I’ve made a replace of some code in loop.php:
<?php if (!empty($td_mod_single->get_excerpt())) { ?>
<p class=”td-post-sub-title”>
<?php echo $td_mod_single->get_excerpt();?>
</p>
<?php } ?>

But, now, when I change fonts from Theme Panel for subtitles, it doesn’t change this part. I’ve tried to inspect the element with Firefox and change some css. I’ve add this to custom css code:
.td-post-sub-title {
font-family: Open-Sans, sans-serif;
font-size: 17px;
line-height: 25px;
font-weight: lighter;
}

But it doesn’t work. You can check, for example, in this url: https://descubrirlahistoria.es/2018/04/linajes-urbanos-la-reinvencion-de-las-elites-en-el-medievo/

It’s just below title.

In the other hand, I cannot create a sidebar area in frontpage. Could you help, please?

  • This reply was modified 8 years by alopfr.
Post count: 5

Hi again,

I finally change the code in loop-single.php to:

<?php if ( has_excerpt() ) : // Only show custom excerpts not autoexcerpts ?>
<span class=”td-post-sub-title”><?php echo get_the_excerpt(); ?></span>
<?php endif; ?>

And is showing excerpt instead of subtitle and I can customize fonts via ‘subtitles’ in Theme options. But the meta data of posts (name of author, date) is too close to subtitle (now, excerpt). How could I change padding?

I attach a screenshot: https://www.dropbox.com/s/hqnszg3zcs3op2q/Captura%20de%20pantalla%202018-04-27%20a%20las%200.01.45.png?dl=0

Best wishes,

Post count: 23312

Hello alopfr,

I have checked this code at my website, when I have added a post subtitle from Post Editor and it seems to work as expected, as you can see here -> https://www.screencast.com/t/4LqW1Pun

Thanks for your understanding!

Post count: 5

Hi, Catalin!

This morning I changed

<?php if ( has_excerpt() ) : // Only show custom excerpts not autoexcerpts ?>
<span class=”td-post-sub-title”><?php echo get_the_excerpt(); ?></span>
<?php endif; ?>

for

<?php if ( has_excerpt() ) : // Only show custom excerpts not autoexcerpts ?>
<p class=”td-post-sub-title”><?php echo get_the_excerpt(); ?></span>
<?php endif; ?>

With this change, I have the correct space.

Best wishes,

Post count: 19

Hello
i manged to do this in local posts templates, but it is hard to do in cloud templates
did you by any chance tried
would you share the solution if you have
i tried every thing in :td-cloud-library/td-cloud-library/shortcodes/single/tdb_single_subtitle.php
tried to make changes to :
function render($atts, $content = null) {
parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)

global $tdb_state_single;
$post_subtitle_data = $tdb_state_single->post_subtitle->__invoke();

$additional_classes = array();

$buffy = ''; //output buffer

// when no data - return empty on frontend
if ( empty($post_subtitle_data['post_subtitle'])) {
return $buffy;
}

$buffy .= '<div class="' . $this->get_block_classes($additional_classes) . '" ' . $this->get_block_html_atts() . '>';

//get the block css
$buffy .= $this->get_block_css();

//get the js for this block
$buffy .= $this->get_block_js();

$buffy .= '<div class="tdb-block-inner td-fix-index">';
$buffy .= '<p>' . $post_subtitle_data['post_subtitle'] . '</p>';
$buffy .= '</div>';

$buffy .= '</div>';

return $buffy;
}

but no success

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