Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

centering a theme - how?

Asked Modified Viewed 2,371 times
A
aprieto
A
Im using PHP-fusion to create a site for the disabled. I already created ADA2000.org, now I want to create one for social purpose. Im co-founder of it. I will appreciate any tips and help you can offer us to make PHP-Fusion work smoothly for this project. Im new to it, so please bear with me if I sound ignorant. Thanks
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Junior Member

i was able to make the Giselle theme shorter in width (900px)
just in case some of my visitors have low res monitors.

now the problem is that i cannot figure out how to get the whole site CENTERED.

i also have a hard time to test mods to this theme
because the browser really holds on to the theme cache

but all is well now ... i just need to know while file and which line i need to change

thanks in advance
0 replies

8 posts

J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Giselle theme? Did you mean Gillette? If not, post a link to your website or to the theme.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Something like
style="margin:0 auto;"
0 replies
A
aprieto
A
Im using PHP-fusion to create a site for the disabled. I already created ADA2000.org, now I want to create one for social purpose. Im co-founder of it. I will appreciate any tips and help you can offer us to make PHP-Fusion work smoothly for this project. Im new to it, so please bear with me if I sound ignorant. Thanks
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Junior Member

yes, i meant Gillette
excuse my error

Merged on Sep 24 2012 at 07:51:32:
i just need to know while file and which line i need to change
i can figure out the code, most likely what PolarFox suggested
Edited by aprieto on 24-09-2012 13:51,
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

As what Polarfox said, do make that change in the body section in styles.css file of your theme...
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

[syntaxhighlighter brush=css,first-line=1,highlight=0,collapse=false,html-script=false] body {
margin: 0;
margin-left:auto;
margin-right:auto;
}[/syntaxhighlighter]

You could try something like that.
0 replies
A
aprieto
A
Im using PHP-fusion to create a site for the disabled. I already created ADA2000.org, now I want to create one for social purpose. Im co-founder of it. I will appreciate any tips and help you can offer us to make PHP-Fusion work smoothly for this project. Im new to it, so please bear with me if I sound ignorant. Thanks
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Junior Member

i tried both code
nothing

when i coded it to reduce its width
it too was not working
until i added this code to the main site index.php

header("Cache-Control: no-cache, must-revalidate") ;

that was to clear the cache

now back to the issue at hand

i also added the above recommended codes to
.main-body {

but nothing
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Just open styles.css and add to body {}(line ~33):
[syntaxhighlighter brush=css,first-line=1,highlight=0,collapse=false,html-script=false]width: 900px;
margin: 0 auto;[/syntaxhighlighter]
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Search for this in theme.php
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
[/syntaxhighlighter]

Change to:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
echo "<center>";[/syntaxhighlighter]

Search for:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (!$license) { echo "<br /><br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n";[/syntaxhighlighter]

Change to:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (!$license) { echo "<br /><br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table></center>\n";[/syntaxhighlighter]

All of the code mentioned above, is located under the render_page function. This will allow your page to render as being centered for the Gillette theme.
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
K
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
A
A
Im using PHP-fusion to create a site for the disabled. I already created ADA2000.org, now I want to create one for social purpose. Im co-founder of it. I will appreciate any tips and help you can offer us to make PHP-Fusion work smoothly for this project. Im new to it, so please bear with me if I sound ignorant. Thanks
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet