php - Using Javascript On Page - Header and Footer Now Missing

We have a custom product filter to display vehicles on a products page.The filter uses Javascript and the JS code is pl

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744989991a4604844.html

相关推荐

  • php - Using Javascript On Page - Header and Footer Now Missing

    We have a custom product filter to display vehicles on a products page.The filter uses Javascript and the JS code is pl

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信