I am looking to create a similar website concept like the one found at
The idea is to have two images, and when clicking on an image, compare a specific content below the image in full width. This also needs to be responsive.
How can I achieve this? The HTML markup for this concept is as follows:
<div class="imagecontainer"></div>
<div class="image1"></div>
<div class="image2"></div>
</div>
<div class="contentcontainer"></div>
<div class="content1"></div>
<div class="content2"></div>
</div>
Update
I have tried every code posted but nothing seems to work on my page. Here is what the page looks like:
<?php
if ( !defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<?php if ( have_posts() ) : ?>
<div class="row archive-courses course-list archive_switch" itemscope itemtype="http://schema.org/ItemList">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
learn_press_get_template( 'archive-course-content.php' );
endwhile;
// Previous/next page navigation.
?>
</div>
<?php
learn_press_course_paging_nav();
endif;
?>
No matter what I try, there always seems to be an issue with implementation.