one of the sections on my home page has a hyperlinked header. I have a multi-user site so I would like that header"View all Exclusive Activities" to take the user to a specific shop category (product-category/aktiviteter/) if they are already logged in, and to the login page (/login) if they are logged out.

However, this title is added to the homepage via the theme options on the page...image of the theme option to add a "read more" titile

Thanks for the help!!!

1 Answer 1


You need to be able to edit the theme itself (or as a child theme) to make that change - obviously the theme options aren't giving you that option.

Chances are that in your header.php or similar you are going to find code that pulls those values from the Theme Options page. That's what you need to edit. When you find that code, you'll want to do a conditional

 if( is_user_logged_in() ){
   echo '/product-category/aktiviteter/';
   echo '/login/';

wherever that URL is being set in the template.

  • Hi there, yes, am working with a child theme, this code snipped is exactly what I was looking for! THanks!
    – Victoria
    Commented May 9, 2015 at 13:47
  • If it's what you were looking for, please mark it as the correct answer.
    – ambroseya
    Commented May 9, 2015 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.