0
Welcome Guest! Login
0 items Join Now

SOLVED Ionosphere template - social buttons

    • Z Mina's Avatar
    • Z Mina
    • Sr. Rocketeer
    • Posts: 198
    • Thanks: 0

    SOLVED Ionosphere template - social buttons

    Posted 12 years 8 months ago
    • Hello,

      I have a Joomla! 2.5 site that uses the Ionosphere template and has social buttons on the right that go with the scroller (My site: http://zariefmina.com/ahamsc ). I want to choose which buttons to show & which to hide and I tried everything, and it didn't work. I now have Facebook, Buzz and RSS (even though Buzz and RSS don't have a link in the Template Manager & it doesn't automatically repopulate it).

      I did what Cliff Pfeifer said in this post but it didn't work.

      What did I do wrong? Any ideas? Also, is there a way to make the social buttons links open in a new target window (ie target="_blank")?

      Thank you.
    • Last Edit: 12 years 8 months ago by Z Mina.
    • Z Mina's Avatar
    • Z Mina
    • Sr. Rocketeer
    • Posts: 198
    • Thanks: 0

    Re: SOLVED Ionosphere template - social buttons

    Posted 12 years 8 months ago
    • Oh wow. Got it. I guess I'd uploaded the wrong php file. Instead of uploading Cliff Pfeifer's (see link above), I uploaded a backup of the old php file (which doesn't not have the conditionals). When I added the conditionals in the php, it worked.

      Also, I simply added target="_blank" to the link in the php file and it worked! It opened in a new target! :D

      Well, now it's problem solved.
    • JSYMedia's Avatar
    • JSYMedia
    • Sr. Rocketeer
    • Posts: 134
    • Thanks: 1
    • Joomla plus Gantry

    Re: SOLVED Ionosphere template - social buttons

    Posted 12 years 8 months ago
    • Can you please elaborate on where you added the '_blank' code in the rocksocialbuttons.php file? I,m trying to accomplish the same thing.

      I think the option to choose which type of window you want the link to open in should be an option in the plugin settings.
    • roma64's Avatar
    • roma64
    • Hero Rocketeer
    • Posts: 269
    • Thanks: 10
    • Owner of SimplerWebs

    Re: SOLVED Ionosphere template - social buttons

    Posted 12 years 5 months ago
    • JSYmedia
      Via your ftp program, go to templates\templatename\features and open social.php

      Locate the social media info you want to change the link to open in an external link, for my case, it was the Google that I wanted to change, therefore, I located the below code:
      <?php if ($gantry->get('social-google') != "") : ?>
                  <a class="social-button rt-google-btn" href="<?php echo $gantry->get('social-google'); ?>" >
                      <span></span>
                  </a>

      and added target="_blank" code as below:
      <a class="social-button rt-google-btn" href="<?php echo $gantry->get('social-google'); ?>" target="_blank">
                      <span></span>
                  </a>

      so just locate the line
      <a class="social-button rt-google-btn" href="<?php echo $gantry->get('social-google'); ?>" >
      and add
      " target="_blank"> right after the last ">" of that line. The new code would like like below:
      <a class="social-button rt-google-btn" href="<?php echo $gantry->get('social-google'); ?>" target="_blank">
      I hope this helps and good look.

      Note that I am using rt_metropolis template
    • A Web Design, SEO and Marketing Company
  • Re: SOLVED Ionosphere template - social buttons

    Posted 12 years 1 month ago
    • Sweet! Worked like a charm.

Time to create page: 0.049 seconds