Forum Replies Created
-
AuthorPosts
-
Hi boaz,
You were right! it works only if there is text in both the title and the caption. after some tinkering, i found that it doesn’t matter what the text is in the caption, as long as there is text, and then the gallery displays the text in the “title” field/
although this is a solution, i believe this is a bug. it seems logical that there is a condition that tells the gallery to display something only of there is any text in the caption, but when it does, it displays the title field instead of the caption field. of course i didn’t write the code, but it seems more “right” to meThank you for all your help!
Problem solvedThis reply has been marked as private.hi boaz.
your role has been updated to admin
sorry for the very long delayThis reply has been marked as private.Hello Noa,
Actually, I’m talking about slideshow galleries, like the one in my site here
if you look at some of the images (not all) there is a caption on the bottom right of the image.
in the past, these captions were taken from the image’s “caption” field that can be filled when selecting images for the gallery and also it allowed me to use hebrew.
now, if you notice, the captions are all in english (because they won’t be displayed if they are in hebrew). and also, this text was taken from the image’s “title” field.
no code was added. this is an out-of-the-box pojo feature.
i would like to know what has changed, or if i have done something to make this stop working. or maybe its a bug that came with an update… i don’t know.
thanks for your help
Thank you very much for your response
i inserted the following php file into the child theme:
<?php /** * Content: Gallery Masonry */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $_pojo_parent_id; $categories = ''; $categories_terms = get_the_terms( null, 'pojo_gallery_cat' ); if ( ! empty( $categories_terms ) && ! is_wp_error( $categories_terms ) ) $categories = wp_list_pluck( $categories_terms, 'name' ); ?> <div id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'pojo_post_classes', array( 'grid-item gallery-item masonry-item col-md-3 col-sm-6 col-xs-6' ), get_post_type() ) ); ?>> <?php if ( $image_url = Pojo_Thumbnails::get_post_thumbnail_url( array( 'width' => '420', 'placeholder' => true ) ) ) : ?> <figure class="image-link"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> <img src="<?php echo $image_url; ?>" alt="<?php echo esc_attr( get_the_title() ); ?>" class="media-object" /> <div class="overlay-image"></div> <div class="caption overlay-title"> <h4 class="grid-heading"> <?php the_title(); ?> <?php if ( ! empty( $categories ) ) : ?> <small><?php echo implode( ', ', $categories ); ?></small> <?php endif; ?> </h4> </div> </a> </figure> <?php endif; ?> </div>
Thank you for your reply
oh well…
thanks anyway for your response!!thanks for the quick response! much appreciated
if anyone knows of a good plugin that does this i would love to know
thanks all
i just enabled the show title option in the lightbox options under theme options (i also enabled social sharing just in case) and the caption still isn’t showing.
here is the website: http://unger.guyazran.com/%D7%9E%D7%A9%D7%A7%D7%A4%D7%99-%D7%A8%D7%90%D7%99%D7%94/
in this page you can see that the caption is showing under the photo, but when clicking on them and going into the lightbox, they are do not show.i know this is possible because i saw it in this site: http://motital.com/1/ruta/?pojo_gallery=%D7%9E%D7%AA%D7%95%D7%A7%D7%99%D7%9D
why is it not working for me? please help
thank you yakir.
however, i noticed thatt this is not the case in all of the sites i have created.
furthermore, i noticed that when i import the demo site, this does not happen.
is there a checkbox that i am missing somewhere that disables this function. if so, i would appreciate help finding it
thanks againi am using atlanta version 3.3.1, and there are no updates available
Thank you noa.
very helpfulMoving the site by:
copying files by ftp ,
export database from PHPMyAdmin , replace all strings of old domain with new domainwordpress updated to the last version 4.1.1 He
-
AuthorPosts