Welcome, Guest
Username Password: Remember me

Remove Back button and "home" link from upper LEFT section
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Remove Back button and "home" link from upper LEFT section

Remove Back button and "home" link from upper LEFT section 12 years, 8 months ago #8030

  • cunni5ac
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi, 

I have made a custom menu and I need to remove the "home" textual link and the "Back" button off the mobile site. I am using the Iphone Mobile template. How would I go about doing this?

Example:
els.2elearning.com/mobile/index.php/2012-03-13-23-25-14?device=iphone

^Look at upper left of the page

Thank you
Last Edit: 12 years, 8 months ago by cunni5ac. Reason: wrong side mentioned. Its upper Left

Re: Remove Back button and "home" link from upper LEFT section 12 years, 8 months ago #8078

  • cunni5ac
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Was able to get rid of the buttons, but the words "Back" and Home" are still active. Any one know how to remove these? 

It is a little weird anyway that there will be a back when the Iphone's Safari browser has back included...

Re: Remove Back button and "home" link from upper LEFT section 12 years, 8 months ago #8119

  • cunni5ac
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Well...If anyone of you that needs help with this subject and no one on the forum helps you (like what happened to me:angry:), go to the en-GB.tpl_mobile_iphone.ini file in your language files and delete the words home and back.

Good luck 
Last Edit: 12 years, 8 months ago by cunni5ac. Reason: Corrected method to delete home and back

Re: Remove Back button and "home" link from upper LEFT section 12 years, 8 months ago #8267

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
You chose quite complicated way. I'd edit template's index.php and remove
	<?php if(!$MobileJoomla->isHome()): ?>
<a class="back" href="javascript:history.go(-1)"><?php echo JText::_('TPL_MOBILE_IPHONE__BACK'); ?></a>
<a class="home" href="<?php echo $home; ?>"><?php echo JText::_('TPL_MOBILE_IPHONE__HOME'); ?></a>
<?php endif;?>

(actually, I'd make a copy of the template and edit the copy, because of mobile_iphone is refreshed on each MJ update)
  • Page:
  • 1
Time to create page: 0.10 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.