Forum Replies Created
-
AuthorPosts
-
stanlin1999Participant
the the_field() is a custom field type function. I was able to get it working!
Turns out I have an extra whitespace right before <?php and it was throwing the error: ‘Cannot modify header information – headers already sent by’ Found the solution here:
https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php
It’s great to see that you are able to offer help and support this fantastic theme 😀
stanlin1999ParticipantWeird, now when I try to public or preview pages, the page just hangs..
stanlin1999ParticipantI was able to find a solution!!
I think you had a similar idea, but the answer in the following link added back the ambition_child_headercontent_details function in the child theme.
Cheers,
stanlin1999ParticipantHi, thank you for your help.
I tried using your example code above for the functions.php, however, when I use it my site crashes
This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500
This is what my functions.php looks like. It is in my child folder ambition-child.
<?php // Unhook default Thematic functions function unhook_thematic_functions() { // Don't forget the position number if the original function has one add_action('ambition_header', 'ambition_headercontent_details', 10); } add_action('init','unhook_thematic_functions'); add_action( 'ambition_headercontent_details', 'ambition_child_headercontent_details', 10 ); function ambition_child_headercontent_details(){ <div> <img id="single-program-banner" src="<?php the_field('banner'); ?>" alt="" /> </div> } ?>
-
AuthorPosts