Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #584707

    Hi support team,

    Is it possible to add an extra colored box above the images in the masonry gallery?

    Also, if it is possible, can you then show the title in that box while still having the caption beneath the images?

    Best regards,

    #585221

    Hi saraclementdk,

    Could you provide us with a link to the site in question so that we can take a closer look please? A screenshot highlighting what you would like to achieve would help as well.

    Best regards,
    Rikard

    #585382

    Hi Rikard,

    Thank you for your quick response. Yes, of course. (see link in private content)

    The third picture shows what we would like to achieve, if possible :).

    Best regards,

    • This reply was modified 8 years, 2 months ago by saraclementdk.
    #586604

    Hi!

    Thank you for the link. Please add this in the functions.php file:

    // move masonry title
    add_action('wp_footer', 'ava_custom_script', 10);
    function ava_custom_script(){
    ?>
    <script>
    (function($) {
        $('.av-masonry-entry').each(function() {
            var title = $(this).find('.av-masonry-entry-title'),
                inner = $(this).find('.av-inner-masonry');
            $(title).prependTo(inner);
        });
    }(jQuery));
    </script>
    <?php
    }

    And the following code in the Quick CSS field:

    .av-masonry-entry .av-masonry-entry-title {
        position: absolute;
        top: 0;
        z-index: 1000;
        width: 100%;
        text-align: center;
        background: blue;
        padding: 10px;
    }

    Regards,
    Ismael

    #586662

    Hi Ismael,

    Thank you so much. It works like a charm. Have a nice day :)

    Best regards,

    #586752

    Hi!

    Glad you got it short out.
    Please do let us know if you need anything else, we will be more than happy to help

    Cheers!
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.