• What is the best way to share functions between themes. For example, if I wanted to add the exact same custom menus to the dashboard for 10 different themes, how would I do that aside from setting the functions in a parent theme and making the 10 mentioned themes a child of the parent?

    I want to allow users to select between 10 different websites (themes) but every website have the same back-end pretty much.

    Hmm I think I need a parent with child themes.

    Any advice?

Viewing 5 replies - 1 through 5 (of 5 total)
  • you’d hardcode the links right in the theme, making sure those pages (or whatever) are also generated when the site is created.

    Thread Starter w1nk5

    (@w1nk5)

    I’m not quite sure what you mean “hardcode the links right in the theme”

    Are you referring to a php include statement in the theme’s functions.php that includes the functions.php of the theme’s functions I want to copy?

    No, I’m referring the a href links. right in the header file where you want the menu to appear.

    Thread Starter w1nk5

    (@w1nk5)

    Hmmm, I am already using the WP Replicator plugin to copy page structure when a new website is created. Perhaps I should have been more specific but I want the functions.php file to be exactly the same for all themes except the main blog so when they login into the system they are presented with the same dashboard and back-end.

    It really doesn’t have anything to do with the menu in the header. Unless I’m just confused, which is possible. 😛

    I want the functions.php file to be exactly the same for all themes except the main blog

    then make a copy of the theme, for just the main blog.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shared functions.’ is closed to new replies.