Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1606009
Excerpt in 1st standard then grid 2 columns
Closed

Comments

  • fernandamolinaro started the conversation

    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?

  •  2,700
    PenciDesign replied

    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 replied

    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.

  •  2,700
    PenciDesign replied

    Hi,

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


    Best Regards,

    PenciDesign

  • fernandamolinaro replied

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

  •  2,700
    PenciDesign replied

    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

    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? 

  •  2,700
    PenciDesign replied

    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

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

  •  2,700
    PenciDesign replied

    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

    Thank you, it worked great.