• Resolved p5laris

    (@p5laris)


    Hello! I had an issue last week that you helped me out on with regards to accordions not working when pages first load. (Thank you for that…) The solution you provided works perfectly to get the accordions working, but for some reason, now the actual footer does not appear now. Is there a way to get both of them to work? I tried including both in the <php> code where get_footer(); appears:

    <?php include(‘footer.php’); ?>
    <?php get_footer();?>

    I’ve also tried switching the order.

    As well as <?php get_footer(footer.php);?>

    My site is: mhdo.org

    Unfortunately, the footer cannot be seen on the site (because the get_footer(); code is in place)

    The actual footer can be viewed on the mobile or tab (where the footer appears…)

    Thank you in advance for your help.

    https://www.ads-software.com/plugins/accordion-shortcodes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    This is not really an issue with this plugin and is more an issue with your theme.

    That said, you don’t need both include('footer.php') and get_footer(). All you want in your template files is <?php get_footer(); ?>.

    get_footer() is a function that essentially loads the footer.php file for you (and does a few other things). See this for more info.

    Thread Starter p5laris

    (@p5laris)

    Thank you for your clarification and for sharing the link. It definitely helps for me to know it’s something that I can try to isolate within my theme’s code. (I’ve been trying a whole bunch of stuff and your advice this will at least help me to eliminate it being a conflict with the plug-in. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_footer() issue’ is closed to new replies.