Remove the login popup but change the url to an external one
Dedicated support forum for CloudHost elegant bosting WordPress theme which is perfect for your business and hosting websites. Here you can ask questions and discuss with other theme users.
- GK User
- Mon Dec 22, 2014 6:40 pm
I've added in the following to header.php -
<?php if(get_option($tpl->name . '_login_link', 'Y') == 'Y') : ?>
<a href="http://externalurl" id="gk-login">Existing User Login</a>
<a href="<?php echo home_url(); ?>/register" id="gk-login">Register Here</a>
<a href="<?php echo home_url(); ?>/demo" id="gk-login">Book a Demo</a>
<?php endif; ?>
The Register and Demo links work fine but the Login always shows the WP popup regardless of the URL or settings. It seems to use the first listed link as the WP login link.
Is there any way to change this so I can have three external links?
I don't need the WP login feature on ths site.
Thanks
Ed
<?php if(get_option($tpl->name . '_login_link', 'Y') == 'Y') : ?>
<a href="http://externalurl" id="gk-login">Existing User Login</a>
<a href="<?php echo home_url(); ?>/register" id="gk-login">Register Here</a>
<a href="<?php echo home_url(); ?>/demo" id="gk-login">Book a Demo</a>
<?php endif; ?>
The Register and Demo links work fine but the Login always shows the WP popup regardless of the URL or settings. It seems to use the first listed link as the WP login link.
Is there any way to change this so I can have three external links?
I don't need the WP login feature on ths site.
Thanks
Ed
-
- Fresh Boarder
- GK User
- Tue Dec 23, 2014 8:40 am
Hello,
The popup is connected with the "gk-login" id, please change it and should be ok. BTW you shouldn't use more than one id (with the same name on the same page).
The popup is connected with the "gk-login" id, please change it and should be ok. BTW you shouldn't use more than one id (with the same name on the same page).
-
- Moderator
- GK User
- Tue Dec 23, 2014 10:01 am
Piotr Kunicki wrote:Hello,
The popup is connected with the "gk-login" id, please change it and should be ok. BTW you shouldn't use more than one id (with the same name on the same page).
Thanks for your reply but when I change the id to say gk-loginxxx the button disappears and the next button then becomes the WP login/out popup.
-
- Fresh Boarder
- GK User
- Tue Dec 23, 2014 11:45 pm
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
-
- Moderator
4 posts
• Page 1 of 1