Carousel gallery: mobile view not correct
-
Hello,
I got a problem with the carousel gallery in mobile view and hope, that someone could help me.
I’ve created a test page and inserted the carousel gallery with the block editor in wordpress. I’ve choosed six images for the gallery, to show two images in a row, so I have to slide to see the other images. That works perfect!
Unfortunately I can’t work that way, because I get the data for the images from a database, which means, that I produce the code automatically with php.
Therefore I’ve changed to the code-editor and copied the whole html-code from the test page, changed the static images with the dynamic image-links and pasted it into my wordpress template to display the gallery on a custom post type.
Unfortunately the result is not the same as on the test page. There are two images shown in one row, but there’s a third (smaller) image hanging in the next row on the left. There are also no arrows, so I can’t slide other images at all.
In the past this was working, I noticed the wrong view a few days ago! Maybe the wrong view is related to an update?
By the way, to get the required code-lines into the head of the page, I have the following code in my functions.php:
function my_custom_js() {
echo “<script src=’https://mydomain.com/wp-content/plugins/kadence-blocks/dist/vendor/slick.min.js?ver=1.10.5′ id=’kadence-slick-js’></script>
<script src=’https://mydomain.com/wp-content/plugins/kadence-blocks/dist/kt-slick-init.js?ver=1.10.5′ id=’kadence-blocks-slick-init-js’></script>
<link rel=’stylesheet’ id=’kadence-blocks-gallery-css’ href=’https://mydomain.com/wp-content/plugins/kadence-blocks/dist/blocks/gallery.style.build.css?ver=1.10.5′ media=’all’ />
<link rel=’stylesheet’ id=’kadence-blocks-pro-slick-css’ href=’https://mydomain.com/wp-content/plugins/kadence-blocks/dist/vendor/kt-blocks-slick.css?ver=1.10.5′ media=’all’ />”;
}add_action( ‘admin_head’, ‘my_custom_js’ );
add_action( ‘wp_head’, ‘my_custom_js’ );These lines are loaded into the head-section correctly. So what could be the problem?
Thank you very much in advance for your help ??
Andreas
- The topic ‘Carousel gallery: mobile view not correct’ is closed to new replies.