-
Author
-
September 15, 2014 at 21:21 #28713alberhdParticipant
Hello,how can i redirect the logged user to the members page when the user press the logo?
Thanks!
September 17, 2014 at 02:41 #28790alberhdParticipantMaybe this option is better,how can i disable the redirection of a logged user to home page after press the logo?
September 18, 2014 at 16:27 #28950alberhdParticipantOk…so just disable the link of the logo for the logged users?
September 18, 2014 at 17:38 #28961gregmcParticipantwhy not use the BuddyPress login redirect free plugin to do this?
September 18, 2014 at 17:42 #28962alberhdParticipantThank you for your answer,right know the logged user is redirected to their profile,but after, if the logged user press the logo can go the the home page and i need lock that the logged user can go again to the home page.
September 24, 2014 at 14:24 #29508CatalinModeratorso you want the logged in users not to be able to return to homepage if they click on the logo… i don’t really understand your request… you could achieve this by creating a custom header.php file and use it in the template… please give me more details about this… you can also hide the logo on the profile page…
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 24, 2014 at 14:26 #29509alberhdParticipantyes,i need this: “so you want the logged in users not to be able to return to homepage if they click on the logo”
Thank you!
September 24, 2014 at 16:18 #29524CatalinModeratorHello,
You should copy the header.php file to your child theme theme and replace:
COPY CODE<h1 id="logo"><?php bloginfo('name'); ?> <a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> </h1>
with
COPY CODE<?php if(is_user_logged_in() ) : ?> <h1 id="logo"><?php bloginfo('name'); ?> <img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"> </h1> <?php else : ?> <h1 id="logo"><?php bloginfo('name'); ?> <a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> </h1> <?php endif; ?>
let me know if this works.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 24, 2014 at 16:33 #29527alberhdParticipanti found this code at the header and i followed your instructions,but the page gave me a error.
COPY CODE<div class="four columns"> <h1 id="logo"><?php bloginfo('name'); ?> <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> </h1> </div>
September 24, 2014 at 16:42 #29528CatalinModeratorI tested the code on my server and it works… be careful at syntax… please paste the error here to figure it out…
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.