-
Hi!
I see that the templates for following and followers are in userpro/addons/social/templates.
But how can i copy to my theme to edit?
The main templates i copy to the /userpro/ in my theme… is something like /userpro/addons/social/ ?No, put it in the same folder. /userpro/followers.php in your theme. 🙂
PHP1234567if (locate_template('userpro/' . $template . '.php') != '') {include get_template_directory() . '/userpro/'. $template . '.php';} else {include userpro_sc_path . "templates/$template.php";}So it works/get loaded the same way you customize a standard login.php or view.php template.
Thanks!!!
If i want to make a include of a php code inside of mytheme/userpro/ it is possible?
Because i test include and not works, i need to use same php function to return the path ?Because i have the same code in view, edit… i would like to include and not repeat 😀
can you help me please?? 😀I`m editing and making my custom view.php, edit.php, following.php and the files are under mytheme/userpro/view.php for example.
I’m using in a moment the same code in my view.php and edit.php… so i would like to use include in another php file that have the same code. So i can reuse it, and not duplicate in every file the same portion of code.
But when i put in view.php include(‘sample.php’); and the sample.php is under mytheme/userpro/ dont work.
i test now, and is working!
i’m crazy hahahha!sorry!
thanks!!
You must be logged in to reply to this topic.