Home › Forums › WoodMart support forum › "Projects" to "Manufacturers"
"Projects" to "Manufacturers"
- This topic has 26 replies, 2 voices, and was last updated 4 years, 2 months ago by Elise Noromit.
-
AuthorPosts
-
September 23, 2020 at 10:08 am #228386
WoodyPParticipantHello,
some questions.1) How can I change “Projects” to “Manufacturers”
I would like the contents created in “projects” not to be linked to the portfolio, I would also like to change the permalink.2) How can I deactivate the Download tab in the user profile?
I’m waiting
Thank youSeptember 23, 2020 at 10:51 am #228417
Elise NoromitMemberHello,
You can translate/rewrite all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3
Please check the video tutorial to see how to save the translation file correctly. You can remove the plugin and translations would remain. Also, translations would remain after each theme update.
As for the Downloads, you can remove this by cleaning the field in Woocommerce > Settings > Advanced.
Best Regards
September 23, 2020 at 11:00 am #228420
WoodyPParticipantOk thanks!
September 23, 2020 at 12:10 pm #228455
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
September 23, 2020 at 6:39 pm #228552
WoodyPParticipantA last question.
I changed the entries with poedit.
But how can I change the permalink?
So as to index correctly?We do not want a portfolio to appear, it is not a portfolio.
NO – Https: // sitename / portfolio / manufacturer name
YES – Https: // sitename / manufacturers / manufacturer nameThank you
September 23, 2020 at 9:01 pm #228577
Elise NoromitMemberHello,
Please find the option to change the slug and URL in the Theme Settings > Portfolio https://prnt.sc/umozl5
Your portfolio page title should be changed accordingly as well.
Best Regards
September 24, 2020 at 7:40 am #228646
WoodyPParticipantYes, I’ve already changed it, that’s why I wrote you.
Despite having written in both boxes saved and also saved the permalinks the slug seems to remain identical, both in the backend and in the frontend.September 24, 2020 at 8:49 am #228661
WoodyPParticipantSeptember 24, 2020 at 12:16 pm #228733
Elise NoromitMemberHello,
Have you changed the title and slug of the page that is assigned as the portfolio page?
Best Regards
September 25, 2020 at 1:37 pm #228917
WoodyPParticipantI’m not sure I understand.
I changed what I show you in the video.
I don’t see porfolio pages, this one seems to be created automatically.
Shouldn’t that be one of the two voices you see in the video?Thank you
September 25, 2020 at 2:49 pm #228941
Elise NoromitMemberHello,
Please provide your site admin access to the private area.
Best Regards
September 25, 2020 at 2:58 pm #228947
WoodyPParticipantUnfortunately I cannot have various customer data.
Can you tell me what to check.September 25, 2020 at 3:20 pm #228951
Elise NoromitMemberHello,
Please find the page that is assigned (Portfolio template set) as the Portfolio page in Dashboard > Pages.
Change its title and URL slug as per your needs.
Best Regards
September 25, 2020 at 4:25 pm #228960
WoodyPParticipantSorry but I think I don’t understand.
I have not created or assigned any pages as a portfolio page. There is no portfolio page between the pages. However, the Portfolio page can be reached from a project link.The page you see in the video is a page created by the visual composer that shows a summary of the projects, but this has a different name than “portfolio” and I have not assigned the portfolio template.
I just tried to create a page, assigned the portfolio template and saved. But it doesn’t change anything the projects always have / porfolio / in the slug.
You can make a video showing the steps. I followed your documentation, but this particular step is not specified.
Thank you
September 25, 2020 at 7:46 pm #228970
Elise NoromitMemberHello,
Please clone your site and move to the stagin platform and provide site admin access.
Best Regards
September 27, 2020 at 8:39 am #229149
WoodyPParticipantI’m waiting
Thank youSeptember 27, 2020 at 5:40 pm #229191
Elise NoromitMemberHello,
Try to add the following PHP code snippet to the child theme functions.php file to do this
add_filter('register_post_type_args', 'portfolio_to_my_slug', 10, 2); function portfolio_to_my_slug($args, $post_type){ if ($post_type == 'portfolio'){ $args['rewrite']['slug'] = 'my_slug'; } return $args; }
Replace ‘my_slug’ with your one.
Best Regards
September 28, 2020 at 7:44 am #229269
WoodyPParticipantHello,
why do i have to enter this code to make the slug work?
You didn’t say I could do this from the theme settings. Do you have a mistake and plan to fix it soon?The code placed in that position risks being deleted on the first update.
Thank youSeptember 28, 2020 at 10:36 am #229304
Elise NoromitMemberHello,
Ths slug works properly without any codes. There is no bug to fix. This code is necessary to customize the slug as per your individual needs.
This is Portfolio custom posts types. The majority of users are satisfied with the default slug. Please add this code and change one word in it to get what your need.
Best Regards
September 28, 2020 at 1:15 pm #229341
WoodyPParticipantHi ok,
but what do you mean by “These are the custom portfolio post types” where do they see them once set up?Thank you
September 29, 2020 at 7:28 am #229504
Elise NoromitMemberHello,
I mean that projects operate in the same way as blog posts do
https://woodmart.xtemos.com/blog/
you see that that blog is the common slug for all the posts.The same for projects.
https://woodmart.xtemos.com/portfolio
There is no option to change this slug that is why I provide you custom code and instruction how to use it.
Best Regards
October 5, 2020 at 2:39 pm #231038
WoodyPParticipantHello,
I applied your code in the functions.php file
I changed in the last line “my_slug” but it doesn’t work.
As soon as I insert it, the portfolio creates an error.add_filter('register_post_type_args', 'portfolio_to_my_slug', 10, 2); function portfolio_to_my_slug($args, $post_type){ if ($post_type == 'portfolio'){ $args['rewrite']['slug'] = 'manufacturers'; } return $args; }
October 6, 2020 at 7:36 am #231150
Elise NoromitMemberHello,
I am checking your site and portfolio page: https://prnt.sc/utwkww and https://prnt.sc/utwlc4
Please clarify what you want to change and where
Best Regards
October 6, 2020 at 8:25 am #231168
WoodyPParticipantHello,
I’m talking about the slug.
You provided a code to insert in the fuctions.php file
This code works
https://www.dropbox.com/s/592lg309hf1hpqy/Schermata%202020-10-06%20alle%2009.57.09.png?dl=0But if I change “my_slug” to “manufacturers” it creates an error and the pages are not reached.
add_filter('register_post_type_args', 'portfolio_to_my_slug', 10, 2); function portfolio_to_my_slug($args, $post_type){ if ($post_type == 'portfolio'){ $args['rewrite']['slug'] = 'manufacturers'; } return $args; }
I’m waiting
Thank youOctober 6, 2020 at 1:53 pm #231280
Elise NoromitMemberHello,
You are adding the slug equal to the slug of the page. I have changed the plural form and it works. When you change, save Permalinks in the Settings.
Best Regards
October 6, 2020 at 2:58 pm #231301
WoodyPParticipantOk, It also works on the production site.
Thank you!October 6, 2020 at 6:11 pm #231328
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘"Projects" to "Manufacturers"’ is closed to new replies.
- You must be logged in to create new topics. Login / Register