Forums

Running widgets from one theme within another (4 posts)

  1. brentpeters
    Member
    Posted 4 months ago #

    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

  2. ChristiNi
    Member
    Posted 4 months ago #

    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!.

  3. brentpeters
    Member
    Posted 4 months ago #

    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?

  4. alchymyth
    The Sweeper
    Posted 4 months ago #

    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)

Reply

You must log in to post.

About this Topic