Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #1350161

    Hey 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,
    Ismael

    #1350162

    Hi 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.

    #1350177

    Hi,

    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,
    Ismael

    #1350192

    Hi 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.

    #1350412

    Hi,

    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,
    Ismael

    #1350446

    Hi Ismael,

    Works perfectly! Many thanks.
    Best Regards,

    Antonio.

    #1350471

    Hi,

    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,
    Rikard

    #1350512

    Hi Rikard,

    Yes you can close.
    Many thanks!

    BR,
    Antonio.

    #1350519

    Hi,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Include logo in slider’ is closed to new replies.