creating and calling a footer-customized.php


I am using the WP template Purity. It contains a footer.php which is obviously called in the template post format.

I created a customized template and have the problem that the default footer is placed as there were no content in the inner class.
In the customized template, I have a class called textPageContent and I want the footer to appear after that class.

In my customized template post format, I added this code:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php the_content(); ?>

<div class="divider"></div>

<?php endwhile; endif; ?>

<?php get_footer('customized') ?>


And this is my footer-customized.php

</div><!-- .inner End -->
</div><!-- #main End -->

<div class="footer_divider"></div>

<div id="footer">

<?php if(!get_option_tree('footer_disabled')) : ?>
<div class="inner">
<div class="textPageContent">
<ul class="<?php
if ( function_exists( 'get_option_tree') ) {
$footer = get_option_tree( 'footer_cols' );
$footer = strtolower((str_replace (" ", "", $footer)));
echo "$footer";

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer Widgets Area") ) : ?>

<div class="clear"></div>
<?php endif; ?>

</div><!-- .inner End -->
</div><!-- .textPageContent End -->
<?php endif; ?>

<div class="footer_small <?php echo strtolower((str_replace (" ", "", get_option_tree('footer_style')))); ?>">

<div class="copyright"><?php echo get_option_tree('copyright'); ?></div>

<?php if(!get_option_tree('social_disabled')) : ?>
<div class="social">
foreach (range(1, 17) as $v ){
if(get_option_tree("social_".$v)) :
echo '<img src="'.get_template_directory_uri().'/img/social/social_'.$v.'.png" alt>';
<?php endif; ?>

</div> <!-- #footer_small End -->

</div><!-- #footer End -->
<!-- FOOTER END -->
</div><!-- #holder End -->
<!-- PAGE END -->

/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.



Any think what I mixed up or missing here?

Thank you,

  • PC
    • WPMU DEV Initiate

    Hello @mikkolaus

    Greetings and thanks for posting on the forums.

    While I am not a coder, I can not give you an exact suggestion on where the problem is as we have a limited scope of support on customization of 3rd party themes, I will suggest you to check and validate your php code here one :

    I will suggest you to test the full files so that we can find out of its some syntax error which is the most common cause of a code not working.

    Please advise if that helps. Else I will try to seek some help from one of my colleagues.

    Cheers, PC

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.