on themes

A forum for Bolt related questions / issues

on themes

Postby diktyo2001 » Mon Mar 25, 2013 12:19 pm

I copied theme folder base-2013 to lan-base-2013 and in images subfolder I put my own image header_3.jpg.
I updated config.yml with theme: lan-base-2013 to use "my" theme, but the image on the top of the page still remains the old one.
If I copy my header_3.jpg to base-2013/images, it shows OK.
So, is it still using theme base-2013 instead of mine lan-base-2013?



PS. On scratching my head a little I saw that ideed my theme lan-base-2013 is used, but using header_3.jpg from the original theme base-2013 remains.
Posts: 30
Joined: Tue Feb 26, 2013 4:30 pm

Re: on themes

Postby Bob » Wed Apr 03, 2013 3:24 pm

in one of your templates, place {{ print(paths) }}. It should print out the paths used. Does it point to the new folder? If so, doublecheck how you inserted the image in your header.
Lead Developer
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm

Re: on themes

Postby MRKeg » Mon Apr 21, 2014 7:31 am

I had the same problem and traced it to the "_header.twig" file which has the default theme "base-2013" hardcoded into as follows:
Code: Select all
        <img src="{{ paths.root }}theme/base-2013/images/header_3.jpg" width="1200" height="350" />

I inserted the print statement as suggested and got the following:
    root str(6) => /bolt/
    theme str(23) => /bolt/theme/egtsc-2014/

So I changed the above code to:
Code: Select all
         <img src="{{ paths.theme }}images/header_3.jpg" width="1200" height="350" />

Now I get my image rather than the base-2013 one.
Posts: 3
Joined: Sun Apr 20, 2014 7:32 pm

Return to Bolt Discussion

Who is online

Users browsing this forum: No registered users and 2 guests