diff --git a/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js b/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js index 5db1077..113c57a 100644 --- a/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js +++ b/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js @@ -150,7 +150,7 @@ settings.rel = settings.rel || element.rel || 'nofollow'; settings.href = settings.href || $(element).attr('href'); - settings.title = settings.title || element.title; + settings.title = settings.title || $(element).data('title'); //element.title; if (typeof settings.href === "string") { settings.href = $.trim(settings.href); diff --git a/src/wp-content/themes/originalhouse/archive.php b/src/wp-content/themes/originalhouse/archive.php index 1aba6fb..7e6af39 100644 --- a/src/wp-content/themes/originalhouse/archive.php +++ b/src/wp-content/themes/originalhouse/archive.php @@ -1,8 +1,8 @@ -
@@ -18,7 +18,10 @@
- +
> @@ -34,7 +37,7 @@ $description = get_the_content(); $attrib = array('title' => $title); ?> - + diff --git a/src/wp-content/themes/originalhouse/includes/js/general.js b/src/wp-content/themes/originalhouse/includes/js/general.js index a468767..16735d4 100644 --- a/src/wp-content/themes/originalhouse/includes/js/general.js +++ b/src/wp-content/themes/originalhouse/includes/js/general.js @@ -4,7 +4,29 @@ jQuery(document).ready(function() { + /*$.colorbox.settings.title = function() { + // would apply to all instances of colorbox + return $(this).find('img').attr('alt') || this.title || ''; + }*/ + + if ( jQuery( 'a.size-thumbnail' ).length ) { + jQuery("a.size-thumbnail").each(function() { + var $this = jQuery(this); + $this.data('title', $this.attr('title')); + $this.removeAttr('title'); + }); + } + if ( jQuery( '.post_container .posts .post .entry a' ).length ) { + jQuery('.post_container .posts .post .entry a').each( function() { + var $this = jQuery(this); + $this.data('title', $this.attr('title')); + $this.removeAttr('title'); + }); + } + + + /*if ( jQuery( '.post_container .posts .post .entry a' ).length ) { jQuery('.post_container .posts .post .entry a').each( function() { var $this = jQuery(this); $this.data('title',$this.attr('title')); @@ -30,7 +52,7 @@ jQuery(document).ready(function() { var $title = $this.data('title'); $this.attr('title', $title); }); - } + }*/ diff --git a/src/wp-content/themes/originalhouse/loop-tcp-grid.php b/src/wp-content/themes/originalhouse/loop-tcp-grid.php index 0841a63..de771e4 100644 --- a/src/wp-content/themes/originalhouse/loop-tcp-grid.php +++ b/src/wp-content/themes/originalhouse/loop-tcp-grid.php @@ -26,7 +26,7 @@ ?> - +

@@ -67,23 +67,33 @@ while ( have_posts() ) :
'; + $description .= $content; + } if (has_post_thumbnail()) { + $attr = array('alt' => $description, + 'title' => the_title_attribute('echo=0')); $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); ?> - + - +