Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1348560

    Hi,
    I am using the catalog element for a food and drinks menu, following the example of the Enfold Restaurant Demo.
    Would it be possible to disable the controls (mfp-arrow) and all slide effects on the pop up images?
    The idea is to display only the image of a specific food menu item, preventing the users to slide to the next one.

    This is our menu page: https://meepleopolis.com/food-drinks/
    Bypass link in private.

    Thanks!

    #1348573

    Hey nasi,
    Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:

    .mfp-container button.mfp-arrow {
    	display: none;
    }
    .mfp-container img.mfp-img {
    	pointer-events: none;
    }
    #top .mfp-gallery .mfp-image-holder .mfp-figure {
        cursor: default;
    }
    .mfp-bottom-bar .mfp-counter {
    	display: none;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1348660

    Hi Mike,

    Thanks for the code. It works, however it also disables the functions to all image galleries across the site.
    I need this function to be applied only to the Catalog Element that is used on the Food and Drinks page of the site.
    I tried to add a Custom CSS Class to the specific elements but it doesn’t seem to react.

    This is what I added:

    /* DISABLE GALLERY FUNCTIONS ON CATALOG ELEMENT (FOOD AND DRINKS PAGE ONLY) */

    .elnasi-gallery-noslide {

    .mfp-container button.mfp-arrow {
    display: none;
    }
    .mfp-container img.mfp-img {
    pointer-events: none;
    }
    #top .mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: default;
    }
    .mfp-bottom-bar .mfp-counter {
    display: none;
    }
    }

    Cold you please have a look ?

    Thanks!!

    #1348682

    Hi,
    Thanks for the feedback, the lightbox div in the DOM opens outside the Catalog Element, so we could limit it to the specific page like this:

    #top.page-id-122 .mfp-container button.mfp-arrow {
    	display: none;
    }
    #top.page-id-122 .mfp-container img.mfp-img {
    	pointer-events: none;
    }
    #top.page-id-122 .mfp-gallery .mfp-image-holder .mfp-figure {
        cursor: default;
    }
    #top.page-id-122 .mfp-bottom-bar .mfp-counter {
    	display: none;
    }

    Best regards,
    Mike

    #1348724

    That did the trick.
    Thanks Mike !!

    #1348760

    Hi,

    Great! Glad we could be of help. Please do not hesitate to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Catalog Element display a single popup image’ is closed to new replies.