• Resolved Anonymous User 8219565

    (@anonymized-8219565)


    HI, thanks for this amazing plugin!!
    I’m using the “Thumbnail – icon, title, excerpt” skin.
    – I have some post without any images, is there a way to show just the tittle and the excerpt with no blank image area?
    – I’d like to have a “read more button” after the excerpt, how can I do this?

    Thanks!!

Viewing 1 replies (of 1 total)
  • Hi,
    Thanks for used our plugin!
    For your request, first you need to install and Activate “Wp Editor” plugin.
    Then, do it: https://prntscr.com/ezd8fw

    My code for replace:

    <?php
    /**
    * Created by PhpStorm.
    * User: phuongth
    * Date: 12/17/2016
    * Time: 3:03 PM
    * @var $thumbnail
    * @var $post_link
    * @var $title
    * @var $img_origin
    * @var $ico_gallery
    * @var $disable_link
    */
    ?>
    <article class=”post-item thumbnail-title” data-post-info-class=”post-info”>
    <?php if(!empty($thumbnail)): ?>
    <div class=”thumbnail-image” data-img=”<?php echo esc_url($thumbnail); ?>”>
    ” alt=”<?php echo esc_html($title); ?>” >
    <div class=”hover-outer transition-30″>
    <?php if($disable_link != ‘true’): ?>
    ” title=”<?php echo esc_html($title); ?>”>
    <?php endif; ?>
    <div class=”hover-inner transition-50″>
    <div class=”icon-groups”>
    <?php if($disable_link != ‘true’): ?>
    ” class=”view-detail” ><i class=”fa fa-link”></i>
    <?php endif; ?>
    ” class=”view-gallery” data-post-id=”<?php echo get_the_ID(); ?>”
    data-ajax-url=”<?php echo esc_url(admin_url(‘admin-ajax.php’)) ?>”><i class=”<?php echo esc_attr($ico_gallery); ?>”></i>
    </div>
    </div>
    </div>
    </div>
    <?php endif; ?>
    <div class=”post-info”>
    <?php if(!empty($title)): ?>
    <div class=”title”>
    <?php if($disable_link != ‘true’): ?>
    ” title=”<?php echo esc_html($title); ?>”><?php echo esc_html($title); ?>
    <?php else: ?>
    <?php echo esc_html($title); ?>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    <?php if(!empty($excerpt)): ?>
    <div class=”excerpt”><?php echo esc_html($excerpt); ?></div>
    <?php endif; ?>
    ” title=”<?php echo esc_html($title); ?>” class=”grid-read-more”><?php esc_html_e(‘Read More’, ‘grid-plus’); ?>
    </div>
    </article>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Please try and let me know result.
    Thanks

    • This reply was modified 7 years, 11 months ago by bdbrown.
Viewing 1 replies (of 1 total)
  • The topic ‘Post without images and read more button’ is closed to new replies.