简体   繁体   English

子域内的Wordpress网站

[英]Wordpress site within subdomain

I have installed WP in the "/news"of a website. 我已经在网站的“ / news”中安装了WP。 The idea is that the site owner can update the latest company news in this section. 想法是站点所有者可以在此部分中更新公司的最新消息。

The site I have created includes a fixed top menu on each page. 我创建的网站在每个页面上都包含一个固定的顶部菜单。 How, can I put this on the wordpress page? 如何将其放在wordpress页面上? I have a header file that is included on every other page and I also want this fixed the the /news (WP) part of the site. 我有一个头文件,该文件包含在其他页面上,并且我还希望此文件修复网站的/ news(WP)部分。

To include any custom PHP code or file on every page of the WordPress pages. 在WordPress页面的每个页面上包含任何自定义PHP代码或文件。 You can include that code or file in your current WordPress theme's header.php file. 您可以将该代码或文件包含在当前WordPress主题的header.php文件中。

As you have already header code/file, You may include the same header file or code from that file into your current wp theme's header.php file in news/wp-content/themes/your-select-theme 由于您已经有了头文件代码/文件,因此可以在news / wp-content / themes / your-select-theme中将相同的头文件或该文件中的代码包含到当前wp主题的header.php文件中。

You may need to fix the paths etc but it is the way we can include on every wp page any common code in the header. 您可能需要修复路径等,但这是我们可以在每个wp页上包含标头中任何通用代码的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM