I would like to include an ACF field <?php the_field('text'); ?> in the “Page Header” (combined with site header). The ACF field should be inside the “div class: inside-page-header”. Is there a way to integrate this using functions.php?
Hi Leo, Thanks your quick response. I mean, inside the generated Page Header from GP Premium. The Content is enclosed by the class “create-inside-combined-content”. Inside this class i would linke put the ACF Field. You know what I mean?
You could use the Page Header area, but you would first have to create a new shortcode with your custom fiend.
add_shortcode( 'your_shortcode_tag','sebastian_acf_shortcode' );
function sebastian_acf_shortcode() {
ob_start();
?>
Your custom field/HTML in here
<?php
return ob_get_clean();
}
Then you would add [your_shortcode_tag] into the page header content area.