Change default ordering

You can change the default ordering of the social icons by performing a small template override, please follow the instructions below

    Create the override php file

  • Copy the default.php file located here:
    /modules/mod_rssocial/tmpl

    to:
    /templates/template_name/html/mod_rssocial/

  • The default ordering of the icons is handled by the $socials array

  • Open:
    /modules/mod_rssocial/mod_rssocial.php
    and copy the $socials array

  • After we retrieved the default ordering, we can override it in the newly created default.php

  • Head over to the newly created default.php and insert the array after the following line:
    defined('_JEXEC') or die('Restricted access');
  • You can edit the order of the items from this array as per your needs, e.g.
 
  defined('_JEXEC') or die('Restricted access');
      $socials = array(
        'facebook',
        'googleplus',
        'twitter',
        'youtube',
        'linkedin',
        'lastfm',
        'pinterest',
        'soundcloud',
        'tumblr',
        'flickr',
        'github',
        'vimeo',
        'digg',
        'skype',
        'instagram',
        'rss',
        'stumbleupon',
        'reddit',
        'mail',
        'recommend'
      );
?>      
 
 
  defined('_JEXEC') or die('Restricted access');
      $socials = array(
        'youtube',
        'twitter',
        'skype',
        'facebook',
        'stumbleupon',
        'googleplus',
        'lastfm',
        'linkedin',
        'soundcloud',
        'pinterest',
        'flickr',
        'tumblr',
        'recommend',
        'vimeo',
        'github',
        'digg',
        'instagram',
        'rss',
        'reddit',
        'mail'
      );
?>      
 

One person found this article helpful.


Was this article helpful?

Yes No
Sorry about that

You Should Also Read

General Configuration tabs

Using RSSocial! in module positions

Place the RSSocial! module inside a Joomla! article

Recommend