Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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, 05: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, 05:14 PM
lmilesw's Avatar
lmilesw
 
10,174 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, 05: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 06:10 PM.
  #4  
Old Jun 6, 2012, 06: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, 06:58 PM
juggledad's Avatar
juggledad
 
23,682 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, 07: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, 08:27 PM
lmilesw's Avatar
lmilesw
 
10,174 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, 06: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 04:09 PM
sidebar bottom of page (again) or text wraps around sidebar dkennedy Sidebars & Widgets 3 Nov 15, 2010 06:44 PM
How can I get a widget to stay at the bottom of the sidebar!?! Masselyn Sidebars & Widgets 0 Mar 21, 2010 09:15 PM
Bottom margin on sidebar peter_gilham Sidebars & Widgets 5 Jul 9, 2009 07:54 AM


All times are GMT -6. The time now is 09:56 PM.


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