Forums / Customization from the Admin / changing the define_main_page.php

changing the define_main_page.php

Results 1 to 8 of 8
01 Feb 2012, 21:14
#1
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Posts:
75
Plugin Contributions:
0

changing the define_main_page.php

I am trying to change the define_main_page.php to display a difference image using the same layout, with different text. I changed it as such:

<a href="http://www.store.bbiclan.com"><img src="images/large/BBI Clan Badge.jpg" alt="Get your custom clan items, or create your own " title="If you run a clan, or are part of a clan, or just want to create your own products, BBI Clan eCommerce is the place to do it. !" /></a>

<a>If you run a clan, or are part of a clan, or just want to create your own products, BBI Clan eCommerce is the place to do it. !</a>

I want the image to be wrapped with the text and be a larger font. my changes resulted in this: http://store.bbiclan.com/
01 Feb 2012, 21:55
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: changing the define_main_page.php

Add to your stylesheet


#indexDefaultMainContent img {float: left; margin: 0 1em 1em 0;}
#whatsNew {clear: both;}

If you want to alter the text, use

#indexDefaultMainContent p {font-size: 1.5em; font-weight: bold;}

with whatever styling you want.
02 Feb 2012, 00:22
#3
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Posts:
75
Plugin Contributions:
0

Re: changing the define_main_page.php

gjh42:

Add to your stylesheet


#indexDefaultMainContent img {float: left; margin: 0 1em 1em 0;}
#whatsNew {clear: both;}

If you want to alter the text, use

#indexDefaultMainContent p {font-size: 1.5em; font-weight: bold;}

with whatever styling you want.



OK, which style-sheet and where is it? There are more than one folders with CSS folders within them.
02 Feb 2012, 00:51
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Posts:
2,400
Plugin Contributions:
0

Re: changing the define_main_page.php

TheMortician4:

OK, which style-sheet and where is it? There are more than one folders with CSS folders within them.

I see your template is called "modified", so the stylesheet you're looking for is in includes/templates/modified/css/

Didn't you create the "modified" template?

Rob
02 Feb 2012, 01:31
#5
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Posts:
75
Plugin Contributions:
0

Re: changing the define_main_page.php

rstevenson:

I see your template is called "modified", so the stylesheet you're looking for is in includes/templates/modified/css/

Didn't you create the "modified" template?

Rob


I created the modified folder and have been gradually moving files that I have customized to said folder as they are done. To my understanding, the system first looks for any file in the modified folder, if it is not found the system then goes to the default folder to retrieve said file.
02 Feb 2012, 09:01
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: changing the define_main_page.php

That's right. Stylesheets will only ever be looked for in your current template css folder, though.
02 Feb 2012, 12:50
#7
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Posts:
75
Plugin Contributions:
0

Re: changing the define_main_page.php

gjh42:

That's right. Stylesheets will only ever be looked for in your current template css folder, though.



So the system is not smart enough to find the modified folder and search the sub-folder css?

How then when upgrading do we prevent losing the modded css files?
02 Feb 2012, 15:32
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: changing the define_main_page.php

"Your current template" means the custom template you have active (/modified/). Unless you are using Classic for your active template, your template files will all be safe.
/includes/templates/modified/css/ is the only place you should put your custom stylesheet(s).