(function ($) {
    $(document).ready(function () {
        var hash = window.location.hash;
        var $el = $('a[href="' + hash + '"]');
        if($el.length) {
            $el.trigger('click');
        }
    });
})(jQuery);add_filter( 'wp_insert_post_data' , 'modify_post_content' , 99 ); 
function modify_post_content( $data )
{
    if($data['post_type'] == 'video') {
        $data['post_content'] = str_replace('a', 'b', $data['post_content']);
    }
    return $data;
}add_filter( 'nav_menu_css_class', 'add_custom_class', 10, 2 );
function add_custom_class( $classes, $item ) {
    if ( 'Blog' == $item->title && is_category(5) ) {
         $classes[] = 'current-menu-item';
    }
    return $classes;
}add_filter( 'template_include', 'mobile_template', 99 );
function mobile_template( $template ) {
	if ( wp_is_mobile()   ) {
		$new_template = locate_template( array( 'mobile-template.php' ) );
		if ( '' != $new_template ) {
			return $new_template;
		}
	}
	return $template;
}Мне же нужно чтобы меню было в другом месте, другого вида.
  не помог, то можно попробовать набрать на клавиатуре, например, Alt+0160 или использовать  .<input type="hidden" name="post_type" value="product">function dco_pre_get_posts($query) {
    if (!is_admin() && $query->is_main_query()) {
        if ($query->is_search) {
            $query->set('post_type', 'product');
        }
    }
}
add_action('pre_get_posts', 'dco_pre_get_posts');body {
background-image: url("/wp-content/uploads/2017/08/fon_first.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: top;
}
.site-header {
background-image: url("/wp-content/uploads/2017/08/header_first.jpg");
background-repeat: no-repeat;
background-size: cover;add_filter( 'the_content', 'my_the_content' );
 
function my_the_content( $content ) {
     ob_start(); ?>
     //тут html формы
<?php
    $form = ob_get_clean();
    return $content . $form;
}wp_enqueue_script( 'script-name', get_stylesheet_directory_uri() . '/js/example.js', array(), '1.1' );function enqueue_versioned_script( $handle, $src = false, $deps = array(), $in_footer = false ) {
	wp_enqueue_script( $handle, get_stylesheet_directory_uri() . $src, $deps, filemtime( get_stylesheet_directory() . $src ), $in_footer );
}
 
function enqueue_versioned_style( $handle, $src = false, $deps = array(), $media = 'all' ) {
	wp_enqueue_style( $handle, get_stylesheet_directory_uri() . $src, $deps = array(), filemtime( get_stylesheet_directory() . $src ), $media );
}