Creating a child theme

    Posted by on Aug 28, 2015 in Quick Tutorials, Themes, WordPress |

    If you want to make significant changes to your theme, creating a WordPress child theme is key to managing a WordPress site without maintenance headaches. Why a child theme?  It creates a safe update resistant place to keep your changes.  It is true: Many current WordPress themes, including one of our favourites – Divi, have some means of adding custom css. There are WordPress plugins for adding custom css to your site that could be used for adding theme css. But what about changes to the theme structure, like adding/changing copyright notices and messages in the footer? You can’t do those properly with a css change, you need to change the theme files.  If you edit the theme files directly, you will loose the edits when the theme updates.  A child theme solves that problem. It’s really easy to make a child theme, it’s only 2 files in a folder. You need a folder named for your theme, lowercase, words connected by hyphens by convention. Lets use “my-theme” as the folder name for the example, but it can be anything you want. In that folder you need to create 2 files: A file called “style.css”. A file called “functions.php” style.css should contain the following header, at the start of the file: Only the Theme Name and the Template are required. The template is the FOLDER name of the parent theme and is case sensitive, in this case it’s set to Divi. Edit or delete the lines in the header as required. CSS /* Theme Name: My Theme Theme URI: http://the-URL-to-your-theme-source.address --This is mostly for developers. Description: Description of your theme Version: 0.0.1 Author: Your name Author URI: http://your-web.address --Again this is mostly for developers Author email: your@email.address Copyright: Your name or company that holds the copyright to this theme --Also, mostly for developers Template: Divi */ /* Add your custom CSS here */ /* ************************ */ 1234567891011121314 /*Theme Name: My ThemeTheme URI: http://the-URL-to-your-theme-source.address  --This is mostly for developers.Description:    Description of your themeVersion: 0.0.1Author:         Your nameAuthor URI:     http://your-web.address  --Again this is mostly for developersAuthor email:   your@email.addressCopyright: Your name or company that holds the copyright to this theme --Also, mostly for developersTemplate:       Divi*/ /* Add your custom CSS here *//* ************************ */ functions.php should contain the following, at the start of the file: The add action and the function load the parent style.css.  If you don’t want the parent style.css, just delete that code. PHP <?php /* See style.css header for theme details */ add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } /* add your custom theme functions here */ /* ************************************ */ 12345678910 <?php/* See style.css header for theme details */ add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );} /* add your custom theme functions here *//* ************************************ */ That is all you really need to get started, but you can find a lot more detail...

    Read More

    WordPress 4.3 released

    Posted by on Aug 20, 2015 in Releases, WordPress |

    WordPress Version 4.3, named after jazz musician Billie Holiday, has just been released.   The main focus of this release was making it even easier to format your content and customize your site. Some things they added/changed for 4.3 include: Improving the way that passwords are chosen and changed. Site Icons (favicons) that work out of the box, are theme independent, and do not require theme support. Multisite improvements Comments are now turned off on pages and custom post types by default. The singular.php theme template has been added to the Template Hierarchy. Changes to Customizer Panels and Sections PHP4 style constructors are deprecated See the full release notes for a complete list of...

    Read More

    LumosTech Course Launch

    Posted by on Jan 9, 2015 in Lumos Tech News, WordPress |

    We are planning to open with new courses this spring! March 24, 2015 is Introduction to WordPress for Content Creators.  Following that will be Customizing WordPress Themes, and a 2-day, Build Your Own Website Workshop. Join our mailing list to get updated on future course dates. All courses will be offered with special introductory...

    Read More

    WordCamp Montreal 2014

    Posted by on Aug 7, 2014 in WordCamp, WordPress |

    WordCamp Montreal 2014 is in 1 week, $40 for 39 informative sessions on WordPress topics ranging from basics like choosing plugins, to developer topics like Advanced Customizer Usage, and the WordPress database schema.  Plus so much more, including lunch and cool swag!  If you are going to be in Monteal on the 16th and 17th, drop by and learn more about WordPress. Rick will be presenting Backing up your WordPress website – it’s not optional a talk that will look at the many options and plugins for backing up your WordPress site including backing up to Amazon...

    Read More

    LumosTech at WordCamp Ottawa 2014

    Posted by on Apr 27, 2014 in WordCamp, WordPress |

    Jasmine and Rick of LumosTech are presenting Introduction to WordPress for WordCamp Ottawa.  It’s a 3 hr crash course on WordPress to get WordCampers new to WordPress up to speed on the terms and concepts of WordPress. $5, Thur May 1,...

    Read More