• Hello friends,

    I just followed this tutorial for having different footers for different categories

    and i replaced the footer code from <?php get_footer(); ?> to `<?php if (is_category(‘Graphic design’)) {
    get_footer(‘Graphic design’);
    } else {
    get_footer();
    } ?>`

    and i copied my orginal footer and made footer-Graphic design.php and kept in the same folder but its not working?

Viewing 1 replies (of 1 total)
  • after

    (is_category('Graphic design')) {

    put

    echo 'this is CATEGORY Graphic design';

    to make sure you are getting to that code.

    I would recommend you don’t use capital letters and spaces in file names — footer would be footer-graphic_design

Viewing 1 replies (of 1 total)

The topic ‘Multiple footers for differnet category not working’ is closed to new replies.