• Hi,
    I am new to theme development and not sure what the convention is for building widgets to ship with/in a theme? if atall?
    I’m aware of building a widget as a plugin – but I’ve seen some widgets created in functions.php also – hence they ship ready-to-use with the theme.
    My widget is for configurable contact/information details – hence it is fairly fundamental to the theme I am building – hence is it ok/recommended to build inside theme – or should we always build functionality outside of the theme folder (eg as a plugin)?
    thank you in advance
    K

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are you building this for the wordpress.org repository? If so, they should be separate. If this is something you’re building for a client, it’s best to keep them separate, but you can also view a bespoke theme as an app that you deliver.

    Thread Starter kevinjapan

    (@kevinjapan)

    that’s clear – thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Widget – ship with theme or as separate plugin’ is closed to new replies.