Share Now

Add this code in header div’s class.

<?php if ( is_user_logged_in() ) {echo 'logged';} ?>

And then write CSS according to it.

/*WP LOGGED IN HEADER FIXING CSS*/

.logged .home-sticky.fixed {
    margin-top: 20px;
}

.logged .row.h-area {
    margin-top: 40px;
}
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert