Hello.
I’m building a new site using elegantthemes Divi theme and I’m using the “project” posts for landing pages.
downside is that when these post types are used, you have to deal with having the word “project” in the url.
I’ve asked the guys over at elegantthemes but they said i could change ‘slug’ => ‘project’, to whatever, which I did, but then the theme was updated and it was changed back. They also said the they do not support any “hacks” to hide or remove this. Hacks…? really?
I believe there’s an easy way to either hide or remove it altogether, but I’m not that familiar with php to do so on my own.
That said, I would greatly appreciate any knowledge that you wouldn’t mind sharing to resolve my problem.
I would like to remove or hide the slug (slug => ‘project’,) in the url using my child theme functions.php file. Can this be done?
This is what I have in my child theme functions.php file now. Obviosly nothing to resolve my issue, but what do I need to add to achieve this?
[php]
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } [/php] I have attached a copy of my parent functions.php file for examination. Feel free to edit/add/remove whatever you like. Thanks for helping! Brian --- functions.zip (28.9 KB)