Skip to content
Public Ticket #3110

Excerpt in 1st standard then grid 2 columns

Conversation thread

fernandamolinaro replied

Customer Reply

Thank you, it worked great.

PenciDesign replied

Staff Reply

Hi,

Sorry because the code I sent was replace by the forum, that make it wrong. Please try again with this code:

<?php $block_style2 = get_theme_mod('penci_blockquote_style') ? get_theme_mod('penci_blockquote_style') : 'style-1'; ?>
<div class="item-content post-entry standard-post-entry <?php echo 'blockquote-'. $block_style2; ?>">
    <?php if( get_theme_mod( 'penci_standard_auto_excerpt' ) ) { ?>
        <?php the_excerpt(); ?>
        <div class="penci-more-link"><a href="<?php the_permalink(); ?>" class="more-link"><?php echo penci_get_setting( 'penci_trans_continue_reading' ); ?></a></div>
    <?php } else { ?>
        <?php the_content( penci_get_setting( 'penci_trans_continue_reading' ) ); ?>
        <?php wp_link_pages(); ?>
    <?php } ?>
</div>

Best Regards,

PenciDesign

fernandamolinaro replied

Customer Reply

Ty for the reply, but I doesn't see to work, it breaks most of the site.

PenciDesign replied

Staff Reply

Hi,

If you still want to do that, you need to edit the file in this theme.

Please try replace this selected code to:

\
<?php $block_style2 = get_theme_mod('penci_blockquote_style') ? get_theme_mod('penci_blockquote_style') : 'style-1'; ?>\
<div class="item-content post-entry standard-post-entry <?php echo 'blockquote-'. $block_style2; ?>">\
    <?php if( get_theme_mod( 'penci_standard_auto_excerpt' ) ) { ?-->\
        <!--?php the_excerpt(); ?-->\
        <div class="penci-more-link"><a href="<?php the_permalink(); ?>" class="more-link"><!--?php echo penci_get_setting( 'penci_trans_continue_reading' ); ?--></a></div>\
    <!--?php } else { ?-->\
        <!--?php the_content( penci_get_setting( 'penci_trans_continue_reading' ) ); ?-->\
        <!--?php wp_link_pages(); ?-->\
    <!--?php } ?-->\
</div>\

After that, change your layout back to "1st Standard then Grid"

Best Regards,

PenciDesign

fernandamolinaro replied

Customer Reply

well sometimes isn't about looking good, but about what the client needs, I can't really do something about it. so there is no easy way of configuring to work the same? 

PenciDesign replied

Staff Reply

Hi,

Let's try to imagine - If you make the "Read More" tag on the 2nd+ posts and it show what do you want. Do you think it can display good like on your 1st post ( because It has only near 1/2 width compare to your 1st post. )

That's why the "Read More" tag on the editor just apply for Standard, Classic, 1st Post on 1st Standard then xx or 1st Post on 1st Classic Then xx Layouts  as I said on my previous comment

Best Regards,

PenciDesign

fernandamolinaro replied

Customer Reply

It is already unchecked, look the attachment to see what I'm saying about auto render.

PenciDesign replied

Staff Reply

Hi,

Let's go to Customize > Standard & Classic Layout Options > and un-check on "Auto Render Post Excerpt"

Best Regards,

PenciDesign

fernandamolinaro replied

Customer Reply

it doesn't really work because the post excerpt is rendered automatically when using 1st standard then grid 2 columns layout and the content is escaped, so html tags don't work.

PenciDesign replied

Staff Reply

Hi,

\

You can try to use "Read More" tag on your editor to create a continue reading button - check this image

\

This "Read More" tag just apply for Standard, Classic, 1st Post on 1st Standard then xx or 1st Post on 1st Classic Then xx Layouts

\

Best Regards,

\

PenciDesign

fernandamolinaro started the conversation

Conversation Start

So there is a option Auto Render Post Excerpt in Standard or Classic layout that I can uncheck and make my own custom excerpt with the read more tag, how do I enable the same option in the 1st standard then grid 2 columns, there is no option and it escapes the content so blockquotes don't work, there is a easy way of doing it or where is the code for removing the escape for this option?

Want to join this conversation or access attachments? Sign in first.