Adding Login/Logout to navbar

Permalink
I have installed the attached login.zip as perhttps://www.concrete5.org/community/forums/5-7-discussion/include-lo... but I have a problem.

When the page to the left of the Login/Logout link is selected the background color of the Login/Logout link changes to the that color when it should not.

see attached files

Any help would be great - thanks

3 Attachments

mcaconsult
 
mnakalay replied on at Permalink Reply
mnakalay
That's really weird. From the code you attached to your message, it shouldn't happen. The code looks correct.

Do you have it on a live website to have a look?
mnakalay replied on at Permalink Best Answer Reply
mnakalay
Or maybe try this: remove the class names from the login link. Modify your code like this:
echo '<li>';
    echo Core::make('helper/navigation')->getLogInOutLink();
    echo '</li>';
mcaconsult replied on at Permalink Reply
mcaconsult
Removing the classes solved the problem.