0
Welcome Guest! Login
0 items Join Now

Manual link for Standard view switch

    • mooney101's Avatar
    • mooney101
    • Hero Rocketeer
    • Posts: 305
    • Thanks: 2

    Manual link for Standard view switch

    Posted 13 years 2 months ago
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Manual link for Standard view switch

    Posted 13 years 1 month ago
    • What problem are you having exactly? As mentioned in the other thread, you must have your position alias set correctly.
      Cliff Pfeifer wrote:
      Hi, in the mobile settings, in the "POSITIONS ALIASES" section, set mobile-copyright to "mobile-copyright". Hope that helps.

      If this is not helping, please describe how you have it set up.
    • The difficult we do immediately, the impossible takes a little longer.
    • mooney101's Avatar
    • mooney101
    • Hero Rocketeer
    • Posts: 305
    • Thanks: 2

    Re: Manual link for Standard view switch

    Posted 13 years 1 month ago
    • What I mean is I would like to have the words "SWITCH TO FULL VERSION" for example that is clickable rather than a button if possible. Thank You
    • Gatlinburg Pigeon Forge Photography
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Manual link for Standard view switch

    Posted 13 years 1 month ago
    • The On / Off switch is an image with those words inside it, there isn't any actual text you can edit. The only way you can do this is to edit the image that loads, you can find the image in the Gantry folder of your site - gantry/images/iphone/switcher.png, or you can put this css into your iphone-template.css file and edit the image path and positioning.
      #gantry-viewswitcher {background-image: url(../images/iphone/switcher.png); background-repeat: no-repeat; background-position: top left; width: 60px; height: 20px;display:block;position:absolute;right: 10px;top:40%;}
      #gantry-viewswitcher.off {background-position: bottom left;}
      #gantry-viewswitcher span {display: none;}
    • The difficult we do immediately, the impossible takes a little longer.
    • mooney101's Avatar
    • mooney101
    • Hero Rocketeer
    • Posts: 305
    • Thanks: 2

    Re: Manual link for Standard view switch

    Posted 13 years 1 month ago
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Manual link for Standard view switch

    Posted 13 years 1 month ago
    • After taking a closer look, there could be. What you'll need to do is go into the Gantry files, in your joomla directory, find: libraries -> gantry -> features -> viewswitcher.php. Copy this file into the features directory of your template directory. This creates an override, you don't want to edit the Gantry core files.

      Once you've done that, find this code near the bottom, line 72 or so
      <a href="#" id="gantry-viewswitcher" class="<?php echo $cls; ?>"><span>Switcher</span></a>
      Change the "Switcher" text to whatever you like, and modify the CSS I posted before to hide the image and show the text, like so:
      #gantry-viewswitcher {background: none !important; width: 60px; height: 20px;display:block;position:absolute;right: 10px;top:40%;}
      #gantry-viewswitcher.off {display:none;}
      #gantry-viewswitcher span {display: block;}
      You might have to edit the width and height / positioning of the #gantry-viewswitcher to suit your needs. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
    • mooney101's Avatar
    • mooney101
    • Hero Rocketeer
    • Posts: 305
    • Thanks: 2

    Re: Manual link for Standard view switch

    Posted 13 years 1 month ago

Time to create page: 0.071 seconds