override social.php - Forum | JoomShaper
Solved Helix Framework

override social.php

Asked by Magali Madec 4 years ago Last activity 4 years ago

Hello Joomshaper Team,

Need to override social.php to change social media.

I succeed to modify the code source of social.php, but is it possible to keep this code after update ?

I do a copy of the file social.php into override folder as
override/features/social.php OR html/features/social.php ??

Don't succeed to archive this override !

also for the templates-details.xml who get changed.

Need your help.
Thanks
Magali

Accepted answer

Marked as the solution

2 more replies

Paul Frankowski Senior Staff
4 years ago · edited

If I may....

Both files cannot be overriden social.php nor templates-details.xml.
Especially the 2nd one!. It's not possible in Joomla in all templates, .xml is core file.

BUT....

About "classic" social icons - there is much easier and safer way....
Beacuse that file contain simple html code, just:

  1. on front-end view open in source code view - copy HTML code from it.
    social.png
  2. create a new Custom module (or use HDAnyCode module),
  3. In his editor switch to HTML mode and paste HTml code that you already copied in step 1.
  4. Publish on this same position as you did for default socials "top1" ?.
  5. And in Template Options disable Social icons.

Having your own Social module it gives you more flexibility about order of icons and new icons from Font Awesome 5 Free collection.


Last word about "templates-details.xml" if you added there a new positions - in theory they still should be visible in Joomla if they were used (!) even if with default templates-details.xml - you can check.

Magali Madec Asked this

Thanks both for your help.
Yes I knew the possibility to create a HTML module and display it into a position.
Wanted just to customize the template configurations as the social media don't display the one that I need.

I notice not to change or override the core file of Helix template.
Also in override or html folder.

Thank's for your quick response.
Magali

Log in to reply.