Adding/Deleting Template Styles

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Mar 17, 2014 5:46 pm
Hi


I would like to delete all the template styles that come with Creativity and add my own custom one.
I have been looking on the Documentation section of the website but the onlt article i found relatd to template styles refers to a styles.json that i cant find anywhere in my template.

The only json i have are;
default.config.frontpage.json
default.config.subpages.json

I am guessing that the article is outdated. Can someone help out with this?

Thanks!

Best Regards
Paulo
User avatar
Expert Boarder

GK User
Wed Mar 19, 2014 11:57 pm
Hello,

The default.config.frontpage.json file contains settings for the template used on the frontpage. The second file contains settings for the template used on the rest of the website subpages. If you want to reproduce the layout from the demo I recommend you to use two templates - one for frontpage, and second for the subpages.

In my opinion the easiest way is modyfing the existing template styles.
User avatar
Administrator

GK User
Thu Mar 20, 2014 1:50 pm
dziudek wrote:Hello,

The default.config.frontpage.json file contains settings for the template used on the frontpage. The second file contains settings for the template used on the rest of the website subpages. If you want to reproduce the layout from the demo I recommend you to use two templates - one for frontpage, and second for the subpages.

In my opinion the easiest way is modyfing the existing template styles.



HI

What i want is to find the file styles.json in order to edit the template styles list.
I want to delete all the style that comes with the template and create my own.
The only style i want to appear on the Template config area is mine.


Best Regards,
User avatar
Expert Boarder

GK User
Thu Mar 20, 2014 6:46 pm
The styles.json file exists only in the WordPress themes ;)

In Joomla! if you want to remove the existing styles you should do the following steps:

1) Disable the style switcher under features tab
2) Select the style I as a default style in the template settings
3) Remove other styles files:
* css/styleX.css,
* css/typography/typography.styleX.css, css
* css/system/error.styleX.css
* css/system/offline.styleX.css

You should leave only the following files:

* css/style1.css,
* css/typography/typography.style1.css, css
* css/system/error.style1.css
* css/system/offline.style1.css

4) Remove other styles from the list in the template options (in templateDetails.xml file):

Code: Select all
<field name="template_color" type="list" default="1" label="TPL_GK_LANG_TEMPLATE_COLOR" description="TPL_GK_LANG_TEMPLATE_COLOR_DESC">
           <option value="1">TPL_GK_LANG_COLOR_1</option>
           <option value="2">TPL_GK_LANG_COLOR_2</option>
           <option value="3">TPL_GK_LANG_COLOR_3</option>
           <option value="4">TPL_GK_LANG_COLOR_4</option>
           <option value="5">TPL_GK_LANG_COLOR_5</option>
           <option value="6">TPL_GK_LANG_COLOR_6</option>
</field>


should be changed to:

Code: Select all
<field name="template_color" type="list" default="1" label="TPL_GK_LANG_TEMPLATE_COLOR" description="TPL_GK_LANG_TEMPLATE_COLOR_DESC">
              <option value="1">TPL_GK_LANG_COLOR_1</option>
 </field>


5) Edit the following files and define your own style colors:

* css/style1.css,
* css/typography/typography.style1.css, css
* css/system/error.style1.css
* css/system/offline.style1.css
User avatar
Administrator


cron