Padding for Right Sidebar on Homepage
I have modified my main page located here to include a flash image that appears below the logo, line, and search bar in my header. The inner pages are using the header image rotator.
In order to get the right sidebar to appear below the flash, rather than on top of it, I modified the right sidebar to have padding-top:310px;. This works as a temporary fix for the home page (where the flash appears), but it does not work for the inner pages, where the header image appears. I need to figure out a permanent fix. Is there a way to: 1. change sidebar or flash settings on home page so sidebar appears below it (without changing padding)? 2. modify inner page with css so the padding is reset at 0px while keeping padding set for home page? 3. a way to get the flash image to appear as a block? Any suggestions would be great! Thank you! |
I'd have to see this, please post or PM a URL
|
My apologies! :)
|
The way you put that huge image at the top of the middle column is a bit odd. The errors could probably corrected with various fixes (in addition to what you see, in IE 6/7 a part of the image is covered by the right sidebar) but it would be much better to include that image in the header to begin with. Before I give you instructions to do that, is there a reason you don't want to put it into the header?
Also the post at http://endeavourz.net/the-running-man/ is messed up in IE6/7 because the image it not inside any table cell Change HTML Code:
<table border="0" cellspacing="0" cellpadding="0" width="95%"> HTML Code:
<table border="0" cellspacing="0" cellpadding="0" width="95%"> |
Yes I saw the padding earlier too, I suggested that you put that image/flash into the header to avoid both the padding and the "hiding behind sidebar" problem in IE altogether, for a less hackish solution. I suggest that you do this:
Version 1: In header.php, after PHP Code:
PHP Code:
If you want to do this the way you have it now (keep the flash/image location and adjust the CSS), do this: In header.php around 701, find: PHP Code:
PHP Code:
|
Hi Flynn,
I appreciate your help. The first suggestion I have already tried, but it does not work for our needs. I tried the second fix, but I am afraid that I was unable to get any results from the change even when I put in the variables I needed: PHP Code:
Thank you for your patience helping me with this issue! You have exceeded my expectations! |
Those examples with is_array were for several pages, for a single page it would be different
PHP Code:
PHP Code:
The is_paged() should not be changed, it just means that the padding is only for the "real" homepage and not for page 2, page 3 etc. If you DO want to have the padding on page 2, page 3 as well, just leave out the is_paged part and use PHP Code:
PHP Code:
|
It's still not working. I am sorry! This is what I did:
In header.php, after PHP Code:
PHP Code:
PHP Code:
put this PHP Code:
|
Sorry for being unclear, and on top of that I gave you slightly wrong code, too.
In post#5 (which is edited now to make this clearer) I posted two possible ways to solve this. The first two code blocks of post#5 were for version 1 (putting the flash and image into the header part of the layout). The 3rd and 4th code blocks of post#5 were for version 2 (leaving the flash and images at the top of the main column, as you have it now, and adjusting the CSS instead). The version 2 I posted above was slightly wrong, sorry. I corrected it now in post#5. To do version 2 (adjusting the CSS) do this: In header.php, find around line 702-703, this PHP Code:
PHP Code:
|
Wonderful! The padding is now working on the front page and on the inner pages as we wanted! Thanks to your corrections! That is fantastic. You have been a wonderful help.
The last thing is that the flash image on the home page is appearing behind the sidebar (in IE). The flash object is set at wmode="transparent" because of the javascript menu that appears above (and on top) of the flash. Do you have any suggestions on how I can override the flash appearing behind the right sidebar? Thank you again for working with me. Your prompt replies are impressive. |
Try this as CSS Insert:
HTML Code:
td#middle { |
You.
Are. AMAZING. Thank you!! |
All times are GMT -6. The time now is 05:08 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.