Docy

Did You Know?

Elements

Source Code

Welcome to Docy ! Get familiar with the Docy products and explore their features, guides, tips and tools.

HTML Code Blocks

From a group of elements with one parent. Same as first one, but use this method if you are creating a popup from a list of elements in one container. Note that this method does not enable gallery mode, it just reduces the number of click event handlers; each item will be opened as a single popup. If you wish to enable gallery, add the gallery:{enabled:true} option.

                                    For example, <code><section></code> should be wrapped as inline.
                                

CSS Source Code

                        
                        /*Overlay Image Start*/	
.image {
    float: left;
    height: 300px;
    overflow: hidden;
    position: relative;
    width: 246px;
}

.image h2 {
    float: left;
    height: 42px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 237px;
    width: 194px;
}

.image h2 span { 
   color: white; 
   font: bold 24px/45px Helvetica, Sans-Serif; 
   letter-spacing: -1px;  
   /*background: rgb(0, 0, 0); /* fallback color */
  /* background: rgba(0, 0, 0, 0.7);*/
   padding: 10px; 
}


#section2 li {
    border: 3px solid #F2B8A0;
    float: left;
    height: 300px;
    list-style: none outside none;
    margin-right: 20px;
    margin-top: 34px;
    overflow: visible;
    position: relative;
    width: 246px;
    z-index: 999999;
}


span.roll {
    background: url("/images/mag.png") no-repeat scroll center center #CC502F;
    color: #E0E5CA;
    font-style: italic;
    font-weight: lighter;
    height: 296px;
    position: absolute;
    text-transform: lowercase;
    width: 241px;
    z-index: 10;
}
/*Overlay Image End*/                        
                        
                        
                        /*Overlay Image Start*/	
.image {
    float: left;
    height: 300px;
    overflow: hidden;
    position: relative;
    width: 246px;
}

.image h2 {
    float: left;
    height: 42px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 237px;
    width: 194px;
}

.image h2 span { 
   color: white; 
   font: bold 24px/45px Helvetica, Sans-Serif; 
   letter-spacing: -1px;  
   /*background: rgb(0, 0, 0); /* fallback color */
  /* background: rgba(0, 0, 0, 0.7);*/
   padding: 10px; 
}


#section2 li {
    border: 3px solid #F2B8A0;
    float: left;
    height: 300px;
    list-style: none outside none;
    margin-right: 20px;
    margin-top: 34px;
    overflow: visible;
    position: relative;
    width: 246px;
    z-index: 999999;
}


span.roll {
    background: url("/images/mag.png") no-repeat scroll center center #CC502F;
    color: #E0E5CA;
    font-style: italic;
    font-weight: lighter;
    height: 296px;
    position: absolute;
    text-transform: lowercase;
    width: 241px;
    z-index: 10;
}
/*Overlay Image End*/                        
                        
                        
                        /*Overlay Image Start*/	
.image {
    float: left;
    height: 300px;
    overflow: hidden;
    position: relative;
    width: 246px;
}

.image h2 {
    float: left;
    height: 42px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 237px;
    width: 194px;
}

.image h2 span { 
   color: white; 
   font: bold 24px/45px Helvetica, Sans-Serif; 
   letter-spacing: -1px;  
   /*background: rgb(0, 0, 0); /* fallback color */
  /* background: rgba(0, 0, 0, 0.7);*/
   padding: 10px; 
}


#section2 li {
    border: 3px solid #F2B8A0;
    float: left;
    height: 300px;
    list-style: none outside none;
    margin-right: 20px;
    margin-top: 34px;
    overflow: visible;
    position: relative;
    width: 246px;
    z-index: 999999;
}


span.roll {
    background: url("/images/mag.png") no-repeat scroll center center #CC502F;
    color: #E0E5CA;
    font-style: italic;
    font-weight: lighter;
    height: 296px;
    position: absolute;
    text-transform: lowercase;
    width: 241px;
    z-index: 10;
}
/*Overlay Image End*/                        
                        

JavaScript Code

                        
                                                
                        
                        
                                                
                        
                        
                                                
                        

PHP Source Code

3 Comment

  • Issac Wise

    July 3, 2020 at 2:14 pm

    Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.

    Reply
    • Hans Down

      44 mins ago

      Thenks Demo User for Wouldn’t it be better practice to use get_the_title.

      Reply
    • Hans Down

      44 mins ago

      Dropped a clanger up the kyver easy peasy vagabond victoria sponge Charles tinkety tonk old fruit argy.!

      Reply
  • Chauffina Carr

    04 mins ago

    Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *