Remove the original navigation of the member center and add home page navigation, which is more conducive to users browsing the website.
Here's how:
Suitable for 5.6, 5.7 and others that have not been tried.
1. First find "/include/common. func. php", open common.func.php, and add the following code at the end:
function pasterTempletDiy($path)
{
require_once(DEDEINC."/arc.partview.class.php");
global $cfg_basedir,$cfg_templets_dir;
$tmpfile = $cfg_basedir.$ cfg_templets_dir."/".$ path;// Path of template file
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
two
Open the member center "head. thm", remove the original navigation, and add:
<</b>? php
pasterTempletDiy("default/head.htm");
?>
3. Add CSS link:
<</b>link rel="stylesheet" href="{dede:global.cfg_templets_skin/}/default/style/style.css" type="text/css" media="all">
4. You also need to use the navigation of the original member center as the navigation just added in the secondary view (you can't operate without adding the member center, because you deleted it first)
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.