I am wondering if there is a way to dynamically call an ExpressionEngine home path. For instance, in Wordpress they use <?php echo home_url(); ?>, is there an equivalent for ExpressionEngine? I am wanting to link to my stylesheets without putting the absolute static path into the href.

Thanks in advance!


Try using {site_url} which will return the site's homepage url such as http://www.mysite.com

  • Exactly what I was looking for, thank you!
    – APAD1
    Dec 3 '13 at 16:42
  • or {homepage} or {path='site_index'}
    – GDmac
    Dec 8 '13 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.