Remove/Replace "Register"

February 2013 WordPress Theme
GK User
Mon Aug 05, 2013 9:37 pm
Can someone direct me on the best way to remove the Registration section (top-right) corner of the template. Ideally I would like to replace it with some content such as telephone #/contact info.

Thanks.
User avatar
Senior Boarder

GK User
Tue Aug 06, 2013 8:27 am
Hi,

In this case you will have to modify file layouts/header.php and remove or change the following fragment:

Code: Select all
<?php if((!is_user_logged_in() && get_option($tpl->name . '_reg_link', 'Y') == 'Y') || get_option($tpl->name . '_login_link', 'Y') == 'Y') : ?>
<div id="gk-user-area">
   <?php if(get_option($tpl->name . '_login_link', 'Y') == 'Y') : ?>
   <a href="<?php echo get_option($tpl->name . '_login_url', 'wp-login.php?action=login'); ?>" id="gk-login"><?php (!is_user_logged_in()) ? _e('Login', GKTPLNAME) : _e('Logout', GKTPLNAME); ?></a>
   <?php endif; ?>
            
   <?php if(!is_user_logged_in() && get_option($tpl->name . '_reg_link', 'Y') == 'Y') : ?>
   <a href="<?php echo get_option($tpl->name . '_reg_url', '#'); ?>" id="gk-register"><?php _e('Register', GKTPLNAME); ?></a>
   <?php endif; ?>
</div>
<?php endif; ?>
User avatar
Administrator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.