Replace the word [b]Corporal [/b]

Ask Corporal Premium Theme Installation, Settings & Configuration, Problem, Error & Bug Related Issues Here

Moderator: forum_m

Post Reply
hadad2016
Posts: 190
Joined: December 18th, 2015, 4:06 am

Replace the word [b]Corporal [/b]

Post by hadad2016 » May 1st, 2018, 7:56 am

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

support_staff
Posts: 7199
Joined: February 26th, 2015, 1:40 pm

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

Post by support_staff » May 1st, 2018, 11:10 am

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.

hadad2016
Posts: 190
Joined: December 18th, 2015, 4:06 am

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

Post by hadad2016 » May 2nd, 2018, 5:41 pm

Thank you for the help

What will happen when the themes updates?

Good day

support_staff
Posts: 7199
Joined: February 26th, 2015, 1:40 pm

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

Post by support_staff » May 2nd, 2018, 6:10 pm

Hello hadad2016,

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

Thanks.

hadad2016
Posts: 190
Joined: December 18th, 2015, 4:06 am

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

Post by hadad2016 » May 2nd, 2018, 8:30 pm

Can’t just copy cpt.php file to child?

Thank you

support_staff
Posts: 7199
Joined: February 26th, 2015, 1:40 pm

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

Post by support_staff » May 3rd, 2018, 11:42 am

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.

Post Reply

Return to “Theme Installation, Settings & Configuration, Problem, Error & Bug”