Home Forums WoodMart support forum "Projects" to "Manufacturers"

"Projects" to "Manufacturers"

Viewing 27 posts - 1 through 27 (of 27 total)
  • Author
    Posts
  • #228386

    WoodyP
    Participant

    Hello,
    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 you

    #228417

    Hello,

    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

    #228420

    WoodyP
    Participant

    Ok thanks!

    #228455

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

    #228552

    WoodyP
    Participant

    A 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 name

    Thank you

    #228577

    Hello,

    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

    #228646

    WoodyP
    Participant

    Yes, 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.

    #228661

    WoodyP
    Participant
    #228733

    Hello,

    Have you changed the title and slug of the page that is assigned as the portfolio page?

    Best Regards

    #228917

    WoodyP
    Participant

    I’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

    #228941

    Hello,

    Please provide your site admin access to the private area.

    Best Regards

    #228947

    WoodyP
    Participant

    Unfortunately I cannot have various customer data.
    Can you tell me what to check.

    #228951

    Hello,

    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

    #228960

    WoodyP
    Participant

    Sorry 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

    #228970

    Hello,

    Please clone your site and move to the stagin platform and provide site admin access.

    Best Regards

    #229149

    WoodyP
    Participant

    I’m waiting
    Thank you

    #229191

    Hello,

    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

    #229269

    WoodyP
    Participant

    Hello,
    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 you

    #229304

    Hello,

    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

    #229341

    WoodyP
    Participant

    Hi ok,
    but what do you mean by “These are the custom portfolio post types” where do they see them once set up?

    Thank you

    #229504

    Hello,

    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

    #231038

    WoodyP
    Participant

    Hello,
    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;
    }
    #231150

    Hello,

    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

    #231168

    WoodyP
    Participant

    Hello,
    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=0

    But 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 you

    #231280

    Hello,

    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

    #231301

    WoodyP
    Participant

    Ok, It also works on the production site.
    Thank you!

    #231328

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 27 posts - 1 through 27 (of 27 total)

The topic ‘"Projects" to "Manufacturers"’ is closed to new replies.