Author Topic: Finding where an area displayed on a page is called from  (Read 102 times)

lorry84

  • New Member
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Finding where an area displayed on a page is called from
« on: May 17, 2012, 05:00:12 PM »
Hello,

I have a  website I have inherited and am trying to find the code in the php files that display a certain element on the sidebar content so I can alter the link. Here is the scenario: On certain pages in my site that display aluminum products I have a link and graphic in the sidebar that opens a popup window that displays a colorchart. There are also links above and below this element that go to different pages when clicked.I can see in the php code where the elements that are not the colorchart are being called to display but I cannot find where the link to the colorchart is being called. I need to redirect the hyperlink.   Here is the code that calls the two elements above the colorchart. Shouldn't there be similar code for the colorchart right underneath this code? The page in question is http://www.guttersupply.com/m-aluminum.gstml

Code: [Select]
</div> <!-- / centerpane -->
                         
<div id="right_bar">

<div id="right_nav">
<p><a href="my_account.php"><img border="0" src="{$URL_SKIN}/images/account.gif" alt="My Account" width="105" height="20"></a></p>
<p><a href="cart.php"><img border="0" src="{$URL_SKIN}/images/cart.gif" alt="Shopping CArt" width="125" height="20"></a></p>
</div>
{if $recommended}

<p>{isAlum
code=$category->CategoryCode
desc=$category->Description
prod=$productMaterials
}</p><br />

This code is from the .tpl file

Is there any way I can find out where this link is located? I have looked in every php and tpl file this site has.

I can locate the colorchart element clearly in the html file when I view source from the browser.

This is driving me nuts!!

Thanks for your help

aiwou

  • Regular Member
  • **
  • Posts: 25
  • Karma: 0
    • View Profile
Re: Finding where an area displayed on a page is called from
« Reply #1 on: May 17, 2012, 06:50:37 PM »
I think it has to be included from somewhere else. Keep searching...