-
Author
-
November 24, 2015 at 20:19 #88875BrryceParticipant
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.
November 26, 2015 at 03:54 #89186LauraModeratorHello, 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 exampleHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
November 28, 2015 at 10:04 #89736BrryceParticipantI’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?
November 29, 2015 at 04:26 #89884LauraModeratorHello, 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 solutionLaura 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 🙂
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.