Styling Using Less Files

Discussion in 'Customization & add-ons' started by roham_sheikholeslami, Jan 17, 2013.

  1. roham_sheikholeslami

    roham_sheikholeslami New Member

    Joined:
    Dec 11, 2012
    Messages:
    9
    I am trying to integrate amember to my website. What I have done so far is to change amember's layout.phtml to include the header and footer of my website, and to include the styling files in the head. I should note that I have css and less files for the styling. My problem is that the amember pages show the footer, and header, and load the css files, but do not load the less files. Any suggestions?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Where do you store your less files?
    If you store these files inside amember folder you have to edit /amember/.htaccess file and change this line:
    Code:
    RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv|html)$ index.php
    
    to
    Code:
    RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv|html|less)$ index.php
    
    Also make sure that less.js is being loaded properly.
  3. roham_sheikholeslami

    roham_sheikholeslami New Member

    Joined:
    Dec 11, 2012
    Messages:
    9
    Thanks Alex. I had already added less to .htaccess file. But I found out that less.js was not being loaded properly :)

Share This Page