WordPress.org

Support

Support » Themes and Templates » [Resolved] Can I remove search bar and archives from posts?

[Resolved] Can I remove search bar and archives from posts?

  • Hi fruitful users.. love this theme!!

    I’m just wondering if anyone knows how to remove certain elements from post pages?

    I have this page as a post but don’t really need the search bar and archives elements. Is there a way I can remove them.

    I did think about just having the page as a page not visible in my menu but it would be nice to have some posts on the site not just pages and so if there’s a way to do the above that’d be great.

    Muchos thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Fruitful Code

    @fruitfulcode

    You can replace default widgets in Single Post Sidebar.

    If you want to remove sidebar edit single.php line 30

    <div class="five columns omega">
    	<?php // get_sidebar('single-post'); ?>
    </div>

    3 default widgets in sidebar-single-post.php

    <aside id="search" class="widget widget_search">
    	<?php get_search_form(); ?>
    </aside>
    
    <aside id="archives" class="widget">
    	<h1 class="widget-title"><?php _e( 'Archives', 'fruitful' ); ?></h1>
    	<ul>
    		<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
    	</ul>
    </aside>
    
    <aside id="meta" class="widget">
    	<h1 class="widget-title"><?php _e( 'Meta', 'fruitful' ); ?></h1>
    	<ul>
    	       <?php wp_register(); ?>
    	            <li><?php wp_loginout(); ?></li>
    	       <?php wp_meta(); ?>
    	</ul>
    </aside>

    Oh no!! I have done something wrong. I posted the code in and this happened

    http://www.onelinestudio.co.uk/testimonials

    now even when I have replaced the code with the original one this still looks like this http://www.onelinestudio.co.uk/testimonials

    help! 🙂

    Hi again, I’ve just used a page instead. Sorry I think this level of coding is a bit beyond my skill set 🙂

    Out of interest what is the difference between a page and a post and there respective benefits? I’d like to know if I should have some posts within my site or if pages is fine…

    Theme Author Fruitful Code

    @fruitfulcode

    OneLineStudio,

    You can hire our developers for any type of customization or use instruction above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Can I remove search bar and archives from posts?’ is closed to new replies.