Title: Removing &#8216;page-bottom&#8217; widgets using a function
Last modified: August 19, 2016

---

# Removing ‘page-bottom’ widgets using a function

 *  [napalm](https://wordpress.org/support/users/napalm/)
 * (@napalm)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/removing-page-bottom-widgets-using-a-function/)
 * Hi Guys,
    I’m trying to use a function to remove the page-bottom widgets from
   a page. I know there are other ways of doing this using css or removing the call
   get_sidebar(‘page-bottom’). But I guess this is mainly an exercise to get more
   of an understanding of WP.
 * I currently have this function, which is identical to another I have used to 
   remove ‘thematic_sidebar’. I just can’t seem to target the ‘page-bottom’ widgets.
 * <?php
    function remove_page_bottom() { if (is_page()) { return FALSE; } else {
   return TRUE; } } add_filter(‘page-bottom’, ‘remove_page_bottom’); ?>
 * I’ve also tried using ‘widget_area_page_bottom’ but nothing so far has worked.
 * If anyone could advise, it would be greatly appreciated.
 * Thanks

The topic ‘Removing ‘page-bottom’ widgets using a function’ is closed to new replies.

## Tags

 * [remove sidebar](https://wordpress.org/support/topic-tag/remove-sidebar/)
 * [remove widgets](https://wordpress.org/support/topic-tag/remove-widgets/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [napalm](https://wordpress.org/support/users/napalm/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/removing-page-bottom-widgets-using-a-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
