Git Product home page Git Product logo

jupiter-child-theme's Introduction

Jupiter 5 Child Theme --> @goodyis

screen shot 2017-05-10 at 11 29 54 am


TAGS: Jupiter, Jupiter 5, Jupiter 5.9.2, Jupiter Child, Jupiter Child Theme, Child Theme, Wordpress, Wordpress Child Theme


Important NOTES

  • You will not receive a copy of the theme from me; do not ask.
  • I do not provide support for the parent theme, and/or customizations.
  • I am not affiliated, nor do I contract for Artbees - the maker of the Jupiter Theme.

You will need to alter the parent theme folder's function.php

  • Changes listed below

You will need to manually update any files you copy/alter to your child theme if theme gets an update

  • Depending on the theme update, you may not have to change anything.

The 'parent' theme folder is only on here, to further illustrate that you will need to alter it a tiny bit.

The 'child' theme folder is not a complete customization; it provides a foundation for working is all.


To get this base-line child-theme working you will need to do a few things:

Download the 'jupiter-child' theme folder from this repo into your wordpress project.

  • This can be done either by clicking the download button here on the repo
    • You will get the FULL zip file, you will then need either zip the child folder itself for uploading or ftp that folder
  • You could go to the release tab, and download the zip that only contains the child theme folder
    • Use this option if you intend on installing the child-theme via the wordpress GUI

AFTER a success install/copy of the child-theme into your project, edit the parent themes function.php

  • In YOUR parent theme, the following change(s) will need to be made:
    • You will need to add a check if the 'Theme' Class exists
    • You will need to ensure that you close the if statement properly

Parent Theme Changes:

  • You will want to enclose the entire class Theme { ... } in if (! class_exists('Theme')) { ... } statement

YOUR parent theme functions.php will end up looking something like this:

<?php
$theme = new Theme(true);
$theme->init(array(
    "theme_name" => "Jupiter",
    "theme_slug" => "JP",
));

if (!isset($content_width)) {
    $content_width = 1140;
}
if (! class_exists('Theme')) {
class Theme
{

    public function __construct($check = false)
    {
        if ($check) {
            $this->theme_requirement_check();
        }
    }
    .
    .
    .

     } // theme_options
} // end Theme Class
 } // end if exists
 
// for wp security
remove_action('wp_head', 'wp_generator');

screen shot 2017-05-10 at 11 38 13 am

screen shot 2017-05-10 at 11 37 46 am

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.