WordPress.org

Ready to get started?Download WordPress

Forums

Plugins don't seem to work in my custom theme (4 posts)

  1. michaelhisten
    Member
    Posted 1 year ago #

    I'm creating my own theme for my website, and I've been trying to add a plugin to allow a "recommend" style functionality. The two I've tried (WPI Like Post and I Recommend This) both work fine in the default theme but fail to have any functionality when I turn my custom theme on.

    I'm wondering if there is some element I am missing in my theme code -- I can see two possibilities:

    1. Something in my theme is making the plugins look in the wrong path
    2. There is some required code line that I have missing from my theme which is causing some issue

    Can anyone offer some help? Here's a sample page (note that this is all dummy content and this site is not live nor complete):

    http://michaelhisten.com/blog/welcome-to-the-blog

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Does your custom theme include a call to wp_footer() just before the </body> tag in footer.php. Many plugins use wp_footer as a hook.

  3. michaelhisten
    Member
    Posted 1 year ago #

    I realized I was missing both that and wp_head() -- and at least one of the plugins started to work after I made that change. Thank you!

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Glad I could help :-)

Topic Closed

This topic has been closed to new replies.

About this Topic