I am trying to show a header image on my home page.
In the backend it is possible to select a checkbox for each news post and event post that will show a header image on the home page.
At the moment if I select to show an event post image it still leaves the div space above for the news post image, so we need to hide his if an event image is selected and vice versa.
Would this be possible with if/else statements?
Below are the PHP functions
<div class="col- big-news-here">
<?= $news2[0] ?>
<?= $eventsHome[0] ?>
</div>
So basically,
If news image is selected show the news div and banner
If the events banner is selected show the events div and banner and hide news div.
Many thanks