Hi andreis11,
Did you read the link in my previous post about creating child theme?
Here are the instructions for your convenience:
1. Create a directory named motif-child inside wp-content/themes/
2. Inside it create a file named style.css with the following code:
/*
Theme Name: Motif Child
Template: motif
*/
3. Create a file named functions.php with the following code:
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
function search_pages_only( $query ) {
if ( $query->is_search ) {
$query->set( 'post_type', 'page' );
}
}
add_action( 'pre_get_posts', 'search_pages_only' );
4. Login to WP-Admin and activate the theme Motif Child.
Are you in the same situation Kathryn?
Kathryn is a customer support specialist (aka Happiness Engineer) at Automattic, the company behind WordPress.com and this theme ??