Page 1 of 1

Replace the word [b]Corporal [/b]

Posted: May 1st, 2018, 7:56 am
by hadad2016
Hi;

In the sitemap, how to get ready of/change the word Corporal
(Corporal Slider, Corporal Facts, Corporal Members, etc.…)

If possible, I would like to change it to the site name!

Thank you

Re: Replace the word [b]Corporal [/b]

Posted: May 1st, 2018, 11:10 am
by support_staff
Hii,

Open theme directory -> core folder -> open cpt.php file -

For Corporal Slider - go to line no 9 here you can change name
'name' => __('Corporal Slider','corporal-premium'),

For Corporal Service - go to line no 36
For Corporal Portfolio - go to line no 63
For Corporal Testimonial - go to line no 136
For Corporal Members - go to line no 190
For Corporal Facts - go to line no 217
For Corporal Skills - go to line no 244

You can change name as per your requirement.

Thanks.

Re: Replace the word [b]Corporal [/b]

Posted: May 2nd, 2018, 5:41 pm
by hadad2016
Thank you for the help

What will happen when the themes updates?

Good day

Re: Replace the word [b]Corporal [/b]

Posted: May 2nd, 2018, 6:10 pm
by support_staff
Hello hadad2016,

After theme update, you have to again edit a cpt.php file.

Thanks.

Re: Replace the word [b]Corporal [/b]

Posted: May 2nd, 2018, 8:30 pm
by hadad2016
Can’t just copy cpt.php file to child?

Thank you

Re: Replace the word [b]Corporal [/b]

Posted: May 3rd, 2018, 11:42 am
by support_staff
Hello,

Firstly create a child theme using plugin - https://wordpress.org/plugins/orbisius- ... e-creator/

Now copy a cpt.php file from parent theme to child theme and replace it with code given in the link - https://pastebin.com/tbLeCw5v

and replace the code of function.php file your child theme with code given in the link - https://pastebin.com/eTSE0eFN

Thanks.