Header & Footer Not Rendering as it should with Custom Post Types

http://anewhealthierme.com/recipe/three-bean-vegetarian-chili/

I’m using the Intense Shortcode Plugin to do this for me. As you can see this doesn’t happen on regular posts:

http://anewhealthierme.com/post-4/

I was given this code to try from the Intense guys, it didn’t work. Any ideas?

add_action( 'intense_before_main_content', 'intense_before_main_content' );
function intense_before_main_content() {
	echo '<div class="fl-row fl-row-fixed-width fl-row-bg-none">' . 
		'<div class="fl-row-content-wrap">' . 
		'<div class="fl-row-content fl-row-fixed-width fl-node-content">';
}

add_action( 'intense_after_main_content', 'intense_after_main_content' );
function intense_after_main_content() {
	echo '</div>' .
		'</div>' .
		'</div>';
}

Hey David,

I can see the header and footer just fine from my end but I can definitely say there is something wrong with the layout. Do you mind sharing temp admin access so we can check? You can use the private reply option below.

Ben

Sorry, I realized that I neglected to add the menu back in. I was just on my way to Edit this post. As you can see though, it’s showing full width.

[Content Hidden]

Hey David,

I’m actually a bit lost as to what the problem really is but what I did, I modified the code you have above to make the recipe page look like the regular posts(minus the sidebar). Is that what you wanted?

Ben

Yes, that’s exactly what I wanted. What needs to be done to make this future proof? Thank you for help, I really appreciate you Ben.

Ah, I see that it’s in the Child theme so we should be okay, right?

Hey David,

That is correct. Updating the main theme shouldn’t affect the code we have there. I can’t say the same for the plugin you’re using though. They might add new CSS that might override ours or change their layout.

Ben

Understood. Thank you Ben. I really appreciate you.

No worries at all! Have fun with The Beaver!

Ben