---
title: Enable Custom Page Template for Static Front Page in WordPress
date: 2014-02-21T14:16:18+00:00
modified: 2014-02-21T14:17:46+00:00
image:: https://kaspars.net/wp-content/uploads/2014/02/front-page-template-enable.png
permalink: https://kaspars.net/blog/custom-page-template-front-page
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
post_tag:
  - How to
  - Snippet
category:
  - WordPress
---

# Enable Custom Page Template for Static Front Page in WordPress

![Page template settings in WordPress backend](https://kaspars.net/wp-content/uploads/2014/02/front-page-template-enable.png?strip=all&quality=90&resize=800,540)

WordPress will ignore your page template settings for the static front page with themes that include their own `front-page.php`. Here is a quick filter that checks for a page template setting and loads that one instead:

```
add_filter( 'frontpage_template', 'enable_custom_template_front_page' );

function enable_custom_template_front_page( $template ) {

	// Check if a custom template has been selected
	if ( get_page_template_slug() )
		return get_page_template();

	return $template;

}
```