Shape 5

Wordpress Club Themes => Lime Light - Club => : kirstykiwi December 07, 2015, 02:31:09 PM



: Lost widget styles
: kirstykiwi December 07, 2015, 02:31:09 PM
I only seem to have the 'default' widget style - how can I get the the other styles back?  I have used the same template on another site and it is fine. 

onlinelasertraining.co.uk - misbehaving site

Thanks
Kirsty


: Re: Lost widget styles
: Tristan Rineer December 07, 2015, 02:47:55 PM
I believe I have seen this problem before; there has been a slight tweak to the way the styles list is generated in newer versions of the framework, and on some servers the backwards compatibility I programmed in seems to fail.  The fix is easy though.  If you edit templateDetails.xml in the theme folder, you will see a list near the top that is wrapped with <colors></colors> and has each item wrapped with <color></color>.  If you change that structure to <styles></styles> and <style></style> the list will reappear.


: Re: Lost widget styles
: kirstykiwi December 07, 2015, 03:06:58 PM
Changed it to look like this - but it still isn't working:
<styles>
      <color>-dark</color>
      <color>-none</color>
      <color>-inset</color>
      <color>-highlight1</color>
      <color>-highlight2</color>
      <color>-no_shadow</color>
      <color>-title_lines</color>
      <color>-title_lines_no_bg</color>
      <color>-centered</color>
      <color>-highlight1_title</color>
      <color>-highlight2_title</color>
      <color>-none_laptop</color>
   </styles>

I also replaced all color with styles  - just in case. but still nothing.
<styles>
      <styles>-dark</styles>
      <styles>-none</styles>
      <styles>-inset</styles>
      <styles>-highlight1</styles>
      <styles>-highlight2</styles>
      <styles>-no_shadow</styles>
      <styles>-title_lines</styles>
      <styles>-title_lines_no_bg</styles>
      <styles>-centered</styles>
      <styles>-highlight1_title</styles>
      <styles>-highlight2_title</styles>
      <styles>-none_laptop</styles>
   </styles>



: Re: Lost widget styles
: Tristan Rineer December 07, 2015, 03:11:56 PM
Replace <color> with <style>.

The structure should be:
:
<styles>
<style>-style1</style>
<style>-style2</style>
</styles>


: Re: Lost widget styles
: kirstykiwi December 07, 2015, 03:26:50 PM
Coolio... sorted!