最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论