Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #925125

    Desired Image Caption

    Please see above the desired effect.
    I would like to move the image caption underneath my images. I can only find option to create an overlay.
    I am working on localhost and can’t provide a link of existing site.

    Thank you.

    #925752

    Hey fabienneBESD,

    Can we please check your web site URL so we can be able to assist you?

    Thank you very much

    Best regards,
    Basilis

    #925760

    Ok, you can check the website. I live in berlin germany and work on a Xamp installation. Please do come by and have a look anytime ;) i work on localhost. The website isnt live yet.
    If i display an image with a caption, it shows with the caption as an overlay in the middle of the image. I want to move the caption UNDERNEATH the image, as shown in the picture.

    #925777

    Hi,

    We would like to inspect your specific pages and classes so we know we are providing the proper code. Without the specific info it is tough to troubleshoot.

    Best regards,
    Jordan Shannon

    #925783

    Ok, can you advise me how I can make my localhost installation accessible to you?

    #925788

    Hi,

    If you have any accessible “live” hosting account could you possibly set up a staging install there?

    Best regards,
    Jordan Shannon

    #946665

    Hi!
    I finally put the worksite up on the web.
    Please resolve the issue soon, as I need to finish this product.
    Thank you.

    #946804

    I want it to look like here: (link in private content)

    #947681

    Hi,

    Thank you for the update. Use this code to adjust the default style of the caption.

    .av-image-caption-overlay {
        position: relative;
        height: 60px;
        width: 100%;
        z-index: 10;
        text-align: left;
        -webkit-transition: none;
        transition: none;
    }
    
    .av-overlay-hover-deactivate:hover .av-caption-image-overlay-bg {
        opacity: 1 !important;
        background: transparent !important;
        color: #000000 !important;
    }
    
    .av-image-caption-overlay-center {
        color: #000000 !important;
    }

    And then add this script in the functions.php file to move the caption underneath the image.

    add_action('wp_footer', 'ava_custom_script_caption');
    function ava_custom_script_caption(){
    	?>
    	<script>
    		(function($) {
    			$('.avia-image-container').each( function() {
    				var caption = $(this).find('.av-image-caption-overlay');
    				var image = $(this).find('.avia_image img');
    				caption.insertAfter(image);
    			});
    		})(jQuery);
    	</script>
    	<?php
    }

    Best regards,
    Ismael

    #947981

    Hi Ismael,

    thanx for the code.
    how can I remove the gray block behind it and make the Caption the same size as the image width? Please check private content for links.

    Thank you!

    #947982

    Also hover effects and any form of transition need to be removed. Thank you.

    #948017

    I managed to change the background color of the image caption to #ffffff, realized afterwards could also have done that via the layout builder, duh.
    Still would like to move the captions to the left and directly underneath the image, plus remove the hover effects.

    Thanx.

    #948882

    Hi,

    Thanks for the update. Yes, you can use the text block element. Add this css code if you want to modify the caption further.

    .av-image-caption-overlay-center {
        display: table-cell;
        vertical-align: top;
        font-size: 1.3em;
        line-height: 1.5em;
        padding: 7px 0 0 0;
    }

    Best regards,
    Ismael

    #951799

    hi there and thanx!
    I adjusted it to my liking, except I can’t seem to get rid of the hover effect. When I hover over the caption now it will display an underline.
    I tried to select it with

    .av-image-caption-overlay-center:hover{
    text-decoration: none !important;}

    BUt that didnt work.

    #953037

    Hi,

    Thank you for the update. Use this one to adjust the hover state.

    .avia-image-overlay-wrap a:hover {
        text-decoration: none;
    }

    Best regards,
    Ismael

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