-
AuthorPosts
-
May 2, 2022 at 9:29 am #1350160
Hello,
We need to include a logo (image) in the upper right part of a slider.
Attached image: https://ibb.co/sC8DjZH
Could you help me?
Thanks advance.Best Regards,
Antonio.
May 2, 2022 at 10:19 am #1350161Hey Antonio,
Thank you for the inquiry.
You can include the image as part of the slider caption.
<img class="av-slide-logo-image" src="IMAGE URL">
Then use this css code to place it on the top right corner of the slider.
.av-slide-logo-image { position: absolute; top: 50px; right: 50px; }
Best regards,
IsmaelMay 2, 2022 at 10:38 am #1350162Hi Ismael,
We have tested this but the position of the logo is relative to the text not to the web.
Could you help me?Thanks for your answer!
Best Regar,
Antonio.
May 2, 2022 at 12:57 pm #1350177Hi,
Thank you for the update.
Try to add this script in the functions.php file to append the logo image to the parent caption container.
// custom Enfold scripts function ava_custom_script() { ?> <script> (function($) { $(document).ready(function() { $(".av-slide-logo-image").each(function() { var logo = $(this); var container = logo.parents(".caption_container"); logo.appendTo(container); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script', 10);
Best regards,
IsmaelMay 2, 2022 at 3:02 pm #1350192Hi Ismael,
Thanks for your answer. Now is on the slider but it is always in the center, the right align do not work.
Could you help me?
Thanks you!Best Regards,
Antonio.
May 4, 2022 at 7:39 am #1350412Hi,
Thank you for following up.
Did you also add the css code? Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code, and make sure to purge the cache.
.responsive #top .caption_container .av-slide-logo-image { position: absolute !important; top: 100px; right: 50px; margin: 0 !important; left: auto !important; }
Best regards,
IsmaelMay 4, 2022 at 11:03 am #1350446Hi Ismael,
Works perfectly! Many thanks.
Best Regards,Antonio.
May 4, 2022 at 1:28 pm #1350471Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardMay 4, 2022 at 5:57 pm #1350512Hi Rikard,
Yes you can close.
Many thanks!BR,
Antonio.May 4, 2022 at 6:59 pm #1350519Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Include logo in slider’ is closed to new replies.