Help Locating Javascript Code

GK User
Fri Sep 30, 2011 1:48 am
Hello there. My website is http://miraclegaming.com, using the AppPhone template for Joomla 1.7.

On the bottom of my website's homepage there is a small logo with the letter R. The link for that logo is #gkTop. I have found where to edit this, but I cannot find the javascript code for this function. Basically what I want is to edit out the "gk" part and just have it say "top"
User avatar
Fresh Boarder

GK User
Fri Sep 30, 2011 2:15 am
I havent tested this but just looking at it at the demo site. Here is what happens

1. You have a div id called "gkTop" which is beginning of the website right at the top
2. In your footer R image links to this gkTop which creates goto top effect.


So changing gkTop to Top you also need to change everywhere else for gkTop e.g other codes and css.
So instead of that you can create another empty target link before gkTop so backup your files and try below.

Find file: templatesgk_appphonelayoutsblocksfooter.php Line 12 which is below
Code: Select all
    <a id="miniLogo" href="#gkTop">Go to the top</a>

Change it to top so it looks like
Code: Select all
    <a id="miniLogo" href="#Top">Go to the top</a>


Then find file templatesgk_appphonelayoutsdefault.php Line 50 to 60 which looks like below.
Code: Select all
<?php $this->messages('message-position-1'); ?>
         
   <div id="gkTop" class="clear">
        <div id="gkTopWrap" class="gkMain gkWrap">   
          <?php $this->loadBlock('logo'); ?>
           <?php $this->loadBlock('nav'); ?>
        </div>
        <?php if($this->generateSubmenu): ?>
        <div id="gkSubmenuWrap"></div>
        <?php endif; ?>   
   </div>


So we are adding new target empty div before gkTop so it looks like below
Code: Select all
<?php $this->messages('message-position-1'); ?>

   <div id="Top"></div>      
   <div id="gkTop" class="clear">
        <div id="gkTopWrap" class="gkMain gkWrap">   
          <?php $this->loadBlock('logo'); ?>
           <?php $this->loadBlock('nav'); ?>
        </div>
        <?php if($this->generateSubmenu): ?>
        <div id="gkSubmenuWrap"></div>
        <?php endif; ?>   
   </div>


Good luck...
User avatar
Platinum Boarder


cron