Skip to main content

Slideshow Lightbox slide show light box

To extend the native "Slideshow" Builder element with a "Lightbox" feature, edit it and take these steps:

  • Click on the tab "Advanced" (that of the Slideshow, not that of an item!), scroll down to the field labeled "Attributes", and insert this line

      uk-lightbox="toggle: a.el-link"
    
  • Scroll further down, and enter the following into the field labeled "CSS":

       .el-overlay, .el-link {
       padding: 0;
       width: 100%;
       height: 100%;
       }
       .el-link {
       position: absolute;
       display: flex;
       justify-content: center;
       align-items: center;
       }
    
  • Apply these in the tab "Settings":

    • OVERLAY > Container Width: None
    • OVERLAY > Margin: None
    • OVERLAY > Position: Center
    • OVERLAY > Style: None
    • LINK > Text: ... can optionally contain the markup for an icon like <i uk-icon="icon:expand; ratio: 3"></i>, for instance, or a text like "Show image", for example, or it can be empty. NOTE: I have found you need something in the link text or the lightbox stops working. So something like ... if you don't want text showing.
    • LINK > Style: Link
  • Edit the Grid Item, and in the tab "Content", field LINK > Dynamic > Article: ... select the same image you have selected for IMAGE > Dynamic > Article: ....

    The image defined via "LINK" is the one which is supposed to be displayed in the Lightbox.

Save the changes, test the result.

  • Hits: 11

Bullet Points padding margin

/*padding to right of bullet points*/
.uk-list-bullet > ::before { left: -40px; }
.uk-list-bullet > * { padding-left: 40px; }

  • Hits: 10

Centre Center nav menu items with themselves

Main Menu - Nav Items

/*Centre nav items under themselves*/
.tm-header .uk-navbar-nav > li > a {
text-align: center;
}

Should you want align the text at the top, use this ruleset instead:

.tm-header .uk-navbar-nav > li > a {
display: flex;
align-items: flex-start;
text-align: center;
}

 

For the footer

.uk-nav-sub {
flex-direction: column;
align-items: center;
}

For the header

 

  • Hits: 31