Portfolio gallery doesn't work

Hi I follow the istruction but the gallery not working in portoflio page, if i try to move to the next photo the link is with #

Hi Federico,

Thanks for reaching out.

I checked your site and it’s due to your Jetpack’s Lazy images feature, it lazy load the images affecting the display of your gallery. Please deactivate that feature, then clear its cache and test it again.

Thanks!

Hi Rad I try to follow your suggest but the problem was not solve.

Hello Federico,

I can see that there is a JS error in your page. It is result of the invalid JS code you have added. Please have your custom JS code updated and use this instead:

</script><!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KM9TCNB');</script>
<!-- End Google Tag Manager -->

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KM9TCNB"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->


<!-- Hotjar Tracking Code for https://www.camshots.it -->
<script>
    (function(h,o,t,j,a,r){
        h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
        h._hjSettings={hjid:1026403,hjsv:6};
        a=o.getElementsByTagName('head')[0];
        r=o.createElement('script');r.async=1;
        r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
        a.appendChild(r);
    })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');

You will noticed that the <script> tag closing were added and remove at the end. That is because in the front end, this whole script will be wrapped with a script tag.

Please resolve this JS error first and test your site again.

I try to remove all the code and browse the page with anonymus windows but nothing change.

Hey Federico,

​To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thank you.

Hello Federico,

I have logged in and it turns out that there is only one image in the portfolio gallery slider. You might have set it up in correctly. Please check out this knowledge base article to know how you can set up the feature gallery properly. Please see “Post Format and Portfolio Galleries in X” section in this link: https://theme.co/apex/forum/t/features-galleries/100

Hope this helps.

I see 2 photos in the page… I add the photo like a post. Where I have to added? I read yor document but I don’t understand where is the right place where add gallery slider

Hello Federico,

Please be advised that only images uploaded within the portfolio items will be added in the portfolio gallery. If you have uploaded an image somewhere and just attached it in your portfolio item, then it will not show up in the gallery. You can check it when you click the “Add Media” button.

To resolve your issue, you must edit each of the portfolio item, click the “Add Media” button and then upload the images that you would like to appear in the portfolio item gallery. You do not need to insert it in the contents. Once you have successfully uploaded the images, just close the “Add Media” popup.

Hope this make sense.

Ok now I understad. Thank you very much for your help :grinning:

You’re most welcome!
We’re glad we were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.