jasonalvis / magento2-social
Social media.
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- alvis/magento2-core: ~1.0.0
This package is auto-updated.
Last update: 2022-02-01 13:01:02 UTC
README
Simple module for keeping your social profile URLs in one manageable area.
Installation
Recommended installation through composer, within your Magento root directory enter the following:
composer require alvis/magento2-social
Alternatively you can install manually by following these steps:
- Install the magento2-core dependency module, following the README
- Now you can return to install this module, download the repo zip file and extract
- You should have a folder called 'magento2-social-master'. Rename this folder to 'Social'
- Under your Magento site folder create a new directory 'app/code/Alvis'
- Upload the module to this folder 'app/code/Alvis/Social'
Enable the module
php bin/magento module:enable Alvis_Core
php bin/magento module:enable Alvis_Social
You may also need to re-compile:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
Module configuration
The module configuration can be found through the main menu under Alvis.
Profiles
Current social media profiles available:
- GitHub
Integration
By default profile links display in the footer.
Move xml block within your theme <VendorName>/<ThemeName>/Alvis_Social/layout/default.xml
:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <move element="alvis_social.profiles" destination="main" after="-" /> </body> </page>
Remove xml block within your theme <VendorName>/<ThemeName>/Alvis_Social/layout/default.xml
:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="footer"> <referenceBlock name="alvis_social.profiles" remove="true" /> </referenceContainer> </body> </page>
Override the default templates within your theme create the following files:
<VendorName>/<ThemeName>/Alvis_Social/templates/profiles.phtml
The original contents of the files can be found under:
<Root>/vendor/alvis/magento2-social/view/frontend/templates/profiles.phtml