Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] drop a widget to the bottom of a sidebar


  #1  
Old Jun 6, 2012, 06:02 PM
--yeah--wow
 
I've got a right sidebar with 4 widgets. I want the bottom widget to always appear at the bottom of the page, and not just below the 3rd widget. Of course if there is little info in the post area it has to fit just below the 3rd widget, but if the post area is longer I want the widget to move down also, so that the widget is always at the bottom of the page.

I have tried a lot of things, searched (again and again) in all the posibilites with CSS ans also found no solution in this forum. Is there a solution to this? Who can help me?
  #2  
Old Jun 6, 2012, 06:14 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Have you experimented with absolute positioning for the bottom widget.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jun 6, 2012, 06:31 PM
--yeah--wow
 
Sure.

I just checked again. I have

Code:
#text-2 {
padding-right: 20px;
position: absolute;
bottom: -100px;
}
in the CSS inserts. text-2 is the id of the last widget in the right sidebar (which is a td with id "right"). It will position the last widget in another place, but it is no solution. The last widget can be shown outside the sidebar this way, if you choose some value for bottom. If there is a long page, I expect the sidebar td is also as long as the post area, but there seems to be no way to position the last widget to the bottom of the sidebar.

Last edited by --yeah--wow; Jun 6, 2012 at 07:10 PM.
  #4  
Old Jun 6, 2012, 07:22 PM
--yeah--wow
 
Just did some more research and concluded that it cannot be done (but I am open to suggestions)...

In this case I wanted to have a tiny image in the right-hand side of the website. In stead of putting it in a widget I now put it in the footer and with some padding/margins and an extra blank line at the end, it is in a postion that is about right...

Fixed it with a workaround, but I am not complaining.

It leaves the original question open though...
  #5  
Old Jun 6, 2012, 07:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could possibly do it via a jscript. This is how the footer option 'Sticky footer on short pages?' works. You can look at the code in js.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jun 6, 2012, 08:07 PM
--yeah--wow
 
Ok, I'll look into this. More for future reasons than for the current problem. I fixed this with a workaround (see my reply above).
Thanx for the advice though!
  #7  
Old Jun 6, 2012, 09:27 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I just tried what I suggested and it worked fine. Here is what I used for my test in CSS Inserts.
HTML Code:
#text-2 {
    position: absolute;
    width: 160px;
    bottom: 92px;
}
What happened in your test? I also don't understand the negative bottom position.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #8  
Old Jun 7, 2012, 07:14 AM
--yeah--wow
 
#Imilesw:
Thanks for your reply. Your code seems to place the widget at a fixed point in the right sidebar, independent of the length of the page. If I have a page that is not too long it can be outside the frame of the page, and if I have a long page the widget does not sit at the bottom of the sidebar.

I guess that is what absolute positioning does.

The widget needs to sit just on top of the footer, and in the right sidebar. In my case it is just a small image in the text widget, so I now put it in the footer, which is almost OK.

Bookmarks

Tags
bottom, position, widget



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using text widget to position graphic at bottom of sidebar pvelte Sidebars & Widgets 2 Sep 3, 2011 05:09 PM
sidebar bottom of page (again) or text wraps around sidebar dkennedy Sidebars & Widgets 3 Nov 15, 2010 07:44 PM
How can I get a widget to stay at the bottom of the sidebar!?! Masselyn Sidebars & Widgets 0 Mar 21, 2010 10:15 PM
Bottom margin on sidebar peter_gilham Sidebars & Widgets 5 Jul 9, 2009 08:54 AM


All times are GMT -6. The time now is 12:52 AM.


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