Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Forum: Reviews
    In reply to: [WP Pace] Great!
    Thread Starter trickz100

    (@trickz100)

    Yet the admin bar only shows when you’re logged in. My original post was saying that the plugin does not work for users are NOT logged in.

    I’ll break it down for you:

    Original Code:

    if ( is_user_logged_in() ) { $loggedin = ‘.pace .pace-progress {margin-top: 32px}’; }else{ $loggedin = ‘NOTICE THERE IS NOTHING HERE FOR USERS WHO ARENT LOGGED IN‘; }

    Ammended Code:

    if ( is_user_logged_in() ) { $loggedin = ‘.pace .pace-progress {margin-top: 32px}’; }else if ( !is_user_logged_in() ){ $loggedin = ‘.pace .pace-progress {margin-top: 32px}’; }

    Notice that there is now styling for those who aren’t logged in, meaning that the bar will show for them too.

    Forum: Reviews
    In reply to: [WP Pace] Great!
    Thread Starter trickz100

    (@trickz100)

    No. The original code allows the progress bar to be shown only to those logged in and does not show for those who aren’t logged in.

    The ammended code is made to work for those who are logged in and for those who aren’t.

    Feel free to see the result on my website:

    https://www.unknownworld.co.uk

Viewing 2 replies - 16 through 17 (of 17 total)