Relevant section of the tempalte below:
<?php
/** Template name = NewsFeed
*/
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'sfs_do_resident_query' );
function sfs_do_resident_query() {
global $paged;
global $query_args;
// Show Residents
$args = array(
'posts_per_page' => '10',
'post_status' => 'publish',
'tag' => 'frontpage',
'paged' => $paged,
);
?>
<div style="float: left; width: 375px; text-align: left;">
<?php
genesis_custom_loop( wp_parse_args($query_args, $args) );
?>
</div>
<div style="float: right; overflow-x: visible; margin-top: 0px; position: relative; margin: 0 -420px -121px 0; z-index: 90;">
<?php echo do_shortcode('[metaslider id=693]');
}
?>
</div>
<!-------Call rest of template------->
<?php
genesis()
?>
Like I said, I’m not a CSS or PHP expert, so there may be a more elegant way to do this. All suggestions welcome.
Hi there,
It looks like slider has a ‘fixed’ position and also a negative z-index (in the CSS)
This means that the slider will remain in the same place on the page and that other elements will appear over the top (as they will likely have a higher z-index value).
Were you looking to alter either of these things or is there a separate issue?
Thanks,
Dave