• astima

    (@astima)


    I don’t mean downloading it and activating it, I mean what code do I have to add to my template? I am attempting to make my first custom template with a plug-in, but I have no idea how to do that.

    If someone could please direct me as to where to learn how to add a plug-in or plug-in area to my template that would greatly appreciate it

Viewing 1 replies (of 1 total)
  • Nectarine Imp

    (@nectarine-imp)

    I assume you want a plug-in that you didn’t write. Otherwise you’d just put the functionality in your theme functions php file.

    There isn’t an official way of doing this that I have found. I’ve been digging around because I’d like some of my plug-ins made such that they could be included with themes. I can think of some hacks but I haven’t tried them. They won’t work with this site though – since it is pretty ridged where things go.

    You could just include a message about what plug-ins are suggested and put code that check to make sure the plug-in functions are actually available and ignoring them when they aren’t.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I add a plug-in to a template?’ is closed to new replies.