Hero Template

Hi Themeco.

I created a Hero Design for pages and another one for posts. For the title I used the title short code, for the intro I used exerps short code, and for the featured image I used the featured image short code.

Which means if this design is added across all pages and posts, they’d automatically generate their own Titles, Intros and Featured Images from the database.

My problem now is, How can I add this template across all pages and posts?

I don’t want to keep adding it to individual pages.

Please tell me how or suggest a plugin or something compatible with PRO.

Thanks.

Hello @Mrbiizy,

Thanks for writing in! Since you are using the Pro theme, go to Pro > Headers and create a custom header. You can design a header with your Hero Design in it. You can then assign the header for your pages and for your posts. You may be interested in checking out this video tutorial on creating a header with a hero design:

And to get acquainted with the header builder, kindly check out this documentation:

Best Regards.

Oh yeah, I’ve watched this video so many times before now. I think this is the way forward. Thanks.

Glad that we could be of help.

Cheers!

Sorry, that didn’t solve the problem.

I am editing the wp-single.php file. That’s the template file for posts.

I need help please. What is the php code to call out the excerpt?

Thanks

Hi @Mrbiizy,

Modifying the theme core files would require customization and which is beyond the scope of theme support. I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where the customization questions are answered.
Alternatively, you can copy the single.php for single posts template and the page.php for pages into your child theme and modify according to your need.
Please remember we don’t offer any support to the custom codes and issues related to that.

Regarding the excerpt you can call the the_excerpt() or get_the_excerpt() to get the excerpt value for the sepcific post.

Thanks

Thanks. the_excerpt worked but get_the_excerpt didn’t.

Hi @Mrbiizy,

You’re welcome. If you have any other concerns, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.