I was wondering how I can achieve the following. I have created an overview page of all news articles. At the top of the page there is a big background image and a white block with content. What I want is, when an item is clicked, it should update the background image with the featured image of that specific post and textual content inside the block. So also an important thing is that it shouldn't open a new page, but only change the content on the current page. Is there a simple way to do this within WordPress custom theme development?
I think I should make use of the_content and featured image template tag, but how can I know which post is clicked and which content should be displayed?