Support ForumNeed help customizing our product? Post your question and our support specialists will help you

Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development. You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup. If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Go Back   Youjoomla Support Forums > Public Joomla forums > Free Joomla Templates > YouGrids

YouGrids Free joomla template powered by YjSimpleGrid Framework

Old 10-27-2010, 10:14 AM   #1
neo's Avatar
Join Date: Mar 2005
Location: Clearwater, Florida
Posts: 13,234
Default YJSG 1.0.8 released. Custom css new faeature

This feature is credit to our forum moderator maggoo01. Why didn't I think of it first .

We added cutsom.css file to default template . This file will let you override all template css declarations. So editing your template is now easier and you dont have to worry if you would brake the site layout.


For manual updates please download the attached zip file . Extract it
FTP the extracted folders ( administrator , templates) to your site root overriding the existing files

  • sitename/administrator/language/en-GB/en-GB.tpl_yougrids.ini
  • sitename/templates/yougrids/css/admin/yjsg_admin.css
  • sitename/templates/yougrids/yjsgcore/yjsg_core.php
  • sitename/templates/yougrids/yjsgcore/yjsg_head.php
  • sitename/templates/yougrids/index.php( only version # changed)
  • sitename/templates/yougrids/TemplateDetails.xml
  • sitename/templates/yougrids/css/custom.css ( new file )

If your template name is different than yougrids or you changed the default style than please follow instructions below

First create empty custom.css file and place it in your template css folder

MANUAL TemplateDetails.xml file update:


find line #498( can differ)
<param name="" type="yjsgtextblank" default="STTEXT_LABEL"/>
change to

<param name="" type="yjsgtextblank" default="CUSTOM_CSS_SLABEL"/>
		<param name="custom_css" type="yjsglist" default="2" label="CUSTOM_CSS_LABEL" description="CUSTOM_CSS_DESC">
		<option value="1">Yes</option>
		<option value="2">No</option>
		<param name="" type="yjsgtextblank" default="STTEXT_LABEL"/>
MANUAL en-GB.tpl_YOUR_TEMPLATE_NAME.ini file update:



and add following text at the bottom of the file . NO SPACES OR BRAKES!

CUSTOM_CSS_SLABEL= This template framework will let you use your custom CSS declarations to override default template CSS. File is located in template css folder under the name custom.css. Any CSS override you place there will automatically take affect. This way you do not have to edit default template CSS file to adjust the layout or color to your own style.
CUSTOM_CSS_LABEL= Activate cutom.css file
CUSTOM_CSS_DESC= This file will let you override all template CSS declarations.
MANUAL yjsg_core.php file update:


find line 40

$affected_selectors     			 = $this->params->get ("affected_selectors");
under that line add

$custom_css    		            	 = $this->params->get ("custom_css");

MANUAL yjsg_head.php file update:


find line

	require( TEMPLATEPATH.DS."yjsgcore/yjsg_hconditions.php");
add under that line

<?php if ($custom_css   == 1) { ?>
		<link rel="stylesheet" href="<?php echo $yj_site ?>/css/custom.css" type="text/css" />
<?php  } ?>
Attached Files
File Type: zip (29.0 KB, 34 views)
neo is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -4. The time now is 03:22 PM.
All times are GMT -4. The time now is 03:22 PM. Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Members Login

Lost password?

Not member?

We invite you to download all our Joomla! products.

Did you know that for one low fee you can get all our Joomla! templates, demos and extensions?!