If I click view portfolio on the 3 column portfolio, it connects to the details of the portfolio. I just want to connect it to a specific page. How can I make it?
Asked 5 days ago on May 14, 2022 12:29 AM Comments 3 times
Kintesh
replied
5 days ago on May 14, 2022 3:10 PM
Hi,
There is a two ways that may help you to do so. 1st - Override the single-portfolio.php template in child theme. So that theme update will not affect your changes. You can find single-portfolio.php in ../wp-content/themes/nicol/single-portfolio.php
Copy this file in child theme and make chages in it as per your requirements.
2nd - Make metabox using ACF for portfolio. Which gives you a field to add custom link for portfolio. And then set that links in the portfolio widget so it will redirect you to desire page .
Thanks, And Regards - Kintesh
정원식
replied
5 days ago on May 14, 2022 7:14 AM
can I know which code I should edit?ˀ
Kintesh
replied
5 days ago on May 14, 2022 4:53 AM
Hi, There
Portfolio is the custom post type. So it will redirect you to their single page. If you want to redirect it on specific page then you have to customize the code.
Kintesh replied 5 days ago on May 14, 2022 3:10 PM
There is a two ways that may help you to do so.
1st - Override the single-portfolio.php template in child theme. So that theme update will not affect your changes. You can find single-portfolio.php in ../wp-content/themes/nicol/single-portfolio.php
Copy this file in child theme and make chages in it as per your requirements.
2nd - Make metabox using ACF for portfolio. Which gives you a field to add custom link for portfolio. And then set that links in the portfolio widget so it will redirect you to desire page .
Thanks, And Regards
- Kintesh
정원식 replied 5 days ago on May 14, 2022 7:14 AM
can I know which code I should edit?ˀ
Kintesh replied 5 days ago on May 14, 2022 4:53 AM
Thanks, And Regards
- Kintesh