tareq1988 / wedocs

A documentation theme for WordPress
http://docs.wedevs.com
391 stars 130 forks source link

Change url #46

Closed korud closed 7 years ago

korud commented 7 years ago

Hello, I want to congratulate you for this great plugin, for me the best documentation plugin, the only problem is that you are missing some options. I can adapt it well to my website, but I would like to change the url. Currently my blog url is www.example.com/blog/docs and I would like to put it on www.example.com/docs or www.example.com/projects. Can you help me with this?

korud commented 7 years ago

Hi, for change the name of section in wedocs.php $rewrite = array( 'slug' => 'docs', 'with_front' => true, 'pages' => true, 'feeds' => true, change word docs by your like. Next is necesary update permalinks in settings wordpress. I would like use the section docs in the root url.

korud commented 7 years ago

Ok, It is ok. for change the url if it is in subfolder for example example.com/blog/docs and you prefer in root example.com/docs in wedocs.php: $rewrite = array( 'slug' => 'docs', 'with_front' => true, 'pages' => true, 'feeds' => true, change: 'with_front' => true, to false: 'with_front' => false, Next is necesary update permalinks in settings wordpress.

Stiofan commented 6 years ago

For anyone else readin this i also had to change 'slug' => 'docs' to 'slug' => '/'