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

Created on 27 July 2023, over 1 year ago
Updated 11 August 2023, over 1 year 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 Jaipur, Rajasthan

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

Comments & Activities

Production build 0.71.5 2024