The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Revised by Bytes Unlimited : Feb 3rd 2020
| echo "Welcome to Create WordPress Site Wizard!" | |
| echo -n "Enter Folder Name:" | |
| read foldername | |
| echo -n "Enter Site Name:" | |
| read sitename | |
| echo "Creating Site Folder" | |
| mkdir ${foldername} | |
| cd ${foldername} |
| body { | |
| background-color: #fff; | |
| color: #333; | |
| font-family: Neuton, serif; | |
| font-size: 22px; | |
| font-weight: 300; | |
| line-height: 1.5; | |
| margin: 0; | |
| } |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Load Google Fonts | |
| add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' ); | |
| function bg_load_google_fonts() { | |
| wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700|Neuton:400', array(), CHILD_THEME_VERSION ); | |
| } |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Enqueue Dashicons | |
| add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' ); | |
| function enqueue_dashicons() { | |
| wp_enqueue_style( 'dashicons' ); | |
| } |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Remove the site footer | |
| remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); | |
| remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
| remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); | |
| //* Customize the site footer | |
| add_action( 'genesis_footer', 'bg_custom_footer' ); |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Remove the author box on archive pages | |
| remove_action( 'genesis_before_loop', 'genesis_do_author_box_archive', 15 ); |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Add featured images | |
| add_image_size( 'front-page-hero', 800, 450, TRUE ); | |
| add_image_size( 'front-page-square', 125, 125, TRUE ); | |
| add_image_size( 'front-page-thumbnail', 200, 100, TRUE ); |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Enqueue Ionicons | |
| add_action( 'wp_enqueue_scripts', 'bg_enqueue_ionicons' ); | |
| function bg_enqueue_ionicons() { | |
| wp_enqueue_style( 'ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION ); | |
| } |