WordPress.org

Ready to get started?Download WordPress

Forums

Fruitful
[resolved] Can I remove search bar and archives from posts? (5 posts)

  1. OneLineStudio
    Member
    Posted 4 months ago #

    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

  2. Fruitful Code
    Member
    Theme Author

    Posted 4 months ago #

    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>
  3. OneLineStudio
    Member
    Posted 4 months ago #

    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! :-)

  4. OneLineStudio
    Member
    Posted 4 months ago #

    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...

  5. Fruitful Code
    Member
    Theme Author

    Posted 4 months ago #

    OneLineStudio,

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

Reply

You must log in to post.

About this Theme

About this Topic