Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Under Source Code Title not Showing
Tagged: image frames, title
- This topic has 4 replies, 2 voices, and was last updated 13 years, 1 month ago by wpCommerce.
-
AuthorPosts
-
August 2, 2011 at 1:34 pm #3955johnzenaSpectator
When I create an image i heard that the alt tags are important as far as SEO is concerned but when I use the following code on my page:
[wp_lightbox_colorbox_image link=”http://amsoil.syntheticmotoroilstoday.com/images/motor-oil/amsoil-0w-20-XLZ_900.jpg” title=”Amsoil Extended Life 0W-20 Synthetic Motor Oil (XLZ)” source=”http://amsoil.syntheticmotoroilstoday.com/images/motor-oil/amsoil-0w-20-XLZ_300.jpg”%5D
and then look at the source code it looks like this:
<a href="http://amsoil.syntheticmotoroilstoday.com/images/motor-oil/amsoil-0w-20-XLZ_900.jpg" rel="wp_lightbox_colorbox_image" title=""><img src="http://amsoil.syntheticmotoroilstoday.com/images/motor-oil/amsoil-0w-20-XLZ_300.jpg"></a>
as you can see the title=”” has nothing in it so my pictures are getting no seo relevancy.
The page is at: http://amsoil.syntheticmotoroilstoday.com/?p=5261
August 2, 2011 at 1:51 pm #35025johnzenaSpectatorYou can disregard my above post, I have found the following code which shows both the title and the alt in the source code. I will use this one from now on:
[wp_lightbox_prettyPhoto_image link=”http://www.example.com/overlay-image.jpg” description=”overlay image description goes here” source=”http://www.example.com/anchor-image.jpg” title=”overlay image title goes here”]
This one looks even better than the one I was using above.
Best Regards;
John
August 3, 2011 at 2:02 am #35026wpCommerceModeratorEven if you pass title in the shortcode the title doesn’t get displayed as colorbox doesn’t have the option to display title for that shortcode (Image display in overlay from an anchor Image). We already have a fix for that shortcode so that It no longer takes title as a parameter.
If you want to use the updated version of the shortcode please get a recent build of the plugin from here:
PrettyPhoto shortcodes have the option to display both the title and alt tags. So I’d recommend you to use it.
October 24, 2011 at 4:05 am #35027johnzenaSpectatorIs it possible to add a frame to the images? Like when you use just the standard image code:
<img src="/image.jpg" class="frame"/>
. So how would I go about putting it in the prettyphoto shortcodes? Thanks again.October 24, 2011 at 8:09 am #35028wpCommerceModeratorwe have already added a new custom stylesheet “wp_lightbox_ultimate_custom.css” in the root directory of the plugin. Now you will be able to add your own css styling to a shortcode anchor easily.
In your case, please open the “wp_lightbox_ultimate_custom.css” file and look for the class “lightbox_ultimate_image_anchor”. Once you find it you can place your desired css code inside it (for example add a border and padding to give a frame look). It will be applied to all the anchor image shortcodes. Here is an example:
.lightbox_ultimate_image_anchor
{
border: 1px solid #000;
padding: 5px
}You might need a recent build of the plugin to get this custom stylesheet.
Please do the following:
1. Deactivate and delete the currently installed version of the plugin(s).
2. Download a fresh build of the plugin(s) from here:
https://support.tipsandtricks-hq.com/update-request
3. Upload and activate this version of the plugin(s).
-
AuthorPosts
- You must be logged in to reply to this topic.