I have an issue with Image Gallery Short Code
-
Here is another url for contact us page
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
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 ?
It may be caused by different hosting configuration. Anyway, we will fix this in our next theme update.
Arabic version filters are not working at all any help ?
Issue Resolved.
Solution i found:
Change the slug characters from Arabic to English
Great, we are glad that you sorted it out.