Before you ask please READ THIS

retina 5k

edited December 2018 in Rife Posts: 42
Hi :-)
1. On the retina 5k page http://kotniz.eu/2019 have black marign on the left and right side, not full width. Screen one the Attachment.
2. On my album I need to have three property after clicking on the brick:
a) link to another page (it works)
b) and some brick that the click does not work (so that the photo does not grow)
c) video on lightbox
Post edited by farell on

Comments

  • AirAir
    Posts: 10,970
    Hey :-)

    This may come helpful in future https://www.take-a-screenshot.org/ :-)

    farell said: 1. On the retina 5k page http://kotniz.eu/2019 have black marign on the left and right side, not full width. Screen one the Attachment.
    You can increase max-wdith of gallery by editing album that you are using on your front page. https://rifetheme.com/help/docs/content-management/albums-works-post-types/album-options/

    Go to Album details -> Album Media -> Max width of bricks content. max value is 2500px but you can enter higher value by hand if you really need to.

    farell said: On my album I need to have three property after clicking on the brick:
    a) link to another page (it works)
    b) and some brick that the click does not work (so that the photo does not grow)
    c) video on lightbox
    Do you want to have all those 3 different actions on single brick? That is rather not possible.

    If you mean that you want these actions on other bricks then it is rather tricky as you want lightbox and don't want it at the same time ;-)

    For "and some brick that the click does not work " I would add custom link for this photo with empty anchor "#"(just hash). Put it in Link option.

    As for "video on lightbox " - add your video, and add its Video Thumb - https://rifetheme.com/help/docs/content-management/albums-works-post-types/album-media/#youtube-vimeo-video

    In theme options in customizer, be sure to disable displaying videos in bricks: Appearance → Customize → Albums Settings → Single album – bricks → Display thumbs instead of video → Enable.

    Hope that helps.

    With kind regards.
  • Posts: 42
    I mean exactly what you write. Thank you.
    But empty anchor "#" solves the problem only partially, because when i under the brick the mouse cursor (hand icon) suggests that I can toutch it - should not.
  • AirAir
    Posts: 10,970
    That is a good point. In this case, lets try something like this. Please add this custom CSS:
    .gallery-frame .object-item .caption > a[href="#"]{
    	cursor: default;
    }
    With kind regards.
  • edited December 2018 Posts: 42
    It works partially :-) Under the brick mouse cursor is invisible - great. But I can still click on the brick and it move me at the beginning gallery.
    Post edited by farell on
  • AirAir
    Posts: 10,970
    This code will only affect bricks with links set to "#", so it shouldn't create a problem on other.

    With kind regards.
  • AirAir
    edited December 2018 Posts: 10,970
    farell said: It works partially :-) Under the brick mouse cursor is invisible - great. But I can still click on the brick and it move me at the beginning gallery.
    There is nothing more that I can do from CSS level. If I disable the option to click with adding pointer-events: none; to the previous CSS then again cursor for clicking will appear, as it is set on an element on the layer below.

    Either allow people to open photos to lightbox, or go on with the current solution.

    To make it work as you wish It would require to create a new option to disable photos opening to lightbox in an album exclusively.

    With kind regards.
    Post edited by Air on
  • edited December 2018 Posts: 42
    delete post ;-)
    Post edited by farell on
  • AirAir
    Posts: 10,970
    In such case maybe a better idea would be to create a normal page, and link each photo exactly as you like.

    As for cost - we don't do custom work. We try to help in range what is possible with the theme.

    Problem is that is probably getting out of range for what albums were created. Adding such option to the album doesn't serve a purpose of albums :-)

    I have one more idea!

    You have links, videos, and photos that you don't want to open to lightbox.
    Thanks to this special case, we can try such custom CSS:
    
    /* disable cursor action on empty links */
    .gallery-frame .object-item .caption > a[href="#"]{
    	cursor: default;
    	pointer-events: none;
    }
    /* remove hand curosor from all items */
    .gallery-frame .object-item{
    	cursor: default;
    }
    /* add hand curosor to video type */
    .gallery-frame .object-item.type-video{
    	cursor: pointer;
    }
    Add this instead of the previous one.

    With kind regards.
  • Posts: 42
    wow, it works - thank you very much :-)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!