• Resolved jeditricks

    (@jeditricks)


    Hi Nobita,

    I was wondering if we could get some controls to edit the gallery system. Currently, adding captions only displays via mouseover, and thumbnails in the gallery are aligned at the bottom so when there’s a tall thumb the wide thumbs look odd sitting on a lower line. However, sometimes I’d prefer to have the thumbnails aligned at the middle or even the top; and generally I’d like to have captions displayed on the page itself. I know not everybody likes their gallery working the same way, so I figured I’d ask if we could get controls for that in the Raindrops theme editor.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author nobita

    (@nobita)

    Hi @jeditricks

    You can remove Raindrops gallery style.

    functions.php

    
    <?php
    $raindrops_extend_galleries = false; // ADD Only this line
    /**
     *
     *
     * @package Raindrops
     * @since Raindrops 0.1
     */
    if ( !defined( 'ABSPATH' ) ) {
    	exit;
    }
    do_action( 'raindrops_before' );
    

    After making this change, viewing the gallery will spread throughout the post, the gallery will be displayed and will be slightly clumsy.

    easy fix
    centered gallery

    
    <div class="centered">
    [gallery ids="44148,44146,44144"]
    </div>
    

    left gallery

    
    <div class="alignleft">
    [gallery ids="44148,44146,44144"]
    </div>
    

    right gallery

    
    <div class="alignright">
    [gallery ids="44148,44146,44144"]
    </div>
    

    Thank you.

    Theme Author nobita

    (@nobita)

    Change according to the time to display

    Add the Custom CSS for this entry.

    
    .gallery .wp-caption-text{
         display:block;
         position:static;
         visibility:visible;
         opacity:1;
         color:currentColor;
         background:transparent;
         overflow: hidden;
         margin: 4px;
    }
    
    

    The following is an article in Japanese, but html and CSS can be copied and tried

    http://tenman.info/labo/css/?p=6832

    Theme Author nobita

    (@nobita)

    You align the gallery at the bottom of each figure, but if you want to align at the top, you can use the following CSS.

    
    .gallery-columns-3 .gallery-item{
        float:left;
    }
    
    Thread Starter jeditricks

    (@jeditricks)

    Thank you for the feedback, that’s very helpful information.

    This is becoming an incredibly versatile and powerful theme, keep up the good work!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Could we get Gallery edit controls?’ is closed to new replies.