Home Forums Basel – Premium Template I have an issue with Image Gallery Short Code

This topic contains 7 replies, has 2 voices, and was last updated by Artem Temos Artem Temos 2 months, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #113064

    brandshub
    Customer

    P

    Private Content Hidden
    #113067

    brandshub
    Customer

    Here is another url for contact us page

    Private Content Hidden
    #113080

    Hello,

    You need to edit the file basel\inc\shortcodes\shortcodes.php and replace the code

    $link = wp_get_attachment_image_url( $img_id, 'full' );
    $image_sizes = getimagesize( $link );

    with this one

    $image_data = wp_get_attachment_image_src( $img_id, 'full' );
    $link = $image_data[0];

    and also this part

    <a href="<?php echo esc_url( $link ); ?>" data-index="<?php echo esc_attr( $i ); ?>" data-width="<?php echo esc_attr( $image_sizes[0] ); ?>" data-height="<?php echo esc_attr( $image_sizes[1] ); ?>" <?php if( $target_blank ): ?>target="_blank"<?php endif; ?> <?php if( $caption ): ?>title="<?php echo esc_attr( $title ); ?>"<?php endif; ?>>

    to this

    <a href="<?php echo esc_url( $link ); ?>" data-index="<?php echo esc_attr( $i ); ?>" data-width="<?php echo esc_attr( $image_data[1] ); ?>" data-height="<?php echo esc_attr( $image_data[2] ); ?>" <?php if( $target_blank ): ?>target="_blank"<?php endif; ?> <?php if( $caption ): ?>title="<?php echo esc_attr( $title ); ?>"<?php endif; ?>>

    Regards

    #113159

    brandshub
    Customer

    Okay thanks,

    I just wanna drag your attention that i have another staging website with basel theme, and the issue is not existed on it, is there any chance i could understand the reason why it appears on only one of them.

    2nd what will happen when the theme updates will i have to do the same steps again ?

    #113176

    It may be caused by different hosting configuration. Anyway, we will fix this in our next theme update.

    #113467

    brandshub
    Customer

    Arabic version filters are not working at all any help ?

    Private Content Hidden
    #113468

    brandshub
    Customer

    Issue Resolved.

    Solution i found:

    Change the slug characters from Arabic to English

    #113470

    Great, we are glad that you sorted it out.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.