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 #1635505
layout problem
Closed

Comments

  • cowowo started the conversation

    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

  •  2,699
    PenciDesign replied

    Hi,

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


    Best Regards,

    PenciDesign

  • cowowo replied

    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.

  •  2,699
    PenciDesign replied

    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