[Resolved] Login/Register Layout Issue

Home Forums Support Login/Register Layout Issue

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1295205
    Ash

    Hi,

    My login/register page is messed up it all in one column, account page is also the same

    Thanks

    #1295314
    David
    Staff
    Customer Support

    Hi there,

    can you disable your cache plugin so i can take a closer look.

    #1295324
    Ash

    Hi David,

    Disabled.

    Already spoke to Tom regarding other layouts messing up and he gave me the files to exclude which worked, but this continues even with cache plugin disabled.

    Thanks

    #1295371
    David
    Staff
    Customer Support

    Do you have any woo or membership related plugins as the HTML is different to the themes templates?

    #1295534
    Ash

    No. I just deleted woocommerce pages and generated new ones, deactived all plugins except GP Premium and Woo and it was still the same.

    #1295547
    Ash

    Apologies you may not be able to get on my site, wpforms update is locked in maintenance and I can’t even get on, it’s one of those days ๐Ÿ™

    #1295983
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Looks like the cache is still enabled.

    That looks like certain CSS files aren’t loading properly – I can look easier once the caching plugin is off ๐Ÿ™‚

    #1296384
    Ash

    I will leave it disabled for now. But having to exclude more and more files in litespeed is just going to slow things down. My current website theme (oceanwp) has no issues when combining things, but it’s there poor Extra plugin thats wrecking fcp times. So hoping to find a way to get GP to work with Litespeed.

    #1296676
    David
    Staff
    Customer Support

    By default the /my-account page only displays the Login – not the register.
    So we need to figure out where this is coming from – if its not a plugin then do you have any custom templates / functions ?

    #1296838
    Ash

    Seems it is the remove cart fragments code from none woocommerce pages causing it. I have always used this function never had an issue before

    /*disable All WooCommerce Styles and Scripts Except Shop Pages*/

    add_action( 'wp_enqueue_scripts', 'dequeue_woocommerce_styles_scripts', 99 );
    function dequeue_woocommerce_styles_scripts() {
    if ( function_exists( 'is_woocommerce' ) ) {
    if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) {
    wp_dequeue_style( 'woocommerce-general' );
    wp_dequeue_style( 'woocommerce-layout' );
    wp_dequeue_style( 'woocommerce-smallscreen' );
    wp_dequeue_style( 'woocommerce_frontend_styles' );
    wp_dequeue_style( 'woocommerce_fancybox_styles' );
    wp_dequeue_style( 'woocommerce_chosen_styles' );
    wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
    	
    wp_dequeue_script( 'wc_price_slider' );
    wp_dequeue_script( 'wc-single-product' );
    wp_dequeue_script( 'wc-add-to-cart' );
    wp_dequeue_script( 'wc-cart-fragments' );
    wp_dequeue_script( 'wc-checkout' );
    wp_dequeue_script( 'wc-add-to-cart-variation' );
    wp_dequeue_script( 'wc-single-product' );
    wp_dequeue_script( 'wc-cart' );
    wp_dequeue_script( 'wc-chosen' );
    wp_dequeue_script( 'woocommerce' );
    wp_dequeue_script( 'prettyPhoto' );
    wp_dequeue_script( 'prettyPhoto-init' );
    wp_dequeue_script( 'jquery-blockui' );
    wp_dequeue_script( 'jquery-placeholder' );
    wp_dequeue_script( 'fancybox' );
    wp_dequeue_script( 'jqueryui' );
    }
    }
    }
    #1296870
    David
    Staff
    Customer Support

    So does the issue pass if you remove that function ?

    #1297007
    Ash

    Yes. Iโ€™ve used this function with Oceanwp and Flatsome itโ€™s never caused any issue before.

    #1297300
    Tom
    Lead Developer
    Lead Developer

    Try this:

    add_action( 'wp_enqueue_scripts', function() {
        if ( function_exists( 'is_woocommerce' ) ) {
            if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() && ! is_account_page() ) {
                wp_dequeue_style( 'woocommerce-general' );
                wp_dequeue_style( 'woocommerce-layout' );
                wp_dequeue_style( 'woocommerce-smallscreen' );
                wp_dequeue_style( 'woocommerce_frontend_styles' );
                wp_dequeue_style( 'woocommerce_fancybox_styles' );
                wp_dequeue_style( 'woocommerce_chosen_styles' );
                wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
    	
                wp_dequeue_script( 'wc_price_slider' );
                wp_dequeue_script( 'wc-single-product' );
                wp_dequeue_script( 'wc-add-to-cart' );
                wp_dequeue_script( 'wc-cart-fragments' );
                wp_dequeue_script( 'wc-checkout' );
                wp_dequeue_script( 'wc-add-to-cart-variation' );
                wp_dequeue_script( 'wc-single-product' );
                wp_dequeue_script( 'wc-cart' );
                wp_dequeue_script( 'wc-chosen' );
                wp_dequeue_script( 'woocommerce' );
                wp_dequeue_script( 'prettyPhoto' );
                wp_dequeue_script( 'prettyPhoto-init' );
                wp_dequeue_script( 'jquery-blockui' );
                wp_dequeue_script( 'jquery-placeholder' );
                wp_dequeue_script( 'fancybox' );
                wp_dequeue_script( 'jqueryui' );
            }
        }
    }, 99 );
    #1297643
    Ash

    That kind of worked

    Go on to account page looks fine,
    Screenshot-2020-05-23-My-account-Gift-Moments

    Then go on to another tab everything is on the bottom
    Screenshot-2020-05-23-Account-Gift-Moments

    Back to Dashboard
    Screenshot-2020-05-23-Account-Gift-Moments-1

    #1298333
    Tom
    Lead Developer
    Lead Developer

    Can you try the updated code?: https://generatepress.com/forums/topic/login-register-layout-issue/#post-1297300

    Basically, your code is removing all of WooCommerce’s styling from the account pages. Not sure why it worked with other themes – it shouldn’t have.

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