Jump to content
Sign in to follow this  
jeffjani

Adding WP loginout and register links

Recommended Posts

jeffjani

I am trying to display the standard WP <?php wp_register(); ?> and <?php wp_loginout(); ?> links on the right side of the header above the social icons The links are currently added to my site, but display on the upper left above the site logo Site link is: http://buzz.esigndocs.com Thanks

Share this post


Link to post
Share on other sites
Kate

Hi Jeff, Do you want them to display at the top right? If so, try something like this:

.headerlinks{width:960px;margin:0 auto;list-style-type:none;text-align:right;padding-right:10px;}

Share this post


Link to post
Share on other sites
jeffjani

Thanks, Kate. This is the code that I added to the header.php file after the div id=header <ul class="headerlinks"> <?php wp_register(); ?> <?php wp_loginout(); ?> Where do I add the code that you suggested? Sorry I am pretty new to this.

Share this post


Link to post
Share on other sites
jeffjani

I am now lost. I am getting the following error. Parse error: syntax error, unexpected '<' in /home/jeffjan1/public_html/buzz/wp-content/themes/platformpro/functions.php on line 20 And my site is now down :(

Share this post


Link to post
Share on other sites
jeffjani

I copied the functions.php file from another WP instance and got the site back. Still lost on how to get my login links into the header though

Share this post


Link to post
Share on other sites
timlinson

What was the hook code you tried that gave the syntax error?

Share this post


Link to post
Share on other sites
jeffjani

This is what I think I am suppose to add to the functions.php file: add_action('pagelines_branding_icons_end', 'add_loginout_to_branding'); function add_icons_to_branding(){ After that I need help with where/what I add as the CSS code Thanks!

Share this post


Link to post
Share on other sites
catrina

Did you get the links working in the right position? Once that's taken care care of, the CSS can be implemented. :)


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
jeffjani

No, they appear, but still appear on the upper left of the page. I would like for the to be on the same line on the right side of the page at the same level as the logo. Here is my page: http://buzz.esigndocs.com

Share this post


Link to post
Share on other sites
Kate

Hey Jeff, Under Settings->Custom Code->Custom CSS, you can add the code I posted above. Let us know if you need anything else.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×