WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to change About and create set pages for all new multisites? (7 posts)

  1. hauruapai
    Member
    Posted 4 years ago #

    I would like to change the default text for About and also have a few more new pages created automatically with each install calling a custom template.

    I have checked out New Blog Defaults, WPMU DEFAULT CONTENT IMPORT and YD WPMU Site-wide Options but they do not do this, so is there a plugin to do this?

    If not, can someone kindly let me know the file name where the database writing is done for a new site so I can change the About and add in another entry?

    Thank you for your time :D

  2. Go to Super Admin -> Options. Look for "New Site Settings" and "first Page".

    For extra pages, see previous threads:
    http://www.google.com/search?sitesearch=mu.wordpress.org&q=add+new+default+pages

  3. hauruapai
    Member
    Posted 4 years ago #

    Thank you for your reply.

    The page that all those threads talk about using to add in extra pages is the /wp-include/wpmu-funxctions.php file.

    As I do not have that file (I have a clean install of WP3.0) I have looked in
    /wp-includes/
    functions.php
    functions.wp-scripts.php
    functions.wp-styles.php
    ms-functions.php
    ms-settings.php
    ms-load.php
    ms-default-constants.php
    ms-load.php

    the I looked in
    /wp-admin/
    admin.php
    ms-admin.php
    ms-options.php

    /wp-admin/includes/
    admin.php
    ms.php
    post.php

    but can not find the bit of code I need. Could someone kindly let me know which file I should look in?

    Thank you for your time :D

  4. mcfd90
    Member
    Posted 4 years ago #

    hauruapai I too have been looking for this. It appears that no one knows the answer and this basic feature was simply over-looked when WP3 was developed.

    Please see:

    http://wordpress.org/support/topic/415465?replies=5

  5. It appears that no one knows the answer and this basic feature was simply over-looked when WP3 was developed.

    Uh, no. the exact code from MU was rolled in mostly as-is. Some functions were renamed and files were moved, but stuff like this wasn't removed.

    If you read the code and follow along, you'll notice references to blog creation in ms-functions.php. this calls /wp-admin/upgrades.php.

    Where you'll find the function wp_install_defaults, which create the data in the new blog(site).

    http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/upgrade.php#L105

  6. hauruapai
    Member
    Posted 4 years ago #

    Perfect andreda_r - that is exactly what I was looking for and I hope that this info will help you to mcfd90 :F

  7. mcfd90
    Member
    Posted 4 years ago #

    Thank you very much andrea_r - all working as before now. Thought it must still create a blog/site somehow! I genuinely had looked through all the files but evidently just missed it.

    Apologies andrea_r for earlier post; I was really frustrated - seems a little quiet round here, I'll log in more often and see if I can help out on anything.

    Glad you're sorted too hauruapai :).

Topic Closed

This topic has been closed to new replies.

About this Topic