- This topic has 14 replies, 3 voices, and was last updated 5 years, 4 months ago by
Tom.
-
AuthorPosts
-
May 21, 2020 at 5:23 am #1295205
Ash
Hi,
My login/register page is messed up it all in one column, account page is also the same
Thanks
May 21, 2020 at 6:54 am #1295314David
StaffCustomer SupportHi there,
can you disable your cache plugin so i can take a closer look.
May 21, 2020 at 7:05 am #1295324Ash
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
May 21, 2020 at 7:42 am #1295371David
StaffCustomer SupportDo you have any woo or membership related plugins as the HTML is different to the themes templates?
May 21, 2020 at 7:54 am #1295534Ash
No. I just deleted woocommerce pages and generated new ones, deactived all plugins except GP Premium and Woo and it was still the same.
May 21, 2020 at 8:05 am #1295547Ash
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 🙁
May 21, 2020 at 2:46 pm #1295983Tom
Lead DeveloperLead DeveloperHi 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 🙂
May 22, 2020 at 2:52 am #1296384Ash
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.
May 22, 2020 at 7:48 am #1296676David
StaffCustomer SupportBy 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 ?May 22, 2020 at 8:11 am #1296838Ash
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' ); } } }
May 22, 2020 at 8:42 am #1296870David
StaffCustomer SupportSo does the issue pass if you remove that function ?
May 22, 2020 at 10:27 am #1297007Ash
Yes. I’ve used this function with Oceanwp and Flatsome it’s never caused any issue before.
May 22, 2020 at 3:41 pm #1297300Tom
Lead DeveloperLead DeveloperTry 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 );
May 23, 2020 at 1:21 am #1297643Ash
May 23, 2020 at 10:50 am #1298333Tom
Lead DeveloperLead DeveloperCan 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.
-
AuthorPosts
- You must be logged in to reply to this topic.