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
版权声明:本文标题:php - Using Javascript On Page - Header and Footer Now Missing 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744989989a2636324.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论