Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
footer display problem...?
#1
dear GS holic, Smile

i just got edit the (theme/Default_simple/template.php and theme/Default_simple/Default.css)

my intention is to edit the color of the footer and edit the default text , it works fine on my localhost but suddenly when i'm trying it on server.........the display of the footer is not the same as the localhost......does anyone can help my problem? i'm using gs 1.71


the display on localhost : the color fill the width of the footer
the display on server:the color is not fill the width of the footer

once again dear all GS holiC help me please.....i'm really confused..... Sad

best regards,


GS Lover
Reply
#2
Did you use an image, and did you upload that image?
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#3
A couple of things to check,
When you upload the edited theme from your testing server to your host,
make sure you upload both the template.php, and the css file that contains all
the changes. If you have this then it should work, if it doesn't work,
please copy all the code in the template.php and the css file that corresponds to
to the template and post it in code tags on this forum, I will then be able to better
find your error!
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#4
internet54 Wrote:Did you use an image, and did you upload that image?

nope i don't use the image for the footer...i just adding background color in default.css ....at the footer part ...

it works on localhost....the color perfectly cover the width of the footer......
it works on server but the color not covering the width of the footer only the center part so it will looks like not full bar ....

@OWS_Matthew:

i already check the theme.php if there is missing code or missed interprated .....but when i'm comparing the files they both look the same....the files i'm using on localhost is the same file i'm using on server..........

if it's not the script problem ..could it be the environment problem....? but i think it is too sily if i conclude this as the environment problem ......

when localhost can interpreted the display so well why the host don't do the same...? :/

this is my template.php for the footer code that work's on localhost:

</div><!-- end div#sidebar -->

<div class="clear"></div>

<div id="footer">
<p align="center"> contact | sitemap | links </p>
<p align="center"> &copy 2010 </p>

</div><!-- end div#footer -->

</div><!-- end div.wrapper -->

and this is the dafault.css :

#footer {
text-align:left;
line-height:18px;
font-size:12px;
color:#666;
border-top:1px solid #ccc;
padding:10px 0 20px 0;
background:#132430; <------- i'm adding this
}

well the point is it doesn't have a problem on localhost..but it doesn't work perfectly on host server...which is i don't know why ??? why the color not fully fill the width of footer....... :/ or maybe it's time for me to sleep.......and continue this thing tommorow........ Smile
Reply
#5
Is the footer located with a container?
Either way it may help if you change the footer css to be as follows:
Code:
#footer {
    text-align:left;
    line-height:18px;
    font-size:12px;
    color:#666;
    border-top:1px solid #ccc;
    padding:10px 0 20px 0;
    background:#132430;    <------- i'm adding this
    width:100%; <------ change this to what ever the width of your template is. like 900px, or 100px, or so on....
    }
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#6
If it's online, give me a page to goto.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#7
If it’s just HTML and CSS so there can not be any difference between localhost and online. You might want to clear your cache as it might be that you’re browser is still remembering the old CSS.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#8
internet54 Wrote:If it's online, give me a page to goto.


thx internet54...i 've notice my mistakes.....


OWS_Matthew Wrote:Is the footer located with a container?
Either way it may help if you change the footer css to be as follows:
Code:
#footer {
    text-align:left;
    line-height:18px;
    font-size:12px;
    color:#666;
    border-top:1px solid #ccc;
    padding:10px 0 20px 0;
    background:#132430;    <------- i'm adding this
    width:100%; <------ change this to what ever the width of your template is. like 900px, or 100px, or so on....
    }

matth thank's for the solution....you're the man Cool ......

Zegnåt Wrote:If it’s just HTML and CSS so there can not be any difference between localhost and online. You might want to clear your cache as it might be that you’re browser is still remembering the old CSS.

you're right zenat so does the matthw......i think i was so tired sitting in the front of the computer......all day long......so sloppy putting the code in the wrong place.........

today i was edited the template.php on my server via control panel .....

and i put the code after this comment line.....<!-- end div#footer -->

everything back to normal.....just what i want to be........

so case closed....

special thx to matth,internet54, zegnat you're rocK !

i think admin can delete my sloppy thread now.....
Reply




Users browsing this thread: 1 Guest(s)