WordPress.org

Ready to get started?Download WordPress

Forums

Adding Login Meta to footer (8 posts)

  1. mariacharmer
    Member
    Posted 4 years ago #

    Instead of using the Meta widget in the blog sidebar I'd like to have the login link propagate on all pages in the footer of my template spanning horizontally as all copy in the footer does. How do I achieve this? Where and what code would i use. I assume I'd add code to the footer.php ...? But what code would I use to tell it to do that?

  2. doc4
    Member
    Posted 4 years ago #

    mariacharmer,

    Because all WordPress blogs are different it's impossible to accurately let you know where that code is located. My best guess would be to locate this code within the sidebar.php, if you have one.

    Please let us know what theme you are using.

  3. mariacharmer
    Member
    Posted 4 years ago #

    I'm using the new Photocrati Supertheme. It provides a footer widget area but that merely let's you place a widget configured the way they have it - vertically aligned - in the footer of the blog page. I want the login meta to propagate on every page...essentially in the footer of every page. That's why I assume it would be the footer.php because I added our company info and links to it just fine but had to use that file. So it must be that file.

    Mainly I want the login link in the footer because I hate having to go to the blog page to click site admin to go back into the dashboard to add content or change something. If it were in the footer on every page would be very convenient for myself and the other admin.

    My question is: What code do I use to get the Login and register to comment links that are on blog page to also propagate in the footer?

  4. alianzapc
    Member
    Posted 3 years ago #

    mariacharmer,

    I would like to be able to do exactly what you suggested, add the login link to propogate on all pages in the footer of my template. Were you ever successful in your attempt to do so? If so, what did you do?

    I am using the TwentyTen Weaver theme, and know where the code is in the sidebar.php file, but every time I try to copy and paste the info into the footer, it does not display.

    I'd appreciate your help, if at all possible!

  5. alchymyth
    Forum Moderator
    Posted 3 years ago #

    this is the code i use in my site (child theme of twenty ten) for the login/out in the footer:

    <div id="site-login"><?php wp_register('',''); wp_loginout(); ?></div>

    the div and the css id is simply for formatting.

    it might help if you could post the code of footer.php of your theme, or if it is longer than a few lines, paste it into a http://wordpress.pastebin.com/ and post the link to it here.

  6. alianzapc
    Member
    Posted 3 years ago #

    alchymyth,

    I tried adding your code to the site footer, but to no avail. (I am only a novice in HTML and CSS code, but I am doing my best to get up to speed!)

    I posted the code of footer.php for my theme here.

    You can take a look at my website here if you like. As you will see, I currently have the Meta login in the sidebar. I would like to remove it from there and place in the footer (preferably after the copyright info), to appear on every page.

  7. alchymyth
    Forum Moderator
    Posted 3 years ago #

    to show the login/out somewhere after the copyright, you could try to add the code here (after line 28):

    </div></td> <?php }
            if (! ttw_getadminopt('ttw_hide_poweredby')) { ?>

    so this part looks like:

    </div></td> <?php }
    ?><td id='ttw_ftdm'><div id="site-login"><?php wp_register('',''); echo '&nbsp;&nbsp;'; wp_loginout(); ?></div></td><?php
    	if (! ttw_getadminopt('ttw_hide_poweredby')) { ?>

    possible css elements to use for styling are:

    td#ttw_ftdm { ... }
    #site-login { ... }
  8. alianzapc
    Member
    Posted 3 years ago #

    Thank you so much, alchymyth!! Problem resolved! I really appreciate your taking the time to help me.

Topic Closed

This topic has been closed to new replies.

About this Topic