dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

how to disable it on some links? #1185

Open Abod1960 opened 2 years ago

Abod1960 commented 2 years ago

I want to disable Magnific-Popup on some links and I don't even know why it is working on these links they don't contain any images already and the links are not image paths! take a look:

 <a href="https://abod1960.artstation.com/projects/8eK53q" target="_blank">
              <div class="info">
                <h3>See The Castle</h3>
                <div class="cat"></div>
                <div class="icons_container">
                  <span class="small_icons">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" fill="color"
                      stroke="currentColor" stroke-width="0" stroke-linecap="round" stroke-linejoin="round"
                      class="feather feather-corner-up-right about__button-icon" id="bicon">
                      <path
                        d="M26,365.896l38.925,67.261c7.695,15.208,23.354,25.617,41.55,25.617h258.357l-53.591-92.878H26z     M478.44,341.094L327.989,77.938c-7.785-14.664-23.265-24.713-41.099-24.713h-80.023l232.919,405.186l36.843-63.818    C478.35,391.697,495.64,367.706,478.44,341.094z M273.131,299.903L168.576,118.856L64.02,299.903H273.131z">
                      </path>
                    </svg>
                  </span>
                </div>
              </div>
            </a>

then this is the result: image

and if I click the link "the image" it will take me to the link I added already {https://abod1960.artstation.com/projects/8eK53q} not for any images, so I'm wondering why it is activating itself even tho there are no img paths or links?