Hi Jackie,
If you post a link to your website we can take a look and make a code suggestion for you.
Cheers!
Luke the Daft Duke
HI Luke,
Thanks so much for replying. I can’t send a link as the site’s not live. In the front page php you can see the call for side bar and recommended products etc here.
<?php get_header(); ?>
<section id=”main-content”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<header>
<h2>“><?php the_title(); ?></h2>
</header>
<?php the_content( ” ); ?>
</article>
<?php endwhile;?>
<?php if ( simply_jigoshop_show_posts_nav() ) : ?>
<nav class=”paging”>
<?php if ( function_exists( ‘wp_pagenavi’ ) ) : wp_pagenavi(); else : ?>
<div class=”prev”><?php next_posts_link( __( ‘« Previous Posts’, ‘simply-jigoshop’ ) ); ?></div>
<div class=”next”><?php previous_posts_link( __( ‘Next Posts »’, ‘simply-jigoshop’ ) ); ?></div>
<?php endif; ?>
</nav>
<?php endif; ?>
<?php endif; ?>
<?php if ( class_exists( ‘jigoshop_cart’ ) ):?>
<h2><?php _e( ‘Recent Products’, ‘simply-jigoshop’ ); ?></h2>
<?php echo do_shortcode( ‘[recent_products columns=”3″ per_page=”6″]’ ); ?>
<h2><?php _e( ‘Featured Products’, ‘simply-jigoshop’ ); ?></h2>
<?php echo do_shortcode( ‘[featured_products columns=”3″ per_page=”6″]’ ); ?>
<?php endif;?>
</section>
<?php get_sidebar( ‘frontpage’ ); ?>
<?php get_footer(); ?>
How can I change it to hide all of these things? Possible using custom css?
Jackie
Yes, but using CSS.
I’m guessing here but from looking at the JigoShop demo maybe this will work for you:
#sidebar {
display: none;
}
#main-content {
width: 100%;
}
If not, perhaps the developer can help you out.
I hope that helps!
Luke the Daft Duke
Wow, that worked a treat but across the whole site and I only want it on the front page.
Also how can I remove the recent products and featured products on the front page too?
Many thanks
Jackie
Try prefixing the previous snippet with .home like this:
.home #sidebar {
display: none;
}
.home #main-content {
width: 100%;
}
Not sure about the recent products and featured products – as that doesn’t seem to appear on the demo – perhaps that are widgets that you can delete ?
Spot on, thank you sooo much! Will send you a link when we are live! 🙂