[Resolved] URGENT : Change Logo Url to Profile Url if Logged In
-
Hi,
When a User is Logged Out, if Logo is clicked it should go to Homepage.
When a User is Logged In, if Logo is clicked it should go to Profile Page. ( Because i have hidden the home page for logged in users ).My Current Code in Header for Logo and Its URL
<!-- #logo --> <div id="logo"> <?php if (is_front_page()) { ?><h1><?php } ?> <a title="<?php bloginfo( 'name' ); ?>" href="<?php echo home_url(); ?>"> <?php if (of_get_option('st_logo')) { ?> <img alt="<?php bloginfo( 'name' ); ?>" src="<?php echo of_get_option('st_logo'); ?>"> <?php } else { ?> <?php bloginfo( 'name' ); ?> <?php } ?> </a> <?php if (is_front_page()) { ?></h1><?php } ?> </div> <!-- /#logo -->
Please help Me fix this URGENT.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Resolved] URGENT : Change Logo Url to Profile Url if Logged In’ is closed to new replies.