When removing the social media link from the backend the icon is not removing from footer

Created on 27 July 2023, 11 months ago
Updated 11 August 2023, 11 months ago

Steps to reproduce

  • Donwload and enable the theme
  • Remove the facebook link from theme setting

Proposed resolution

Add condition to the page.html.twig

<ul class="social">
  {% if facebook %}
    <li><a href="{{ facebook }}"><i class="fa fa-facebook"></i></a></li>
  {% endif %}
  {% if twitter %}
    <li><a href="{{ twitter }}"><i class="fa fa-twitter"></i></a></li>
  {% endif %}
  {% if instagram %}
    <li><a href="{{ instagram }}"><i class="fa fa-instagram"></i></a></li>
  {% endif %}
  {% if youtube %}
    <li><a href="{{ youtube }}"><i class="fa fa-youtube"></a></i></li>
  {% endif %}
</ul>
🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India Dheeraj Jhamtani

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024