Okay
  Public Ticket #2603535
Disable Fancybox
Closed

Comments

  • BRidener started the conversation

    Hello,

    I have some portfolio project pages on my website that use the single column option for the built-in image gallery and I was wondering if there's any way I can disable the Fancybox popup for these pages. I posted a screenshot, but when you click the images on these pages to enlarge them, they actually show up smaller in the popup than they appear on the page. For that reason I wanted to see if there's a way I can just disable it for certain pages like this.

    I did notice there's a checkbox in the portfolio post options to enable Fancybox, but even with that unchecked it still works and I'm not sure why. Any help would be great! Thank you so much.

    -Brandon R.

  •  869
    Neuron replied

    Hi Brandon R.

    Please go to Proton > Theme Options > Portfolio Item > Portfolio Item Gallery and there you have the option to turn off the fancybox.

    https://prnt.sc/vlicez

    Feel free to ask for anything you need.

    Kind Regards


  • BRidener replied

    Thank you, that worked.

    I do notice that after disabling that however, the images are still clickable and move you to the top of the page when clicking them. Is there any way to make it so they do nothing?

  •  869
    Neuron replied

    Hi Brandon R.

    Can you please provide me with an URL of any of your portfolio items, so I will have a quick look to see what's going on.

    Feel free to ask for anything you need.

    Kind Regards 


  •   BRidener replied privately
  •  869
    Neuron replied

    Hi Brandon R.

    Can you please provide me with your WP-admin, I will have a quick look to see what's going on.

    Feel free to ask for anything you need.

    Kind Regards


  •   BRidener replied privately
  •  869
    Neuron replied

    Hi Brandon R.

    I've added you the following code at Proton > Theme Options > General > Custom CSS Code.

    /* Remove the link from images */
    .wrapper .project-single a img{
        pointer-events:none !important;
    }
    

    Feel free to ask for anything you need.

    Kind Regards


  • BRidener replied

    Alright, perfect.

    Is there any way to only do it on select portfolio items? For some of them I'd still like to have the Fancybox slider. I just didn't want it on pages where the images were already large on the page.

  •  869
    Neuron replied

    Hi Brandon R.

    Okay, so can you go and remove the code that I've sent you before and then go to Proton > Theme Options > Portfolio Items > Portfolio Item Gallery and turn on the fancy box.

    Then please tell me on which portfolio items you want to remove (if you can send me the URL-s of those portfolio items).

    Feel free to ask for anything you need.

    Kind Regards


  • BRidener replied

    These are the only ones I don't want it on:

    https://ridenerdesign.com/portfolio/albertoculverstudios/

    https://ridenerdesign.com/portfolio/invaderzimposter/

    https://ridenerdesign.com/portfolio/creaturefromtheblacklagoon/

    If there's a method to removing it for the pages, please explain. I may have to do it again in the future for any other pages I add. Thank you!

  •  869
    Neuron replied

    Hi Brandon R.

    I've added you the following code at Proton > Theme Options > General > Custom CSS Code.

    /* Remove the link from images */
    .postid-851 .wrapper .project-single a img,
    .postid-865 .wrapper .project-single a img,
    .postid-862 .wrapper .project-single a img{
        pointer-events: none !important;
    }

    Unfortunately for now you can remove only with this code, the part that changes for different portfolio items is the post id, the other part of the code is the same, but you can ask for help from us and we will remove it also from the other portfolio items until we release an update.

    Feel free to ask for anything you need.

    Kind Regards,

    NeuronThemes


  • BRidener replied

    Perfect! Thank you so much. I should be able to take care of any other posts from now on by editing that code. That's easy enough.

    Thanks again for everything. I really appreciate your help.

  •  869
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    If you like our theme, please leave us a rate with 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes