hi, very cool theme. i use its child theme, and i created 2 new custom posts with some custom fields. I'd like to add the hero section (as on the pages, or portfolios), to have the same header on front page, with metaboxes on backend.
There's a short method to add that functionality to my child theme?
P.S. i registered the custom post with a plugin (following code)
You're right, i've already did it, but the code inside hero_section of serano theme is full of "if sections" looking for the portfolio custom post and for some theme options. So there's a lot of copy/paste... In fact i open this ticket looking for a shorter method.
Ah i forget a thing... I need to add the hero metaboxes to my custom post, or that hero_section won't work... how can i do this?
hi, very cool theme. i use its child theme, and i created 2 new custom posts with some custom fields. I'd like to add the hero section (as on the pages, or portfolios), to have the same header on front page, with metaboxes on backend.
There's a short method to add that functionality to my child theme?
P.S. i registered the custom post with a plugin (following code)
Hello,
plz use the example of the existing custom post type 'harington_portfolio'
For custom post types to have their own page you need to link it with its name.
So following our example for theme's portfolio it's
single-harington_portfolio.php
When you open it you will see the code that displays the hero section at the top:
https://prnt.sc/XK-s5XtHu0eH
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
You're right, i've already did it, but the code inside hero_section of serano theme is full of "if sections" looking for the portfolio custom post and for some theme options. So there's a lot of copy/paste... In fact i open this ticket looking for a shorter method.
Ah i forget a thing... I need to add the hero metaboxes to my custom post, or that hero_section won't work... how can i do this?
Oh, that's right! You need to add also a new set of metaboxes for the custom post type.
for this, plz open /include/metabox-config.php and duplicate the portfolio item options
https://prnt.sc/fec5OzEqmVSf
but you need to rename them
for example let say the custom post type is 'serano_services'
$portfolio_options = array();
will become
$services_options = array();
and
serano-opt-portfolio-hero-img
will become
serano-opt-services-hero-img
then you need to add a similar section in /include/hero-properties.php
https://prnt.sc/bRqxjCKA6dmg
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy