Skip to content
Public Ticket #3488

layout problem

Conversation thread

PenciDesign replied

Staff Reply

Hi,

If you want to do that, please open plugins/penci-framework/shortcodes/block_6/content-items.php file and on line 13, replace this code:

\
if( empty( $atts['hide_thumb'] ) ) {\
        $block6_items .= Penci_Helper_Shortcode::get_image_holder(  array(\
            'image_size' => 'penci-thumb-280-186',\
            'class'      => 'penci_mobj__img',\
            'show_icon'  => ! $atts[ 'hide_icon_post_format' ],\
            'class_icon' => 'small-size-icon',\
            'image_type' => $atts['image_type']\
        )  );\
    }

To:

\
if( empty( $atts['hide_thumb'] ) && has_post_thumbnail() ) {\
        $block6_items .= Penci_Helper_Shortcode::get_image_holder(  array(\
            'image_size' => 'penci-thumb-280-186',\
            'class'      => 'penci_mobj__img',\
            'show_icon'  => ! $atts[ 'hide_icon_post_format' ],\
            'class_icon' => 'small-size-icon',\
            'image_type' => $atts['image_type']\
        )  );\
    }\

Hope this help,

Best Regards,

PenciDesign

cowowo replied

Customer Reply

Hi, can you tell me how it is called the image variable to built a conditional for this?

It is ok that you told me this but the client wants that and I must built it the way he wants.

PenciDesign replied

Staff Reply

Hi,

This theme requirements you to set featured images for all your posts. You should toosmile.png

Best Regards,

PenciDesign

cowowo started the conversation

Conversation Start

Hi, the penciblock item preview, when there is no image, the text is shown as if therewas an image.

I attach the example of what is happenning (ko.png) and what it should be (ok.png)

I've been takeing a look at the code and i am not pretty sure of how to change it, so i prefer asking first. I took a look at wp-content\\plugins\\penci-framework\\shortcodes, there, in the block_6 (because is the one I am using) the file content-items.php

Can you help me to make it work correctly.

Thanks

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