Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1274843

    Hello,
    I would like to add a TITLE adjacent left justified to my Fullwidth Sub Menu.
    Can you please show me how or rather send the instructions?

    Thanks so much,
    jnot75

    #1275162

    Hey jnot75,

    Please try the following in Quick CSS under Enfold->General Styling:

    .av-subnav-menu:before {
        content: 'Title';
        float: left;
        padding: 10px 0 0 10px;
    }

    Best regards,
    Rikard

    #1275288

    That worked!

    What if the TITLE is different on every page?
    Thanks so much

    #1275306

    Hey,

    You can use the code as following where “page-id-30” is the ID of your page :)

    .page-id-30 .av-subnav-menu:before {
        content: 'Title';
        float: left;
        padding: 10px 0 0 10px;
    }

    Regards,
    Yigit

    #1275533

    Awesome! Thanks so much!

    #1275534

    Edit : I must have been somewhat misguided by the headline. One should read just yet also the content ;)
    I had thought that you wanted to set the Title attribute at the submenu list item.
    _________________
    forget about that here:
    or you put this to your child-theme functions.php:

    function set_menu_text_as_title(){
    ?>
    <script>
    (function($){
    		$('.av-subnav-menu a').each(function(){
    			var menuName = $(this).find('>.avia-menu-text').text();
    			$(this).attr('title', menuName);
    		});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'set_menu_text_as_title');

    but for me the alt attribute is much more important – so i have on that line instead:
    $(this).attr('alt', menuName);

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