Jump to content

{$WEB_ROOT} in template files not always working


Recommended Posts

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 by theozsnowman
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated