admin管理员组

文章数量:1406913

We have a custom product filter to display vehicles on a /products page.

The filter uses Javascript and the JS code is place directly on the /products page content editor. The JS code is also placed on the page.php template that was created exclusively for the /products page.

We also have a function that placed in the functions.php file to display the custom filter on the /products page.

function custom_rewrite_basic() {
add_rewrite_rule('products/(.*)', 'index.php?page_id=104937/$matches[1]', 
'top');
}
add_action('init', 'custom_rewrite_basic');

The product page works, the filter works, but the header and footer no longer show up on the /products page. I have checked the page templates that are used for the /products page, and they do call the header and footer.

Any ideas why the header and footer no longer show up and is there a way to "force" them to show up?

本文标签: phpUsing Javascript On PageHeader and Footer Now Missing