theozsnowman Posted April 22, 2023 Share Posted April 22, 2023 (edited) I have a weird one in my footer template file i include some images: as an example: <div class="widget"> <h5>We Accepted</h5> <img class="img-card-sm" src="{$WEB_ROOT}images/payments-logo/visa.png" alt=""> <img class="img-card-sm" src="{$WEB_ROOT}images/payments-logo/master-card.png" alt=""> <img class="img-card-sm" src="{$WEB_ROOT}images/payments-logo/direct-deposit.png" alt=""> <img class="img-card-sm" src="{$WEB_ROOT}images/payments-logo/paypal.png" alt=""> </div> works in some pages but not others for example on the /password/reset link they dont load any path for {$WEB_ROOT} {debug} says the value is set as: $WEB_ROOT Origin: "Smarty object" Value "" whereas id have thought it should have returned the root domain url for the install? am i missing something here or is it just not behaving? Edited April 22, 2023 by theozsnowman 0 Quote Link to comment Share on other sites More sharing options...
bear Posted April 22, 2023 Share Posted April 22, 2023 (edited) Found a related thread: You may also try using a slash after the global, since that's how it's shown in most examples. {$WEB_ROOT}/images/.... Edited April 22, 2023 by bear 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.