• Hi,

    We use the DIVI theme for our website. In the top line I added a php statement that displays the username and also a logout. But I do not understand why both items appear on a different line. Must be something wrong in this statement:

    $items .= ‘<li class=”usermenu”>‘.$name.’Logout‘;

    $huis contains the URL of the homepage of our website. Issue should be very simple I assume, but I do not see it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    DIVI theme use its own framwework, so you should look into parent or better/child theme for this inclusion.

    DIVI use its own PHP framework, in general clear but it’s a commercial one, we don’t support it here.

    Hope it helps,

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please post a link to your site where we can see this *and* be sure to tell us where on that page to look.

    Thread Starter LeonN1960

    (@leonn1960)

    Hi guys,

    Today I sorted out my issue as described above.

    What was the problem:
    I added two links to the variable $items, which is published in the top of my page. These links show the users name, and the text ‘logout’ and they refer to the profile of the user and to the logout-page. As described above they were published on two lines. The statement I used to add these to $items was:
    $item .=<li class=”usermenu”>.$name. Logout

    Now I splitted this action in two:
    $item .=<li class=”usermenu”>.$name.
    $item .=<li class=”usermenu”>Logout

    And this works fine!!!!
    Thanks for thinking with me

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unexpected new line’ is closed to new replies.