Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   loginout button in footer (http://forum.bytesforall.com/showthread.php?t=19312)

Ilke Jan 12, 2013 05:07 AM

loginout button in footer
 
Hi, I have so far been very happy using the Atahualpa Theme, but I am now trying Montezuma for the first time. I especially like how it adjusts better to small screens, and again, I am amazed about the possibilities! So first of all, thanks so much for creating those great, costumizable themes!

I would like to have a loginout button in the footer, and I used this code

<?php*wp_loginout(*$redirect,*$echo*);*?>*and also tried
<?php wp_loginout();*?>

in the mo sub-templates footer.php, but that didn't work. It does, when I paste it in the editor > footer.php, but then it appears at the very end of the site. Any idea?

I have two other questions, but I'll post them as different threads.

Thanks!

Ilke

juggledad Jan 12, 2013 05:17 AM

add a dymanic sidebar to the footer.php like
HTML Code:

<?php dynamic_sidebar( 'Footer stuff' ); ?>
add a text widget in
put the login/logout code in it
install the 'exec-php' plugin

Ilke Jan 12, 2013 05:29 AM

Thanks, that worked somehow. But it now looks like a widget underneath the footer, the button is not included inside the footer (sorry, I've been spoiled by Atahualpa :), so I prefer to use it in a widget.

juggledad Jan 12, 2013 06:02 AM

so now you get to experiment and play with it. Try putting th ewidget code in different areas of the footer. change some CSS for positioning

...and then when you get it to work, write it up and post it here so others can benefit from your research and work.

Ilke Jan 12, 2013 07:59 AM

Sounds fair. It might have to wait till next week though. I'm curious.

jerryc Jan 12, 2013 05:39 PM

Quote:

Originally Posted by Ilke (Post 94812)
now looks like a widget underneath the footer, the button is not included inside the footer

Like Jug says, you can use the css to position it. For example, if you wanted it to take up the right 1/4 of the footer you could use something like this in your footer subtemplate:

Code:

<div class="row">
    <div class="col9">
        [basic footer content]
    </div>
    <div class="col3">
        [logout sidebar widget]
    </div>
</div>

You can use this 12 based grid code anywhere (if you use percentage based widths, you can even nest them), long as your columns in any row add up to 12.

Have fun!

Ilke Jan 13, 2013 04:20 AM

Wow, I love it, it worked wonderfully (after I had seen that a " was missing after the 9 in <div class="col9>).
Thanks a lot! I will try percentages, too, to make it even more perfect.
The CSS-ing got me to find out a lot of new insights, but I'm afraid I couldn't move the login around.
So I do appreciate your help a lot!

jerryc Jan 13, 2013 06:56 AM

Quote:

Originally Posted by Ilke (Post 94844)
Wow, I love it, it worked wonderfully (after I had seen that a " was missing after the 9 in <div class="col9>).

Good catch. I fixed that typo.

Quote:

I will try percentages, too, to make it even more perfect.
That's in: Dashboard> Appearance > Montezuma Options > CSS Settings > Choose CSS Grid. The 5 choices at the bottom of each column are all percentage based. The responsive ones give you a great look on any device, which is another fabulous feature of Montezuma.


All times are GMT -6. The time now is 05:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.