Sukelius Magazine 0.1.3


This theme is a parent theme for WordPress.

This theme is a parent theme. All modification should be made via a child theme.

Features

Sukelius Magazine is built from the rock-solid Hybrid Core theme framework, so it provides a great starting point with many useful features.

Child themes

Since Sukelius Magazine is a parent theme, you'll want to create a child theme if you plan on making any customizations. Don't know how to make a child theme? It's relatively simple. Just follow the steps below, or download Sukelius Magazine Child Theme.

/**
 * Theme Name: Sukelius Magazine Child
 * Theme URI: http://link-to-your-site.com
 * Description: Describe what your theme should be like.
 * Version: 0.1
 * Author: Your Name
 * Author URI: http://link-to-your-site.com
 * Tags: Add, Whatever, Tags, You, Want
 * Template: sukelius-magazine
 */

This will give you a blank design. You'll probably want to import Sukelius Magazine parent theme style, so just add this to your new style.css:

@import url( '../sukelius-magazine/style.css' );

/* Custom code goes below here. */

Note that child themes are now the officially-supported way of modifying themes in WordPress. See more about Child Themes at the Codex.

Functions.php

With child themes, it's not only about changing CSS. You can do far more then that, like adding and removing HTML, custom PHP functions, scripts etc... That's why there is functions.php.

add_action( 'after_setup_theme', 'sukelius_child_theme_setup', 11 );
 
function sukelius_child_theme_setup() {

	/* Get the theme prefix. */
	$prefix = hybrid_get_prefix();
	
	/* All actions and filters go here. */ 

}	

Example

add_action( 'after_setup_theme', 'sukelius_child_theme_setup', 11 );
 
function sukelius_child_theme_setup() {

	/* Get the theme prefix. */
	$prefix = hybrid_get_prefix();
	
	add_action( "{$prefix}_header", 'add_html_to_header' );
} 

function add_html_to_header() {
	echo 'This text is in header!';
}

You might be asking yourself what's this {$prefix}_header?! That's the hook, a "place" in theme where your code will appear. Great thing is that this theme comes with hooks on every opened, and closed div, wherever possible. For example, open up header.php. Look for this:

<?php do_atomic( 'open_body' ); // sukelius_open_body ?>

This is the first hook in theme. If you want you can add custom text, or HTML to it, just replace "{$prefix}_header" with "{$prefix}_open_body" in the code given above.

There is a lot's of hooks in theme, so just go ahead and open one of the files in theme (header.php, index.php, content.php, footer.php etc...) and see the names of the hooks. Then just add code you want.

Just to be super clear, here's one more example.

Example 2

add_action( 'after_setup_theme', 'sukelius_child_theme_setup', 11 );
 
function sukelius_child_theme_setup() {

	/* Get the theme prefix. */
	$prefix = hybrid_get_prefix();
	
	add_action( "{$prefix}_after_footer", 'add_html_to_footer' );
} 

function add_html_to_footer() {
	echo '<div id="after-footer">This appears after the footer!</div>';
}

All actions add_action must be defined INSIDE sukelius_child_theme_setup() function, and all your callback functions (example: add_html_to_footer()) are going OUTSIDE sukelius_child_theme_setup() function.

Notes

This theme has a very specific header design. The site title, description, and Primary and Secondary nav menus have limited widths. Because it's impossible to know everyone's title, description, and menu items, you'll have to configure these items based on your unique needs. Some people may not be able to use as many menu items in the Primary nav menu as others because of the social icons.

If you want custom header background image, that image will not replace site title, it will appear only as background-image and it won't be linked to your home page.

If content slider enabled, custom body backround image (or color) will appear bellow slider. If you want to change slider background color, you'll need to use child theme.

Theme Settings - Appearance / Theme Settings

General Settings

Sukelius Magazine comes with 6 predefined layouts, and you can set them individually for each post, or page in post editor. Here's the list:

Second option is to enable / disable content slider. To add posts to content slider - just make them "sticky", and set featured image (940x385) for that post. After you upload image, select sukelius-slider-image under Sizes: in uploader. If image is bigger, theme will resize it.

Slider specific note:
If you don't have featured image set for the sticky post - default slider image will appear. So, make sure you set featured image to avoid this.

Social Networks

Here you can set up few links to your social profiles (Facebook, Twitter, Pinterest, and RSS URL). Please include http:// in all URL's, or it won't work as it should. If you don't wan't some icon to show in Primary menu, just delete URL from input field.

Footer settings

Change your footer text.

Credits:

Theme support

Support for the Sukelius Magazine theme is not offered on the WordPress support forums. There is a community called Theme Hybrid where support is offered for this theme. You are encouraged to sign up to the site to use its support forums and become a part of the community.

Copyright & license

Sukelius Magazine Wordpress theme is licensed under the GNU General Public License, version 2 (GPL). Theme is distributed under the terms of the GNU GPL.

This theme is copyrighted to ThemesBros.

2011 – 2012 © ThemesBros.com.