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

    Hello i have made this change

    
    .av-logo-container {display: none;}
    

    but when click on te section in page the scroll not pint at the correct position, because the height of the header is set always like with the logo image height.

    How i can remove the height of the logo in the header for fix the scroll to section?

    Have you the correct solution for remove the logo container section without affecting the scroll to section in page?

    #792732

    Hey limentani,
    I’m not sure I understand, you want to remove the logo on scroll?
    Your code removes the whole logo and menu bar.

    Best regards,
    Mike

    #792737

    Hello i have removed the logo with this css code:
    .av-logo-container {display: none;}
    But when Header menu link is pressed es: `Sez1“, the scrolling of the page not point in the correct position, because the real Height for the section remain the same.
    You can riproduce the same behvoir whit this steps;

    1. Select header with logo on top and menu bottom
    2. create an homepage
    3. add “color section element” in home page with id=sez1
    4. in menu create link Sez1
    5. hide logo with the css code
    6. click the link in homepage

    Now the problem is showed!!

    #792760

    Hi,
    Try this code in the General Styling > Quick CSS field:

    #sez1 {
        margin-top:200px!important; 
     } 

    Best regards,
    Mike

    #793140

    Hello Mike,
    i have tried your code but it not work, the scrolling still remain distant from the element.
    The problem is in avia.js.

    • This reply was modified 7 years, 6 months ago by limentani.
    #793188

    Hi,

    Just to give us a freedom to test many custom codes, may you provide us your WP credentials?

    Best regards,
    John Torvik

    #794041

    I have solved! in the avia.js line 791:

    if(container.length)
                            {
                                var usersviewportWidth = $(window).width();
                                if(usersviewportWidth > 767 ){
                                    var myOffset = 150;
                                } else {
                                    var myOffset = 0;
                                }
                                var cur_offset = the_win.scrollTop(),
                                    container_offset = container.offset().top,
                                    target =  container_offset - fixedMainPadding + myOffset,

    The myOffet variable must set with specific pixel height, in most case 150px.

    #794072

    Hi limentani,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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