This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Simple masonry title

8 years ago · Last reply by Alex S 8 years ago

As I can not reply to following topic, I create a new one

Site Origin Simple Masonry display title

Is it an idea to just go to widgets-bundle > simple-masonry > tpl > default.php

Underneath line:

<?php echo wp_get_attachment_image( $item['image'], 'large', false, array( 'title' => esc_attr( $title ) ) ); ?>

add:

<?php 
 echo '';
 echo $title;
 echo ''; 
?>

add some css to your theme like:

.sow-masonry-grid-item a p {
	display: none;
	position: absolute;
	z-index: 1;
	bottom: 0;
	left: 0;
	top: 0;
	right: 0;
	margin: 0;
	font-weight: bold;
	color: #fff;
	background: rgba(0,0,0,0.5);
	padding: 25px;
}
.sow-masonry-grid-item a:hover p {
	display: block;
}

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 8 months ago

    Hi Andreas,

    Thank you for the snippet. :)
    Consider submitting a pull request for the SiteOrigin Widgets Bundle for its inclusion.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread