• Resolved rozwal

    (@rozwal)


    Dear All,

    I would like to ask your help for the following: I would like to have my wordpress [gallery] not to display captions (captiontags) under thumbnails, or to display titles instead, BUT to sill have them when you enter the picture, in my case when carousel starts (Gallery Carousel Without JetPack 0.3).

    I tried to edit this part of media.php:

    if ( $captiontag && trim($attachment->post_excerpt) ) {
    $output .= “
    <{$captiontag} class=’wp-caption-text gallery-caption’>
    ” . wptexturize($attachment->post_excerpt) . “
    </{$captiontag}>”;

    and change it into e.g.:

    if ( $captiontag && trim($attachment->post_excerpt) ) {
    $output .= “”;

    But then I neither had captions under thumbnails nor in the carousel. I would be grateful for your suggestions! Thanks in advance.

    My website: https://www.onesmilejourney.com/brychroz/galeria/pekin-2/#

    PS Installing Cleaner Gallery plug-in does not help because when it is activated Carousel does not work.

    Best,
    Piotr

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rozwal

    (@rozwal)

    .gallery .gallery-caption {
    color:#888;
    font-size:11px;
    margin:0 0 12px;
    display:none;
    }

    I’ve just added display:none in style.css. Thanks to this forum. Somehow it did not come up previously in my search results – sorry for starting this topic. But maybe it will help someone with similar problem!

    Thread Starter rozwal

    (@rozwal)

    Resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[gallery] without captiontags’ is closed to new replies.