convert remove wordpress as static web wordpress relative link relative url

  • 13
  • 0

convert remove wordpress as static web wordpress relative link relative url

generally wordpress use theme, so customize web page maybe add a new theme,

change the theme name , add new web page,

but I find wordpress has its specialized syntax,

such as wordpress premalink

https://wordpress.org/documentation/article/customize-permalinks/

https://developer.wordpress.org/reference/functions/the_permalink/

need much time to get one's feet wet,

so if it could be programmed as generally html css js,

then common web knowledge could establish web.

 

after lots of search, find that in my host, 

build the web in the root public_html folder works.

 

the root folder

 

 

 

 

 

 

 

 

has wp-content, wp-includes, etc folders,

 

first backup original files in public_html root folder

second, try modify index.php in root folder as 

<head>
<link href="/style.css" rel="stylesheet">
</head>

<p>hello world</p>

<a href="./service.html">click</a>

 <?php include "./footer.html" ?>

add style.css in root folder

p {
  color: lime;
}

add service.html in root folder

service

footer.html

footer

then test if it works as static web.