• Hi all,

    I’ve found a theme that includes special widgets that are very useful to me. I want to integrate these theme-specific widgets into my main theme. Is this at all possible?

    Cheers,
    Brent

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Brent,

    Here’s a suggestion that may help. Make a Child Theme of your preferred main theme. Copy the functions.php file from the theme with the special widgets in your child theme’s directory. You might need to “merge” the two functions.php files from the preferred theme and the theme with the special widgets, but try just copying the functions.php of the theme with the special widgets first.

    Hope this helps!.

    Thread Starter brentpeters

    (@brentpeters)

    It doesn’t seem to work. I copied the /functions dir to the new theme folder, and I merged the functions.php files in the root dir, but it generates an error when I try to load the desired widget. Are there other files I need to merge as well?

    a theme that includes special widgets

    try to locate the theme file, where these widgets are defined (possibly functions.php, but could be any file).

    then copy that code and paste it into functions.php of your theme.

    it might help if you can name the theme with the interesting widgets (as long as it is a free theme – help with commercial theme is not really possible as there is no free access to all theme files)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Running widgets from one theme within another’ is closed to new replies.