New Landing How can we help? Atelier Create Tabs in Modal-view?

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Atelier
  • #309555
    alexanderchristiansen
    Member
    Post count: 179

    Hi Amazing Swift,
    Would love to have Tabs in my Modal views for my size-guides.
    I found a similar site doing it – for your reference.
    How can I make this happen with the Modal-functionality of Swift?

    Attachments:
    You must be logged in to view attached files.
    #309574
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    There is a way to do it. Create the tabs in an spb section and then include the shortcode of the section in the modal shortcode content.

    First create the tabs content inside an Spb Section and then let me know so I can help you.
    Will need admin credentials.

    -Rui

    #309579
    alexanderchristiansen
    Member
    Post count: 179
    This reply has been marked as private.
    #309580
    alexanderchristiansen
    Member
    Post count: 179
    This reply has been marked as private.
    #309587
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #309591
    alexanderchristiansen
    Member
    Post count: 179

    Thanks Rui!
    I will try it right away.
    Quick follow up though – is it possible to make the modal view bigger? The images are very hard to read atm.

    #309645
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I think you should use the image asset instead using an image inside a text block. Right now there are spaces in the image itself I think, better crop it.

    -Rui

    #309814
    alexanderchristiansen
    Member
    Post count: 179

    Hi Rui!
    Thanks!
    Though still a problem. It’s not really working on mobile.
    The Modal window pops out of the screen.
    I guess it could be possible to make the modal 100% size on mobile maybe? (fullscreen)

    #309816
    alexanderchristiansen
    Member
    Post count: 179
    #310026
    David Martin – Support
    Moderator
    Post count: 20834

    I cannot login into the site:

    #310117
    alexanderchristiansen
    Member
    Post count: 179

    Sorry!
    Site is it online again! ๐Ÿ™‚
    Looking forward to your reply.

    #310330
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    This should help you out Alex.

    @media only screen and (max-width: 767px) {
    
    	.modal-body, 
    	.modal.in .modal-content {
    	    width: 100%;
    	    max-width: 350px;
    	}
    	
    	.modal-dialog, .modal.fade .modal-dialog {
    	    -webkit-transform: translate(-65%,-65.4%)!important;
    	    -moz-transform: translate(-65%,-65.4%)!important;
    	    -ms-transform: translate(-65%,-65.4%)!important;
    	    transform: translate(-65%,-65.4%)!important;
    	}
    	
    	.spb_tabs .nav-tabs li a {
    	    padding: 10px 0px;
    	    text-align: left;
        }
    
    }
    
    @media only screen and (max-width: 479px) {
    	.nav-tabs>li {
    	    width: initial;
    	}
    	.spb_tabs .nav-tabs li {
    	    margin-right: 15px;
    	}
    }
    #310502
    alexanderchristiansen
    Member
    Post count: 179

    Hi David,
    Still seems to misalign.
    Please look at – and set it to mobile. It’s not centered.
    https://organicbasics.com/?spb-section=test_modal_001

    #310553
    David Martin – Support
    Moderator
    Post count: 20834

    I have adjusted to this:

    @media only screen and (max-width: 767px) {
    
    	.modal-body, 
    	.modal.in .modal-content {
    	    width: 100%;
    	    max-width: 350px;
    	}
    	
    	.modal-dialog, .modal.fade .modal-dialog {
    	    -webkit-transform: translate(-71%,-65.4%)!important;
    	    -moz-transform: translate(-71%,-65.4%)!important;
    	    -ms-transform: translate(-71%,-65.4%)!important;
    	    transform: translate(-71%,-65.4%)!important;
    	}
    	
    	.spb_tabs .nav-tabs li a {
    	    padding: 10px 0px;
    	    text-align: left;
        }
    
    }
    
    @media only screen and (max-width: 479px) {
    	.nav-tabs>li {
    	    width: initial;
    	}
    	.spb_tabs .nav-tabs li {
    	    margin-right: 15px;
    	}
    }
    #310681
    alexanderchristiansen
    Member
    Post count: 179

    Hi David,
    Still seems to set the modal-view incorrectly.
    Maybe the easiest fix would be to set both height and width to be 100% – so it fills the whole screen?

    Please see here when you click size-guide:
    https://organicbasics.com/product/silvertech-black-t-shirt-2/

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register