I'm trying to add a short description for each image within a portfolio post. I've tried adding the text to the image through the media library but it doesn't display.
Skyfashion actualy doesn't support this feature. If you want to add a caption: 1. 2. Edit file into theme skyfashion common/js/scripts.js 3. After
jQuery(document).ready(function ($) {
add this function:
if ($('#portfolio_photos a').length) {
$('#portfolio_photos a').each(function() {
$(this).attr("title",$(this).find("img").attr('alt'));
});
}
4. In WordPress when you are editing images in porfolio there is a text field "Image attributes". Add your description into: alt="here add your description".
Comments
how you would like to display this description?
Best,
Miłosz
thanks
Could you show me this feature on our demo? (http://themes.apollo13.eu/skyfashion/).
If not, send me a screenshot, what do you really want to display.
Skyfashion actualy doesn't support this feature.
If you want to add a caption:
1.
2. Edit file into theme skyfashion common/js/scripts.js
3. After add this function: 4. In WordPress when you are editing images in porfolio there is a text field "Image attributes". Add your description into: alt="here add your description".
Let me know if this works for you.
Kind regards.
(It's probably a good feature to add into the next version, as most images need at the very least photo credits).
Thank you for your advice.
We are now creating the new version and this is one of new features.
Kind regards