This topic has 3 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #88875
     Brryce
    Participant

    I am trying to enter <?php

    if(is_user_logged_in()){
    $logout_link = home_url().’/’. userpro_get_option(‘slug_logout’);
    $edit_link = home_url().’/’. userpro_get_option(‘slug_edit’);
    ?>
    <a href=”<?php echo $logout_link; ?>”>Logout<a>
    <a href=”<?php echo $edit_link; ?>”>Edit Profile<a>
    <?
    }
    else{ ?>
    <a href=”#” class=”popup-login”>Login</a>
    <a href=”#” class=”popup-register” data-type=test>Register2222</a>
    <?php }
    ?> 

    Into my php header but im not sure how to. The userpro guys asked me to do this to help their plugin run better. Thanks for the help.

    #89186
     Laura
    Moderator

    Hello, try adding it at header.php ( first copy it from main theme and paste it in child theme, then edit it)
    And place it just below <head> for example

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #89736
     Brryce
    Participant

    I’m not sure how to do this. Copy from main theme? Do you mean this is already in my main theme? Where would I find it?

    #89884
     Laura
    Moderator

    Hello, in your file manager or ftp, find at wp-content/themes/kleo/header.php and copy that file to wp-content/themes/kleo-child then edit it there and below <head> add your script

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?