Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #425155

    Hi,
    Is it possible to get a logo in the fullwidth submenu?
    Thanks for your help
    Peter

    #425243

    Hey pegasso4444!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab and adjust as needed

    #top .av-submenu-container {
      background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png);
      background-repeat: no-repeat;
      background-position: 0% 50%;
      background-size: contain;
    }

    Best regards,
    Yigit

    #520711

    Hi,

    Is it possible to add a link to this logo also?

    Thanks
    Fiona

    #520944

    Hi!


    @findar
    No, using this solution, it is not possible. It would require more customization. Please start a new thread and i will take a quick look.

    Regards,
    Yigit

    #1184898

    Hi
    I tried this and works well, but the logo is at the browser edge, not at the container width, but the menu items are set to align right so they are at the right edge of the container. Changing background position to something else than 0% will move it in, but then the logo location is a % of the browser width not the edge of the container so always its alignment looks wrong. How to position it properly at the container left edge – any help appreciated.
    Thanks

    #1184938

    Hi s29ers,

    Could you post a link to where we can see the element in question please?

    Best regards,
    Rikard

    #1185031

    Hello, thanks for your reply. I tried this and it suffices for me:

    a) Set my main menu with the header option Set logo and menu position adapt to browser window. That moved the main log ot browser edges.

    b) Set the submenu, with this code I found on the forum but now can’t find the page…

    .submenu_logo {
    width: 120px;
    height: auto;
    overflow: hidden;
    position: absolute;
    top: 3px;
    left: 10%; /* from left browser edge */
    }

    with the following in the functions.php of the child menu

    /* Submenu logo tied to .submenu_logo in CSS*/
    function ava_custom_script() {
    ?>
    <script type=”text/javascript”>
    (function($) {
    function a() {
    $(‘#top .av-submenu-container’).append(““);
    }

    a();
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘ava_custom_script’);

    Regards

    #1185120

    Hi s29ers,

    Great, I’m glad that you found a solution and thanks for sharing. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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