Styles lost when returning user is logged in
-
I am aware that our version of WP and Plugin are out of date. There is no option to upgrade this currently. This is a project that will be done, just not now.
We inherited this site and it has a lot of custom code.
Is there anyone who knows a way or can help change the styles for certain browsers? Safari and Chrome???
I have done extensive research and the fixes that I have come up with are to add these lines of code to our custom versions of the plugin files:
Updated 2 files for fix Safari
/var/app/current/wp-content/plugins/wp-e-commerce/wpsc-theme/wpsc-single_product.php
<?php if ( is_user_logged_in() ) { ?>
<style type=”text/css” media=”screen”>
.section.footer{margin-top:430px!important;}
.footer-wrapper{height:575px!important;}
#single_product_page_container, .entry-content, .single_product_display{margin-bottom: 30px;}
</style>
<?php } ?>/var/app/current/wp-content/plugins/wp-e-commerce/wpsc-theme/wpsc-products_page.php
<?php if ( is_user_logged_in() ) { ?>
<style type=”text/css” media=”screen”>
.section.footer{margin-top:430px!important;}
.footer-wrapper{height:575px!important;}
#single_product_page_container, .entry-content, .single_product_display{margin-bottom: 90px;}
</style>
<?php } ?>This definitely works! However, it pushes the footer down in other browsers as well like Firefox.
Is there a way to tell the browser not to use these styles? Am I missing a condition?
Any help would be greatly appreciated:
https://www.staging.swellbottle.com/shop
Notice how the overlay blocks the user from adding to the cart (only when logged in).
Thanks~
- The topic ‘Styles lost when returning user is logged in’ is closed to new replies.