WordPress.org

Ready to get started?Download WordPress

Forums

Adding register and login links... (10 posts)

  1. salomonmeijgmailcom
    Member
    Posted 8 years ago #

    On my blog (http://www.sorethumbsgaming.com) I'm using a modified version of the 3k2 theme, but in this theme there are no login or register links for visitors on the right in the banner area, actually the only way to get there is to go to a post and click the "You must login to post a comment." link. How would I go about putting login and register buttons in my banner? Thanks for the help!

  2. moshu
    Member
    Posted 8 years ago #

    http://codex.wordpress.org/Template_Tags#General_tags
    See the proper template tags (the names will guide you)

  3. salomonmeijgmailcom
    Member
    Posted 8 years ago #

    Thanks, where do I insert it though? Like which file, and about where should I insert it into the code? And how woudl I get it to show on the right side instead of the left like the regular links?

  4. moshu
    Member
    Posted 8 years ago #

    I am not familiar with the theme you are using, but I assume it has at least one template file called "sidebar.php". Check where are the things that appear on the right and put the new template tags there.

  5. salomonmeijgmailcom
    Member
    Posted 8 years ago #

    I tried to insert "<?php wp_loginout(); ?>" into a couple sidebar.php in a couple of spots to get a feel for what is what, and also tried it in header.php but a login/logout didn't even show up anywhere. I'm so confused, any ideas at all?

  6. moshu
    Member
    Posted 8 years ago #

    into a couple sidebar.php
    ???
    You should edit ONLY the sidebar of your active theme: 3k2.

  7. Samuel B
    moderator
    Posted 8 years ago #

    <div><?php wp_loginout(); ?>
    </div>

    add this in sidebar.php wherever you want.

    Edit:
    OK, in that theme, it's in the header - follow resiny's instructions below.

  8. resiny
    Member
    Posted 8 years ago #

    In header.php under the horizontil page menu is the following:

    <!-- Disabling admin tab by default in 3k2 -->
    <!-- <li class="admintab"><a href="http://www.sorethumbsgaming.com/wp-register.php">Register</a></li> -->

    change that to

    <li class="admintab"><a href="http://www.sorethumbsgaming.com/wp-register.php">Register</a></li>

    And you should be set

  9. salomonmeijgmailcom
    Member
    Posted 8 years ago #

    Ok now I have a register link, but still no login/out link, how do I get that one? Also, as you can see on the website it's not showing at the right, well, ok it's slightly to the right of the logo, but it's hanging somewhere near the middle, how do I get it more to the right? I tried to do it with css;

    li.admintab {
    margin-bottom: 10px; /* you can use margin to control where the padding starts */
    text-align: right !important;
    width: 70% !important; /* this controls the spacing, my menu uses 70% */
    }

    the li.admintab thing cause in the element it said <li class="admintab"> so I thought maybe that would work, but it didn't, at least, it didn't make it go to the right. Help :(

  10. salomonmeijgmailcom
    Member
    Posted 8 years ago #

    Nobody? :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags