i need assistance in creating a custom link for portfolio slider.. let me explain.. by default if any user clicks on home > slider ''view project" web opens up the portfolio link.. what if there's an option to change this behaviour. If i can put a custom link there and whenever user clicks on it, it goes to a specific link on web (e.g: contact us page)...
can this function be achieved? or is this is already available in theme, am i missing something?
the option can be added in /include/metabox-config.php in portfolio item's section - you can add a simple text field, you can follow the model of the existing fields.
then, assuming you are using the Showcase template as your home page, you can:
hello,
i need assistance in creating a custom link for portfolio slider..
let me explain..
by default if any user clicks on home > slider ''view project" web opens up the portfolio link..
what if there's an option to change this behaviour. If i can put a custom link there and whenever user clicks on it, it goes to a specific link on web (e.g: contact us page)...
can this function be achieved? or is this is already available in theme, am i missing something?
can you provide me with some solution asap?
Hi there,
This in my opinion can be done only with custom work in that we add a new option which replaces the default portfolio page link
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
Can you tell me how can this be done? what will i have to do?
can you provide me some guidelines?
Yes, of course, needs intermediate php knowledge
the option can be added in /include/metabox-config.php in portfolio item's section - you can add a simple text field, you can follow the model of the existing fields.
then, assuming you are using the Showcase template as your home page, you can:
- read the option newly added
- then modify line 84 in showcase-page.php
https://prnt.sc/x3OscGzGrru0
so that
- if the custom link option is NOT empty will display it instead of the the_permalink()
- otherwise it will stay the same
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio
I'll try to implement the provided solution and will let you know if i got it to work.
ok, sounds good
Thank you.
Clapat Support
Review Envato Item Support Policy
Follow us!
https://www.clapat.com/
https://www.facebook.com/clapat.ro
https://www.instagram.com/clapat.themes/
https://x.com/clapatdesign
https://www.linkedin.com/company/clapatstudio
https://www.tiktok.com/@clapatstudio