Hello. Is there also a guide for adding color in Version SJ_Plus-sj_plus_template_j3x_v1.0.3? Link in backend leads to this guide right here, but I did not manage.
What di I and why didn't it work?
First I added an option
<option value="xyz">XYZ</option>
in templateDetails.xml
Then, I added
var array_xyz = array(...);
and
//7.Color XYZ
$('.theme-color.xyz').click(function(){
$($(this).parent().find('.active')).removeClass('active'); $(this).addClass('active');
createCookie(TMPL_NAME+'_'+'templateColor', $(this).html().toLowerCase(), 365);
setCpanelValues(array_xyz);
onCPApply();
});
in bottom.php
Then I added
<span title="Xyz" class="theme-color xyz<?php echo ($templateColor=='xyz')?' active':'';?>">XYZ</span>
and created a css file template-xyz.css
What did I forget? Thanks for your advice!
Daniel