Site logo

Archived topic

Login/Register Layout Issue

14 replies · Started by Ash on May 21, 2020

Viewing posts 1–15 of 15

Hi,

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

Thanks

Hi there,

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

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

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

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

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 :(

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 :)

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.

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 ?

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' );
}
}
}

So does the issue pass if you remove that function ?

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

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 );

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

This archived topic is closed to new replies.