Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Moving Sidebar to the top (http://forum.bytesforall.com/showthread.php?t=14146)

hospitalera May 13, 2011 07:29 AM

Moving Sidebar to the top
 
Hi, I am building a new site at

http://kleinehunderassen.com/
WP Version: 3.1.2
Ata Version:3.6.4

Is there a way that I can make the right sidebar move to the top? I mean that the content of that sidebar starts at the top of the page, not below the header. Thanks, SY

juggledad May 13, 2011 08:33 AM

Not really. the page is made up of three sections, the HEADER, the MIDDLE and the FOOTER. These sections are rows of a table,

The MIDDLE row of this table, has one to five TABLE CELL's: the left sidebars, the center and the right sidebars

the cells of one table row can't go up into the row above it.

hospitalera May 13, 2011 08:53 AM

Thanks Juggledad :) What would be then the code I need to insert to create a widget area (one cell) that occupies the top right corner of the screen? Aesthetically that would have the same effect :) I tried several out, but always ended up with the widget displaying under the header :o Thanks again, SY

juggledad May 13, 2011 09:04 AM

create a new widget area in the 'configure Header area' option and then position it with CSS

hospitalera May 13, 2011 09:19 AM

Quote:

Originally Posted by juggledad (Post 65372)
create a new widget area in the 'configure Header area' option and then position it with CSS

Yup, created new widget and I know where to add the CSS insert BUT I don't speak CSS :o Any chance you could give me a hand / hint? SY

hospitalera May 13, 2011 09:32 AM

Quote:

Originally Posted by hospitalera (Post 65375)
Yup, created new widget and I know where to add the CSS insert BUT I don't speak CSS :o Any chance you could give me a hand / hint? SY

Next problem: I put in the following code: <?php bfa_widget_area('name=Headban'); ?> but after saving it says only <?php bfa_widget_area('Headban'); ?>

Why did Ata strip the name= part out? SY

lmilesw May 13, 2011 01:21 PM

Did the widget area get created? If it did what is the name that is desplayed on the widget area in Appearance>Widgets?

hospitalera May 13, 2011 01:43 PM

Quote:

Originally Posted by lmilesw (Post 65404)
Did the widget area get created? If it did what is the name that is desplayed on the widget area in Appearance>Widgets?

Yes, the area was created fine, but the widget was 'namelos' :confused: SY

juggledad May 13, 2011 04:15 PM

The only thing I can think of is that there was a type originally that caused it.

1) remove any widgets you put in the area
2) remove the code that created the widget area
3) view the front page
4) go to ato->Add new WIDGET AREAS->Delete custom Widget Areas and follow the directions

Then you can try creating it again. This time make a copy of the code and paste it into a text file so you know you will have what you used in case it doesn't work again. then you can paste exactly what you used in a reply for us to look at.

hospitalera May 14, 2011 01:35 AM

Quote:

Originally Posted by juggledad (Post 65419)
The only thing I can think of is that there was a type originally that caused it.

1) remove any widgets you put in the area
2) remove the code that created the widget area
3) view the front page
4) go to ato->Add new WIDGET AREAS->Delete custom Widget Areas and follow the directions

Then you can try creating it again. This time make a copy of the code and paste it into a text file so you know you will have what you used in case it doesn't work again. then you can paste exactly what you used in a reply for us to look at.

Thanks, that worked now! I have now a basic widget area in the header, what is now the code to put into the CSS inserts in order to get the widget into the top right corner? Thanks again, SY

juggledad May 14, 2011 05:23 AM

have you put anything into the widget area yet? I don't see it in the source code.

hospitalera May 14, 2011 05:57 AM

Quote:

Originally Posted by juggledad (Post 65446)
have you put anything into the widget area yet? I don't see it in the source code.

Nothing in there, put will do so shortly, thanks! SY

hospitalera May 14, 2011 06:00 AM

Quote:

Originally Posted by hospitalera (Post 65447)
Nothing in there, put will do so shortly, thanks! SY

OK, that widget has now an image in it and as you can see it is under the header image. Any possibility to adjust it that it is in the top right corner, overlaying the white space of the header? SY

juggledad May 14, 2011 06:45 AM

try this in the CSS Inserts - you will have to play with it a bit
HTML Code:

#headban {position: relative; margin-top: -135px;
float: right;
margin-right: 10px;}


hospitalera May 14, 2011 06:57 AM

Quote:

Originally Posted by juggledad (Post 65450)
try this in the CSS Inserts - you will have to play with it a bit
HTML Code:

#headban {position: relative; margin-top: -135px;
float: right;
margin-right: 10px;}


Perfect! That gave me a good starting point, thanks again! SY


All times are GMT -6. The time now is 12:54 PM.

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