Show Instagram widget area on other pages
Hello everyone,
I am trying to implement the widget area of the plugin 'Social Gallery and Widget' for my Wordpress site (https://www.dosenbier-band.de/epk). I have already inserted the following php code in the footer.php:
<?php if ( is_page( ##page-id## ) ) : ?>
<div id="secondary-sidebar" class="new-widget-area">
<?php dynamic_sidebar( 'sidebar-instagram' ); ?>
</div>
<?php endif; ?>
If I remove the if query, the sidebar appears twice on the front page, i.e. in addition to the one displayed by default, but not on the other pages. From this I conclude that the sidebar is placed somewhere else in the theme code and a condition is set that it can only appear on the front page. Where can I find this place in the theme code or in which .php file do I have to look? Or is there a much simpler solution?
Thanks for your help. If I need to provide more information, just let me know.
Translated with DeepL.com (free version)