Comments Philipp started the conversationOctober 21, 2014 at 6:29pm Hi, I want to create a custom page template which is very similar to the normal page template incl. its header. Only difference is that I need to insert some HTML instead of the normal page title. I already set up a template like this:<?php /*template name: Home - Custom */ get_header(); ?> <?php nectar_page_header($post->ID); ?> <div class="home-wrap"> <div class="container main-content"> <div class="row"> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </div><!--/row--> </div><!--/container--> </div><!--/home-wrap--> <?php get_footer(); ?> But my problem is that the part I want to edit is in nectar_page_header.What's the most clever way for doing so?Thanks,Philipp 8,839Tahir repliedOctober 22, 2014 at 3:31pmHey Philipp!You will have to copy the nectar_page_header function and rename it and make the edits to it. Then call that function in the Page template. Thanks ThemeNectar Support Team Philipp repliedOctober 23, 2014 at 5:25pmHey Tahir,so that would be in functions.php? 8,839Tahir repliedOctober 23, 2014 at 7:49pmYes though it should work in the page template as well. Thanks ThemeNectar Support Team Sign in to reply ...
Hi,
I want to create a custom page template which is very similar to the normal page template incl. its header. Only difference is that I need to insert some HTML instead of the normal page title.
I already set up a template like this:
But my problem is that the part I want to edit is in nectar_page_header.
What's the most clever way for doing so?
Thanks,
Philipp
Hey Philipp!
You will have to copy the nectar_page_header function and rename it and make the edits to it. Then call that function in the Page template.
Thanks
ThemeNectar Support Team
Hey Tahir,
so that would be in functions.php?
Yes though it should work in the page template as well.
Thanks
ThemeNectar Support Team