• Resolved agrudick2017

    (@agrudick2017)


    The standard front end-behavior for a Simple Portfolio seems to be as follows: Clicking on the image triggers the lightbox and clicking on the caption below the image also triggers the lightbox.

    Is there a way to set up an individual Simple Portfolio so that clicking on the image triggers the lightbox (just the way it does now), but so that the caption text behaves like regular text that can be copied by the user (just like regular text anywhere else in the website).

    In its current configuration, an attempt to copy the caption on a desktop triggers the lightbox without copying the text and an attempt to copy the caption on a phone by pressing and holding, does nothing.

    Best regards,
    Art Rudick
    Atlanta Street Art Map

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author steveush

    (@steveush)

    Hi @agrudick2017,

    You can override the default behavior by making use of the FooGallery > Settings > Custom JS & CSS tab.

    Once there paste the following into the Custom Javascript input:

    
    FooGallery.Item.prototype.onCaptionClick = function(){};
    

    Then just below it paste the following into the Custom Stylesheet input:

    
    .foogallery .fg-item {
        -webkit-user-select: auto;
        -moz-user-select: auto;
        -ms-user-select: auto;
        user-select: auto;
    }
    .foogallery .fg-caption {
        cursor: default;
    }
    

    Save the settings and the captions should become selectable once more.

    Thanks
    Steve

    Thread Starter agrudick2017

    (@agrudick2017)

    Steve – That worked. Thank you. – Art

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I Want the Caption Text to be Copyable’ is closed to new replies.