Coder Social home page Coder Social logo

Comments (9)

crftwrk avatar crftwrk commented on September 22, 2024 1

Hi,

if you using an image block, there is an option to enable the lightbox. See https://dev.bootscore.me/theme/blocks/

Lightbox

Your images are in a hcf-isotope-item and I do not know if it's custom coded or a plugin, but this has nothing to do with the theme.

<div class="col-12 col-md-6 hcf-isotope-item">
  <a class="hcf-masonry-card" href="http://etsak.cloud/wp-content/uploads/2023/12/masonry-1.jpg">
    <img class="card-img img-fluid" loading="lazy" src="http://etsak.cloud/wp-content/uploads/2023/12/masonry-1.jpg" alt="">
  </a>
</div>

You should check if code/plugin supports lightbox gallery.

Edit: Console throws a lot of JS errors in your child's custom.js:

custom.js?ver=6.4.2:8 Uncaught TypeError: Cannot set properties of null (setting 'src') at updateImage (custom.js?ver=6.4.2:8:13)

Think bug is somewhere there...

from bootscore.

crftwrk avatar crftwrk commented on September 22, 2024 1

It's raw html code I got from a snippet in order... happens in all my Bootscore projects and I think it makes sense because when clicked it takes the visitor to the image

Does this snippet work with other themes?

from bootscore.

crftwrk avatar crftwrk commented on September 22, 2024 1

This is a HTML site and images do not open in a lightbox. WordPress links all media files to the library by default, that is different to HTML sites. If you want that images open in a lightbox you need a script which supports this for example http://feimosi.github.io/baguetteBox.js/.

Question: Does your code work well with a default WP theme like https://wordpress.org/themes/twentytwentyone/?

from bootscore.

crftwrk avatar crftwrk commented on September 22, 2024 1

Not sure I understand what you mean if the code is working with another theme

I am asking this, because we have to check if this is a bug in Bootscore theme or not. If something works fine with other themes and not working here, we have to fix this.

BTW, coming back to your code. The image src is linked, that's why click on image leads to the media source:

<div class="col-12 col-md-6 hcf-isotope-item">
  <a class="hcf-masonry-card" href="http://etsak.cloud/wp-content/uploads/2023/12/masonry-1.jpg">
    <img class="card-img img-fluid" loading="lazy" src="http://etsak.cloud/wp-content/uploads/2023/12/masonry-1.jpg" alt="">
  </a>
</div>

Why not simply remove the link?

<div class="col-12 col-md-6 hcf-isotope-item">
  <div class="hcf-masonry-card">
    <img class="card-img img-fluid" loading="lazy" src="http://etsak.cloud/wp-content/uploads/2023/12/masonry-1.jpg" alt="">
  </div>
</div>

from bootscore.

akvrmvlakis avatar akvrmvlakis commented on September 22, 2024 1

Thank you very much for taking the taking the time to look into this Basti I will definitely use the Lightbox script you recommended.

from bootscore.

akvrmvlakis avatar akvrmvlakis commented on September 22, 2024

Hello Basti, It's raw html code I got from a snippet in order to create a quick masonry effect I am not using any plugins as of yet and not using gutenberg blocks either but it happens in all my Bootscore projects and I think it makes sense because when clicked it takes the visitor to the image url and there shouldn't be anything there. I will consider using either Gutenberg blocks (I suck at php and will have to find a way to add it within the page templates..) or a lightbox plugin. Yes the child is complaining due to some custom JS code for the image slider on the main page I haven't found a way around it yet but the fullscreen slider is working so I am leaving it for last :) Thanks for your time and the help I will go with either of the above discussed options. I wish you a happy new year my friend!

from bootscore.

akvrmvlakis avatar akvrmvlakis commented on September 22, 2024

Btw the lightbox on https://dev.bootscore.me/theme/blocks/ looks awesome! :))) This is exactly what I am looking for. I can't wait for the next Bootscore release. Thanks

from bootscore.

akvrmvlakis avatar akvrmvlakis commented on September 22, 2024

Yeah definitely I suppose especially with static sites and other Bootstrap-based themes I got it from here: https://htmlcssfreebies.com/demo/?id=850

from bootscore.

akvrmvlakis avatar akvrmvlakis commented on September 22, 2024

Thank you very much Basti the Lightbox JS script looks like a lifesaver! I will def use it :) Not sure I understand what you mean if the code is working with another theme It is endless Bootstrap classes meant to work only on Bootscore. What I do is just create page templates from scratch I just include the get_header() and get_footer(), I leave the #content# #primary and #main and all the rest is pure Bootstrap. All of this thanks to you guys and the excellent piece of work you've put out that's called Bootscore! :)))

from bootscore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.