-
AuthorPosts
-
March 11, 2018 at 1:16 am #925125
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.
March 12, 2018 at 10:25 pm #925752Hey fabienneBESD,
Can we please check your web site URL so we can be able to assist you?
Thank you very much
Best regards,
BasilisMarch 12, 2018 at 10:29 pm #925760Ok, 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.March 12, 2018 at 10:59 pm #925777Hi,
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 ShannonMarch 12, 2018 at 11:15 pm #925783Ok, can you advise me how I can make my localhost installation accessible to you?
March 12, 2018 at 11:25 pm #925788Hi,
If you have any accessible “live” hosting account could you possibly set up a staging install there?
Best regards,
Jordan ShannonApril 25, 2018 at 4:10 pm #946665Hi!
I finally put the worksite up on the web.
Please resolve the issue soon, as I need to finish this product.
Thank you.April 25, 2018 at 7:42 pm #946804I want it to look like here: (link in private content)
April 27, 2018 at 7:41 am #947681Hi,
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,
IsmaelApril 27, 2018 at 2:45 pm #947981Hi 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!
April 27, 2018 at 2:46 pm #947982Also hover effects and any form of transition need to be removed. Thank you.
April 27, 2018 at 4:20 pm #948017I 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.
April 30, 2018 at 9:18 am #948882Hi,
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,
IsmaelMay 4, 2018 at 6:13 pm #951799hi 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.
May 8, 2018 at 4:13 am #953037 -
AuthorPosts
- You must be logged in to reply to this topic.