Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Please post a link to a sample. Thank you!

    Thread Starter inhesion

    (@inhesion)

    inhesion.tk/portfolio

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    You should be able to put links in the captions just by wrapping them in a link tag.

    So if you had a caption like:

    Hello there

    And you wanted that to link to Google, you should change the caption to:

    <a href="http://google.com">Hello There</a>

    Thread Starter inhesion

    (@inhesion)

    but i want to open image in lightbox, not another link, just like I click on image

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Thread Starter inhesion

    (@inhesion)

    So that I just need to place direct link to my image?

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Just make sure that your gallery images are linking to Image File and not Attachement Page. Then the images should open up in a lightbox.

    Thread Starter inhesion

    (@inhesion)

    Second question is about how to layout text to be posted on image? For example I want to place also some metadata or keywords?

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    You would have to manually create new CSS to overlay the captions on the image. This plugin doesn’t control the appearance of your captions. The appearance of your captions is controlled by your theme.

    Thread Starter inhesion

    (@inhesion)

    Can you post a working example. I new to css

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    This example is taken directly from the Twenty Fourteen site. It’s a great starting point:

    .gallery-caption {
    	background-color: rgba(0, 0, 0, 0.7);
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing:    border-box;
    	box-sizing:         border-box;
    	color: #fff;
    	font-size: 12px;
    	line-height: 1.5;
    	margin: 0;
    	max-height: 50%;
    	opacity: 0;
    	padding: 6px 8px;
    	position: absolute;
    	bottom: 0;
    	left: 0;
    	text-align: left;
    	width: 100%;
    }
    
    .gallery-caption:before {
    	content: "";
    	height: 100%;
    	min-height: 49px;
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    }
    
    .gallery-item:hover .gallery-caption {
    	opacity: 1;
    }
    
    .gallery-columns-7 .gallery-caption,
    .gallery-columns-8 .gallery-caption,
    .gallery-columns-9 .gallery-caption {
    	display: none;
    }
    Thread Starter inhesion

    (@inhesion)

    Thanks a lot! But I can’t understand most lines about gallery columns

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Don’t worry about those lines. The lines you really need are:

    .gallery-caption {
    	background-color: rgba(0, 0, 0, 0.7);
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing:    border-box;
    	box-sizing:         border-box;
    	color: #fff;
    	font-size: 12px;
    	line-height: 1.5;
    	margin: 0;
    	max-height: 50%;
    	opacity: 0;
    	padding: 6px 8px;
    	position: absolute;
    	bottom: 0;
    	left: 0;
    	text-align: left;
    	width: 100%;
    }
    
    .gallery-caption:before {
    	content: "";
    	height: 100%;
    	min-height: 49px;
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    }
    
    .gallery-item:hover .gallery-caption {
    	opacity: 1;
    }
    Thread Starter inhesion

    (@inhesion)

    I Did everything you said but it looks like not I wanted. http://inhesion.tk/portfolio For now only text-height if fading. I want hole image fades. Can you contact me inhesion@ukr.net

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘gallery-item caption’ is closed to new replies.