Support » Networking WordPress » Business Card creator

  • hi,
    i’m looking system that builds Business Cards like the multisite .
    The intention in presentation card is one-page website with photo gallery, slideshow and few buttons.
    and each time i want to create “new card”, i’m doing it as the multisite (create new site).
    Is this something that WordPress can offer a solution?
    thanks

Viewing 1 replies (of 1 total)
  • Absolutely!

    You might want to look into the multisite cloner plugin https://wordpress.org/plugins/multisite-cloner/ which allows you to make a copy of an existing site at will.

    To customise what happens when you click “create new site”, there are a number of things you can do when creating a new multisite installation by hooking into the wpmu_new_blog action hook.

    See: https://codex.wordpress.org/Plugin_API/Action_Reference/wpmu_new_blog

    To edit the “Create new site screen”, unfortunately you’re going to have to resort to a bit hacking via jquery or something similar with the admin_footer hook. Here’s an example of adding a field to the screen:

    
    /**
     * Add a card size selection for the site-new.php screen 
     */
    add_action( "admin_footer-site-new.php", 'my_custom_wpmu_field' );
    function my_custom_wpmu_field() {
    ?>
    <script>
    (function($) {
      $(document).ready(function() {
        $('<tr class="form-field form-required"></tr>').append(
          $('<th scope="row">Card Size</th>')
        ).append(
          $('<td></td>').append(
            $('<input type="text" name="size">')
          )
        ).insertAfter('#wpbody-content table tr:eq(2)');
      });
    })(jQuery);
    </script>
    <?php
    }
    

    Hope that was helpful!

Viewing 1 replies (of 1 total)
  • The topic ‘Business Card creator’ is closed to new replies.