Override Social.php - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Override Social.php

Magali Madec

Magali Madec

Helix Framework 3 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

0
3 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #76417

Hi there!

What types of modification do you need actually? With Social media icons? or social share icons, please?

However, here is the overriding process, if this can help anyways:

https://www.joomshaper.com/documentation/helix-framework/helix-ultimate-2/template-views-override

Best Regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #76449

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.

0
Magali Madec
Magali Madec
Accepted Answer
3 years ago #76458

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

0