I’d edit footer.php and add some conditional to it, along the lines of
if ( $this_is_the_membership_portion) { show this content }
I agree with Steve. A conditional is the fundamental basis for alternative content. Depending on how much and what is the same or different, you may want an “else” condition as well. If the differences are substantial, you could organize the content into separate files and conditionally include the files with get_template_part().
get_template_part('footer-content', $this_is_the_membership_portion?'member':'public');
That might be almost the entirety of your footer.php template. You’d then have two different footer content template files: footer-content-member.php and footer-content-public.php
There are any number of variations you can implement on the basic conditional concept. In case you are not familiar with the condition?'member':'public'; ternary construct, it’s a shorthand way of using conditional logic. This example is equivalent to if condition is true then return ‘member’ else return ‘public’.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@bmwaldrop Please do not create multiple topics for the same thing. I’ve closed your newer topic. If you’ve something to add then please do so here.
OK,
SO I had this working,then changed the page id and now it’s no longer working. I tried changing it back to the previous page id and it’s still not working. Ultimatley, I need it on two pages, 6385 and 7187. But if I can get it on this page for now, that’d be a start. Here’s code. Any ideas?
<?php
if (is_page ('6385') ):
get_footer('member');
else :
get_footer();
endif;
?>
Here’s a link if needed.
Page
Remove the string delimiters — you’re looking for a page ID so use is_page( 6385)