Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #842517

    Dear Support,
    I have noticed that in the situation:

    Enfold -> Header -> Header layout -> Header size -> custom pixel value

    AND

    Enfold -> Header -> Header layout -> Header custom height -> 60px

    the shrinking of the header while scrolling down does NOT work. It stops working when the value in “Header custom height” is below 65px. How can I change this behavior?

    Thank you for your help.

    Best regards,
    MD

    • This topic was modified 7 years, 4 months ago by midudek1.
    #842559

    Hey midudek1,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #842788

    Dear Victoria,
    It will be quite tricky as the blog is not published yet :( Is there another way to pass you relevant information? What do you need?

    Thank you for your time!

    Best regards,
    MD

    #842918

    Hi,

    The credentials and website link will be essential to check this issue closer. You can use this plugin to help you: https://wordpress.org/plugins/temporary-login-without-password/

    Best regards,
    John Torvik

    #843156
    This reply has been marked as private.
    #843926

    Hi MD,

    I think 60px is already too small for the header and it does not shrink passed that, so these two conditions are mutually exclusive. What I am seeing is the page scrolling and the menu disappearing.

    Best regards,
    Victoria

    #844550

    Dear Victoria,
    Yes … this is what I have written in my first post :) Shrinking stops working when the value in “Header custom height” is below 65px.

    How this behavior can be changed?

    Thank you for your help.

    Best regards,
    MD

    #846636

    Hi,

    The shrinking behavior is disabled by default. You can find it in the functions-enfold.php file.

    //if the custom height is less than 70 shrinking doesnt really work
    		if($header['header_size'] == 'custom' && (int) $header['header_custom_size'] < 65) $header['header_shrinking'] = 'disabled';
    

    Best regards,
    Ismael

    #848779

    Dear Ismael,
    Thank! This is what I was looking for.

    Btw. the comment does not match the real code + in addition the JS
    “set_height = function()” in avia.js is messed up and it is not
    written in general way which means it does not work correctly if you
    choose different values that are hardcoded in Enfold.

    I have corrected that … see below. Enfold has many flaws and I am
    really disappointed with its quality.

    Thank you for your help. You can close this topic.

    Best regards,
    MD

    
        function avia_header_size()
        {
    (...)
                set_height      = function()
                {
                    var st = win.scrollTop(), newH = 0, st_real = st;
                    var shrinking_start_position = 200;
                    var shrinking_stop_position = shrinking_start_position +
    100;
                    var el_height_shrinked = el_height * 0.5;
    
                    if(unsticktop) st -= topbar_height;
                    if(st < 0) st = 0;
    
                    if(shrinking && !isMobile)
                    {
                        newH = el_height;
    
                        if(st > shrinking_start_position)
                        {
                            newH = (1 - ((st - shrinking_start_position) /
    (shrinking_stop_position - shrinking_start_position))) * el_height
                            av_change_class(header, 'remove',
    'header-scrolled');
                            //header.removeClass('header-scrolled');
                        }
    
                        if(newH < el_height_shrinked)
                        {
                            newH = el_height_shrinked;
                            //header.addClass('header-scrolled');
                            av_change_class(header, 'add', 'header-scrolled');
                        }
    
                        if(st < 2 * shrinking_stop_position)
                        {
                            av_change_class(header, 'remove',
    'header-scrolled-full');
                        }
                        else
                        {
                            av_change_class(header, 'add',
    'header-scrolled-full');
                        }
    
                        elements.css({'height': newH + 'px', 'lineHeight':
    newH + 'px'});
                        logo.css({'maxHeight': newH + 'px'});
                    }
    
                    if(unsticktop.length)
                    {
                            if( st <= 0)
                            {
                                    if(st_real <= 0) st_real = 0;
    
    unsticktop.css({"margin-top":"-"+st_real+"px"});
                                            }
                                            else
                                            {
    
    unsticktop.css({"margin-top":"-"+topbar_height+"px"});
                                            }
                    }
    
                    if(transparent)
                    {
                            if(st > 50)
                            {
    
    //header.removeClass('av_header_transparency');
                                    av_change_class(header, 'remove',
    'av_header_transparency');
                            }
                            else
                            {
                                    //header.addClass('av_header_transparency');
                                    av_change_class(header, 'add',
    'av_header_transparency');
                            }
                    }
    
                }
    (...)
        }
    
    • This reply was modified 7 years, 3 months ago by midudek1.
    #848941

    Hi,

    I have corrected that … see below. Enfold has many flaws and I am
    really disappointed with its quality.

    What flaws? Could you please explain it so that we can improve it?

    Best regards,
    Ismael

    #851281

    Dear Ismael,
    There are plenty of flaws in the theme unfortunately …

    1.) try to use the shrinking menu with custom header size 60px … the shrinking will not work and source code has to be changed (no to mention comment is not valid with the actual source code) … but even when you change the code the shrinking animation is not written in a general manner so it will animate it wrongly that is why I pasted code above
    2.) image with hot spots does not work with default WP editor
    3.) shortcodes behavior is not consistent

    etc etc if you are interested in details just read my current open threads.

    Best regards,
    MD

    #851412

    Hi,

    1.) As I stated before, the shrinking header is disabled if the header height is less than 70px.

    // https://kriesi.at/support/topic/shrinking-header-does-not-work/#post-846636

    2.) This is currently under investigation. The element is working properly in the advance layout builder and if you need it on the default editor, try to switch the builder to debug mode so that you can copy the shortcodes.

    // http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/

    3.) Could you please elaborate on it further? Which shortcodes are “inconsistent”?

    Best regards,
    Ismael

    #853531

    Dear Ismael,
    Answering your questions

    1.) Why are you limiting user? It should be up to the user to chose the values and all the function code should be written in a way that it should be general and NOT specific to settings.

    3.) You already know (you replied) about which issue I am talk about.

    Best regards,
    MD

    #853733

    Hi,

    1.) Why are you limiting user? It should be up to the user to chose the values and all the function code should be written in a way that it should be general and NOT specific to settings.

    1.) We pointed you to the script that limits the shrinking header. You can do with it whatever you wish.

    // https://kriesi.at/support/topic/shrinking-header-does-not-work/#post-846636

    Best regards,
    Ismael

    #853971

    Dear Ismael,
    Yes … and I did change the value … but then I have learned that the functions included in Enfold work only in specific situations, they are not written in a general manner … even so simple things like changing size of elements.

    Lets finish the discussion Ismael as it does not go anywhere.

    Best regards,
    MD

    #854213

    Hi,

    but then I have learned that the functions included in Enfold work only in specific situations, they are not written in a general manner … even so simple things like changing size of elements.

    We would be happy to hear your suggestions or advice regarding these functions. Please contact Kriesi in the following link or post the suggestions/improvements directly in the forum.

    // http://kriesi.at/contact

    Best regards,
    Ismael

    #856244

    Dear Ismael,

    (…) or post the suggestions/improvements directly in the forum.

    and what I have been doing past 2 months?!

    I am sorry I am out of my patience. I am frustrated and disappointed about Enfold. It is very unprofessional product.

    Please close this topic.

    Best regards,
    MD

    #856348

    Hi,

    I’m sorry if we can’t help you better. You posted the code above but you didn’t explain the changes. We also explained why the shrinking header is not working when the header height reaches a specific value. And regarding the hotspot, we found the issue and the patch is going to be included in the latest version of the theme.

    Best regards,
    Ismael

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