<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>One Designs</title>
	<atom:link href="https://onedesigns.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://onedesigns.com</link>
	<description>Beautiful and usable WordPress Themes</description>
	<lastBuildDate>Mon, 24 May 2021 21:52:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">17237308</site>	<item>
		<title>One User Avatar</title>
		<link>https://onedesigns.com/plugins/one-user-avatar/</link>
					<comments>https://onedesigns.com/plugins/one-user-avatar/#respond</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Thu, 20 May 2021 17:32:18 +0000</pubDate>
				<category><![CDATA[Plugins]]></category>
		<guid isPermaLink="false">https://onedesigns.com/?p=23900</guid>

					<description><![CDATA[Use any image from your WordPress Media Library as a custom user avatar or user profile picture. Add your own Default Avatar. Fork of WP User Avatar v2.2.16.]]></description>
										<content:encoded><![CDATA[<p class="lead">Use any image from your WordPress Media Library as a custom user avatar or user profile picture. Add your own Default Avatar.</p>
<p style="display: flex;"><a href="https://onedesigns.com/download/one-user-avatar.zip" class="btn btn-success" style="margin-left: auto; margin-right: auto;">Download</a></p>
<p>WordPress currently only allows you to use custom avatars that are uploaded through <a href="http://gravatar.com/">Gravatar</a>. <strong>One User Avatar</strong> enables you to use any photo uploaded into your Media Library as an avatar. This means you use the same uploader and library as your posts. No extra folders or image editing functions are necessary. This plugin is a fork of WP User Avatar v2.2.16.</p>
<p><strong>One User Avatar</strong> also lets you:</p>
<ul>
<li>Upload your own Default Avatar in your One User Avatar settings.</li>
<li>Show the user&#8217;s <a href="http://gravatar.com/">Gravatar</a> avatar or Default Avatar if the user doesn&#8217;t have a One User Avatar image.</li>
<li>Disable <a href="http://gravatar.com/">Gravatar</a> avatars and use only local avatars.</li>
<li>Use the <code>[avatar_upload]</code> shortcode to add a standalone uploader to a front page or widget. This uploader is only visible to logged-in users.</li>
<li>Use the <code>[avatar]</code> shortcode in your posts. These shortcodes will work with any theme, whether it has avatar support or not.</li>
<li>Allow Contributors and Subscribers to upload their own avatars.</li>
<li>Limit upload file size and image dimensions for Contributors and Subscribers.</li>
</ul>
<h2 id="installation">Installation</h2>
<ol>
<li>Download, install, and activate the One User Avatar plugin.</li>
<li>On your profile edit page, click &#8220;Edit Image&#8221;.</li>
<li>Choose an image, then click &#8220;Select Image&#8221;.</li>
<li>Click &#8220;Update Profile&#8221;.</li>
<li>Upload your own Default Avatar in your One User Avatar settings (optional). You can also allow Contributors &#038; Subscribers to upload avatars and disable Gravatar.</li>
<li>Choose a theme that has avatar support. In your theme, manually replace <code>get_avatar</code> with <code>get_wp_user_avatar</code> or leave <code>get_avatar</code> as-is. <a href="#faq">Read about the differences here</a>.</li>
<li>You can also use the <code>[avatar_upload]</code> and <code>[avatar]</code> shortcodes in your posts. These shortcodes will work with any theme, whether it has avatar support or not.</li>
</ol>
<h2 id="example">Example Usage</h2>
<h3>Posts</h3>
<p>Within <a href="http://codex.wordpress.org/The_Loop">The Loop</a>, you may be using:</p>
<pre>&lt;?php echo get_avatar(get_the_author_meta('ID'), 96); ?&gt;</pre>
<p>Replace this function with:</p>
<pre>&lt;?php echo get_wp_user_avatar(get_the_author_meta('ID'), 96); ?&gt;</pre>
<p>You can also use the values &#8220;original&#8221;, &#8220;large&#8221;, &#8220;medium&#8221;, or &#8220;thumbnail&#8221; for your avatar size:</p>
<pre>&lt;?php echo get_wp_user_avatar(get_the_author_meta('ID'), 'medium'); ?&gt;</pre>
<p>You can also add an alignment of &#8220;left&#8221;, &#8220;right&#8221;, or &#8220;center&#8221;:</p>
<pre>&lt;?php echo get_wp_user_avatar(get_the_author_meta('ID'), 96, 'left'); ?&gt;</pre>
<h3>Author Page</h3>
<p>On an author page outside of <a href="http://codex.wordpress.org/The_Loop">The Loop</a>, you may be using:</p>
<pre>&lt;?php
	$user = get_user_by( 'slug', $author_name );
	echo get_avatar( $user->ID, 96 );
?&gt;</pre>
<p>Replace this function with:</p>
<pre>&lt;?php
	$user = get_user_by( 'slug', $author_name );
	echo get_wp_user_avatar( $user->ID, 96 );
?&gt;</pre>
<p>If you leave the options blank, One User Avatar will detect whether you&#8217;re inside <a href="http://codex.wordpress.org/The_Loop">The Loop</a> or on an author page and return the correct avatar in the default 96&#215;96 size:</p>
<pre>&lt;?php echo get_wp_user_avatar(); ?&gt;</pre>
<p>The function <code>get_wp_user_avatar</code> can also fall back to <code>get_avatar</code> if there is no One User Avatar image. For this to work, &#8220;Show Avatars&#8221; must be checked in your One User Avatar settings. When this setting is enabled, you will see the user&#8217;s <a href="http://gravatar.com/">Gravatar</a> avatar or Default Avatar.</p>
<h3>Comments</h3>
<p>For comments, you might have in your template:</p>
<pre>&lt;?php echo get_avatar($comment, 32); ?&gt;</pre>
<p>Replace this function with:</p>
<pre>&lt;?php echo get_wp_user_avatar($comment, 32); ?&gt;</pre>
<p>For comments, you must specify the $comment variable.</p>
<h2>Other Available Functions</h2>
<h3>[avatar_upload] shortcode</h3>
<p>You can use the <code>[avatar_upload]</code> shortcode to add a standalone uploader to a front page or widget. This uploader is only visible to logged-in users.</p>
<p>You can specify a user with the shortcode, but you must have <code>edit_user</code> capability for that particular user.</p>
<pre>[avatar_upload user="admin"]</pre>
<h3>[avatar] shortcode</h3>
<p>You can use the <code>[avatar]</code> shortcode in your posts. It will detect the author of the post or you can specify an author by username. You can specify a size, alignment, and link, but they are optional. For links, you can link to the original image file, attachment page, or a custom URL.</p>
<pre>[avatar user="admin" size="medium" align="left" link="file" /]</pre>
<p>You can also add a caption to the shortcode:</p>
<pre>[avatar user="admin" size="medium" align="left" link="file"]Photo Credit: Your Name[/avatar]</pre>
<p><strong>Note:</strong> If you are using one shortcode without a caption and another shortcode with a caption on the same page, you must close the caption-less shortcode with a forward slash before the closing bracket: <code>[avatar /]</code> instead of <code>[avatar]</code></p>
<h3>get_wp_user_avatar_src</h3>
<p>Works just like <code>get_wp_user_avatar</code> but returns just the image src. This is useful if you would like to link a thumbnail-sized avatar to a larger version of the image:</p>
<pre>&lt;a href="&lt;?php echo get_wp_user_avatar_src( $user_id, 'large' ); ?&gt;"&gt;
	&lt;?php echo get_wp_user_avatar( $user_id, 'thumbnail' ); ?&gt;
&lt;/a&gt;</pre>
<h3>has_wp_user_avatar</h3>
<p>Returns true if the user has a One User Avatar image. You must specify the user ID:</p>
<pre>&lt;?php
	if ( has_wp_user_avatar( $user_id ) ) {
		echo get_wp_user_avatar( $user_id, 96 );
	} else {
		echo '&lt;img src="my-alternate-image.jpg" /&gt;';
	}
?&gt;</pre>
<h2 id="faq">Frequently Asked Questions</h2>
<h3>How do I use One User Avatar?</h3>
<p>First, choose a theme that has avatar support. In your theme, you have a choice of manually replacing <code>get_avatar</code> with <code>get_wp_user_avatar</code>, or leaving <code>get_avatar</code> as-is. Here are the differences:</p>
<h4>get_wp_user_avatar</h4>
<p>1. Allows you to use the values &#8220;original&#8221;, &#8220;large&#8221;, &#8220;medium&#8221;, or &#8220;thumbnail&#8221; for your avatar size.<br />
2. Doesn&#8217;t add a fixed width and height to the image if you use the aforementioned values. This will give you more flexibility to resize the image with CSS.<br />
3. Allows you to use custom image sizes registered with [<code>add_image_size</code>](http://codex.wordpress.org/Function_Reference/add_image_size) (fixed width and height are added to the image).<br />
4. Optionally adds CSS classes &#8220;alignleft&#8221;, &#8220;alignright&#8221;, or &#8220;aligncenter&#8221; to position your avatar.<br />
5. Shows nothing if the user has no One User Avatar image.<br />
6. Shows the user&#8217;s <a href="http://gravatar.com/">Gravatar</a> avatar or Default Avatar only if &#8220;Show Avatars&#8221; is enabled in your One User Avatar settings.</p>
<h4>get_avatar</h4>
<p>1. Requires you to enable &#8220;Show Avatars&#8221; in your One User Avatar settings to show any avatars.<br />
2. Accepts only numeric values for your avatar size.<br />
3. Always adds a fixed width and height to your image. This may cause problems if you use responsive CSS in your theme.<br />
4. Shows the user&#8217;s <a href="http://gravatar.com/">Gravatar</a> avatar or Default Avatar if the user doesn&#8217;t have a One User Avatar image. (Choosing &#8220;Blank&#8221; as your Default Avatar still generates a transparent image file.)<br />
5. Requires no changes to your theme files if you are currently using <code>get_avatar</code>.</p>
<p><a href="http://codex.wordpress.org/Function_Reference/get_avatar">Read more about get_avatar in the WordPress Function Reference</a>.</p>
<h3>Can I create a custom Default Avatar?</h3>
<p>In your One User Avatar settings, you can upload your own Default Avatar.</p>
<h3>Can I disable all Gravatar avatars?</h3>
<p>In your One User Avatar settings, you can select &#8220;Disable Gravatar — Use only local avatars&#8221; to disable all <a href="http://gravatar.com/">Gravatar</a> avatars on your site and replace them with your Default Avatar. This will affect your registered users and non-registered comment authors.</p>
<h3>Can Contributors or Subscribers choose their own One User Avatar image?</h3>
<p>Yes, if you enable &#8220;Allow Contributors &#038; Subscribers to upload avatars&#8221; in the One User Avatar settings. These users will see a slightly different interface because they are allowed only one image upload.</p>
<h3>Will One User Avatar work with comment author avatars?</h3>
<p>Yes, for registered users. Non-registered comment authors will show their <a href="http://gravatar.com/">Gravatar</a> avatars or Default Avatar.</p>
<h3>Will One User Avatar work with bbPress?</h3>
<p>Yes!</p>
<h3>Will One User Avatar work with BuddyPress?</h3>
<p>No, BuddyPress has its own custom avatar functions and One User Avatar will override only some of them. It&#8217;s best to use BuddyPress without One User Avatar.</p>
<h3>How can I see which users have an avatar?</h3>
<p>For Administrators, One User Avatar adds a column with avatar thumbnails to your Users list table. If &#8220;Show Avatars&#8221; is enabled in your One User Avatar settings, you will see avatars to the left of each username instead of in a new column.</p>
<h3>Can I use the One User Avatar uploader in a front page or widget?</h3>
<p>Yes, you can use the <code>[avatar_upload]</code> shortcode to put a standalone uploader in a front page or widget. This uploader is only visible to logged-in users..</p>
<p>You can specify a user with the shortcode, but you must have <code>'edit_user'</code> capability to change the user&#8217;s avatar.</p>
<pre>[avatar_upload user="admin"]</pre>
<h3>Can I insert One User Avatar directly into a post?</h3>
<p>You can use the <code>[avatar]</code> shortcode in your posts. It will detect the author of the post or you can specify an author by username. You can specify a size, alignment, and link, but they are optional. For links, you can link to the original image file, attachment page, or a custom URL.</p>
<pre>[avatar user="admin" size="96" align="left" link="file" /]</pre>
<p>Outputs:</p>
<pre>&lt;a href="{fileURL}" class="wp-user-avatar-link wp-user-avatar-file"&gt;
	&lt;img src="{imageURL}" width="96" height="96" class="wp-user-avatar wp-user-avatar-96 alignleft" /&gt;
&lt;/a&gt;</pre>
<p>If you have a caption, the output will be similar to how WordPress adds captions to other images.</p>
<pre>[avatar user="admin" size="96" align="left" link="file"]Photo Credit: Your Name[/avatar]</pre>
<p>Outputs:</p>
<pre>&lt;div style="width: 106px" class="wp-caption alignleft"&gt;
	&lt;a href="{fileURL}" class="wp-user-avatar-link wp-user-avatar-file"&gt;
		&lt;img src="{imageURL}" width="96" height="96" class="wp-user-avatar wp-user-avatar-96" /&gt;
	&lt;/a&gt;
	&lt;p class="wp-caption-text">Photo Credit: Your Name&lt;/p&gt;
&lt;/div&gt;</pre>
<p><strong>Note:</strong> If you are using one shortcode without a caption and another shortcode with a caption on the same page, you must close the caption-less shortcode with a forward slash before the closing bracket: <code>[avatar /]</code> instead of <code>[avatar]</code></p>
<h3>What CSS can I use with One User Avatar?</h3>
<p>One User Avatar will add the CSS classes &#8220;wp-user-avatar&#8221; and &#8220;wp-user-avatar-{size}&#8221; to your image. If you add an alignment, the corresponding alignment class will be added:</p>
<pre>&lt;?php echo get_wp_user_avatar($user_id, 96, 'left'); ?&gt;</pre>
<p>Outputs:</p>
<pre>&lt;img src="{imageURL}" width="96" height="96" class="wp-user-avatar wp-user-avatar-96 alignleft" /&gt;</pre>
<p><strong>Note:</strong> &#8220;alignleft&#8221;, &#8220;alignright&#8221;, and aligncenter&#8221; are common WordPress CSS classes, but not every theme supports them. Contact the theme author to add those CSS classes.</p>
<p>If you use the values &#8220;original&#8221;, &#8220;large&#8221;, &#8220;medium&#8221;, or &#8220;thumbnail&#8221;, no width or height will be added to the image. This will give you more flexibility to resize the image with CSS:</p>
<pre>&lt;?php echo get_wp_user_avatar($user_id, 'medium'); ?&gt;</pre>
<p>Outputs:</p>
<pre>&lt;img src="{imageURL}" class="wp-user-avatar wp-user-avatar-medium" /&gt;</pre>
<p>Note: WordPress adds more CSS classes to the avatar not listed here.</p>
<p>If you use the <code>[avatar]</code> shortcode, One User Avatar will add the CSS class &#8220;wp-user-avatar-link&#8221; to the link. It will also add CSS classes based on link type.</p>
<ul>
<li>Image File: wp-user-avatar-file</li>
<li>Attachment: wp-user-avatar-attachment</li>
<li>Custom URL: wp-user-avatar-custom</li>
</ul>
<pre>[avatar user="admin" size="96" align="left" link="attachment" /]</pre>
<p>Outputs:</p>
<pre>&lt;a href="{attachmentURL}" class="wp-user-avatar-link wp-user-avatar-attachment"&gt;
	&lt;img src="{imageURL}" width="96" height="96" class="wp-user-avatar wp-user-avatar-96 alignleft" /&gt;
&lt;/a&gt;</pre>
<h3>What other functions are available for One User Avatar?</h3>
<ul>
<li><code>get_wp_user_avatar_src</code>: retrieves just the image URL</li>
<li><code>has_wp_user_avatar</code>: checks if the user has a One User Avatar image</li>
<li><a href="#example">See example usage here</a></li>
</ul>
<h2>Advanced Settings</h2>
<h3>Add One User Avatar to your own profile edit page</h3>
<p>You can use the [avatar_upload] shortcode to add a standalone uploader to any page. It&#8217;s best to use this uploader by itself and without other profile fields.</p>
<p>If you&#8217;re building your own profile edit page with other fields, One User Avatar is automatically added to the <code><a href="http://codex.wordpress.org/Plugin_API/Action_Reference/show_user_profile">show_user_profile</a></code> and <code><a href="http://codex.wordpress.org/Plugin_API/Action_Reference/show_user_profile">edit_user_profile</a></code> hooks. If you&#8217;d rather have One User Avatar in its own section, you could add another hook:</p>
<pre>do_action( 'edit_user_avatar', $current_user );</pre>
<p>Then, to add One User Avatar to that hook and remove it from the other hooks outside of the administration panel, you would add this code to the <code>functions.php</code> file of your theme:</p>
<pre>function my_avatar_filter() {
	// Remove from show_user_profile hook
	remove_action( 'show_user_profile', array( 'wp_user_avatar', 'wpua_action_show_user_profile' ) );
	remove_action( 'show_user_profile', array( 'wp_user_avatar', 'wpua_media_upload_scripts' ) );

	// Remove from edit_user_profile hook
	remove_action( 'edit_user_profile', array( 'wp_user_avatar', 'wpua_action_show_user_profile' ) );
	remove_action( 'edit_user_profile', array( 'wp_user_avatar', 'wpua_media_upload_scripts' ) );

	// Add to edit_user_avatar hook
	add_action( 'edit_user_avatar', array( 'wp_user_avatar', 'wpua_action_show_user_profile' ) );
	add_action( 'edit_user_avatar', array( 'wp_user_avatar', 'wpua_media_upload_scripts' ) );
}

// Loads only outside of administration panel
if ( ! is_admin() ) {
	add_action( 'init','my_avatar_filter' );
}</pre>
<h2>HTML Wrapper</h2>
<p>You can change the HTML wrapper of the One User Avatar section by using the functions <code>wpua_before_avatar</code> and <code>wpua_after_avatar</code>. By default, the avatar code is structured like this:</p>
<pre>&lt;div class="wpua-edit-container"&gt;
	&lt;h3>Avatar&lt;/h3&gt;
	&lt;input type="hidden" name="wp-user-avatar" id="wp-user-avatar" value="{attachmentID}" /&gt;
	&lt;p id="wpua-add-button"&gt;
		&lt;button type="button" class="button" id="wpua-add" name="wpua-add"&gt;Edit Image&lt;/button&gt;
	&lt;/p&gt;
	&lt;p id="wpua-preview"&gt;
		&lt;img src="{imageURL}" alt="" /&gt;
		Original Size
	&lt;/p&gt;
	&lt;p id="wpua-thumbnail"&gt;
		&lt;img src="{imageURL}" alt="" /&gt;
		Thumbnail
	&lt;/p&gt;
	&lt;p id="wpua-remove-button"&gt;
		&lt;button type="button" class="button" id="wpua-remove" name="wpua-remove"&gt;Default Avatar&lt;/button&gt;
	&lt;/p&gt;
	&lt;p id="wpua-undo-button"&gt;
		&lt;button type="button" class="button" id="wpua-undo" name="wpua-undo"&gt;Undo&lt;/button&gt;
	&lt;/p&gt;
&lt;/div&gt;</pre>
<p>To strip out the div container and h3 heading, you would add the following filters to the <code>functions.php</code> file in your theme:</p>
<pre>remove_action( 'wpua_before_avatar', 'wpua_do_before_avatar' );
remove_action( 'wpua_after_avatar', 'wpua_do_after_avatar' );</pre>
<p>To add your own wrapper, you could create something like this:</p>
<pre>function my_before_avatar() {
	echo '&lt;div id="my-avatar"&gt;';
}
add_action( 'wpua_before_avatar', 'my_before_avatar' );

function my_after_avatar() {
	echo '&lt;/div&gt;';
}
add_action( 'wpua_after_avatar', 'my_after_avatar' );</pre>
<p>This would output:</p>
<pre>&lt;div id="my-avatar"&gt;
	&lt;input type="hidden" name="wp-user-avatar" id="wp-user-avatar" value="{attachmentID}" /&gt;
	&lt;p id="wpua-add-button"&gt;
		&lt;button type="button" class="button" id="wpua-add" name="wpua-add"&gt;Edit Image&lt;/button&gt;
	&lt;/p&gt;
	&lt;p id="wpua-preview"&gt;
		&lt;img src="{imageURL}" alt="" /&gt;
		&lt;span class="description"&gt;Original Size&lt;/span&gt;
	&lt;/p&gt;
	&lt;p id="wpua-thumbnail"&gt;
		&lt;img src="{imageURL}" alt="" /&gt;
		&lt;span class="description"&gt;Thumbnail&lt;/span&gt;
	&lt;/p&gt;
	&lt;p id="wpua-remove-button"&gt;
		&lt;button type="button" class="button" id="wpua-remove" name="wpua-remove"&gt;Default Avatar&lt;/button&gt;
	&lt;/p&gt;
	&lt;p id="wpua-undo-button"&gt;
		&lt;button type="button" class="button" id="wpua-undo" name="wpua-undo"&gt;Undo&lt;/button&gt;
	&lt;/p&gt;
&lt;/div&gt;</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/plugins/one-user-avatar/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">23900</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Deconstructing the Theme Demo Home Page</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-theme-demo-home-page/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-theme-demo-home-page/#comments</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Tue, 18 Nov 2014 17:40:13 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">https://onedesigns.com/?p=19658</guid>

					<description><![CDATA[With Enlightenment Theme you can create advanced and flexible page layouts where you can showcase any type of content by using tools that go beyond the WordPress post editor. After we have documented the purpose and usage of the template builder tools it&#8217;s time to deconstruct a practical example of a custom built landing page. &#8230; <a href="https://onedesigns.com/tutorials/enlightenment-documentation-theme-demo-home-page/">Keep Reading &#8594;</a>]]></description>
										<content:encoded><![CDATA[<p class="lead">With <a href="https://onedesigns.com/themes/enlightenment">Enlightenment Theme</a> you can create advanced and flexible page layouts where you can showcase any type of content by using tools that go beyond the WordPress post editor. After we have documented the purpose and usage of the template builder tools it&#8217;s time to deconstruct a practical example of a custom built landing page. In this tutorial we will present a step-by-step breakdown how to recreate the <a href="http://demo.onedesigns.com/enlightenment/">Theme&#8217;s Demo Home Page</a>.</p>
<p>This tutorial is part of the series &#8220;<a href="https://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>&#8221;. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<h2>Overwiew of the Theme Demo Home Page Architecture</h2>
<p>Enlightenment Theme&#8217;s demo home page is a static page set as <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page">front page</a> with its content highly customized. The level of customization in this page is achieved adding and removing components with the <a href="https://onedesigns.com/tutorials/enlightenment-documentation-template-editor#page-builder">Page Builder</a>, adding <a href="https://onedesigns.com/tutorials/enlightenment-documentation-custom-query-widget">Custom Query Widgets</a> to user-assigned <a href="https://onedesigns.com/tutorials/enlightenment-documentation-theme-sidebar-logic">sidebar locations</a> and integrating these components with the theme&#8217;s Grid System.</p>
<h3>Visual Breakdown of the Home Page&#8217;s Components</h3>
<p>Before we dive into details how each piece of content was created, we present you a color-coded breakdown of the home page&#8217;s components and their corresponding locations on the page. Page locations (mostly sidebars) are in a lighter color and numbered with a black bullet and components (mostly custom query widgets) are highlighted in a darker color and numbered with a white bullet:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-home-page-breakdown-640x2596.jpg 1x, https://onedesigns.com/media/enlightenment-home-page-breakdown.jpg 2x" alt="Enlightenment Home Page Breakdown" width="1280" height="5191" class="alignnone size-full wp-image-19673" /></p>
<ol>
<li style="color: #93c47d;">Navbar
<ol style="color: #555;">
<li>Site Logo and Title</li>
<li>Site Navigation</li>
<li>Navbar Sidebar: Search Widget</li>
</ol>
</li>
<li style="color: #e06666;">Full Screen Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Slider, Multiple Pages</li>
</ol>
</li>
<li style="color: #6fa8dc;">Header Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
<li>Custom Query Widget: 3 Columns, Multiple Pages</li>
</ol>
</li>
<li style="color: #f1c232;">Secondary Header Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
</ol>
</li>
<li style="color: #8e7cc3;">Main Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
</ol>
</li>
<li style="color: #93c47d;">Secondary Main Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: 3 Columns, Portfolio Post Type</li>
</ol>
</li>
<li style="color: #e06666;">Content Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
</ol>
</li>
<li style="color: #6fa8dc;">Secondary Content Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
</ol>
</li>
<li style="color: #f1c232;">Page Content</li>
<li style="color: #8e7cc3;">After Content Sidebar, 2 Columns
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
<li>Custom Query Widget: Image Gallery, 1 leading post</li>
</ol>
</li>
<li style="color: #93c47d;">Secondary After Content Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Single Page</li>
</ol>
</li>
<li style="color: #e06666;">After Main Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: 4 Columns, Multiple Pages</li>
</ol>
</li>
<li style="color: #6fa8dc;">Secondary After Main Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: 2 Columns, Multiple Pages</li>
</ol>
</li>
<li style="color: #f1c232;">Footer Sidebar, 1 Column
<ol style="color: #555;">
<li>Custom Query Widget: Carousel, Image Gallery</li>
</ol>
</li>
<li style="color: #8e7cc3;">Secondary Footer Sidebar, 4 Columns
<ol style="color: #555;">
<li>Recent Posts Widget</li>
<li>Recent Comments Widget</li>
<li>Recent Posts Widget</li>
<li>Recent Comments Widget</li>
</ol>
</li>
</ol>
<h2>Walkthrough of the Home Page Creation Process</h2>
<p>In the following we will go into detail about how to create and configure the static front page and the content for each of the page&#8217;s components, how toset up the required sidebar locations and add the corresponding widgets.</p>
<h3>Creating a New Page</h3>
<p>To create a new page go to <strong>Pages &rarr; Add New</strong>. You can give the page any title as we will remove the title from the page in the next step. The page title will still appear in the browser tab and search engine results unless you override it with a SEO plugin like <a href="https://wordpress.org/plugins/wordpress-seo/">WordPress SEO by Yoast</a> or <a href="https://wordpress.org/plugins/all-in-one-seo-pack/">All-in-one SEO Pack</a>. We&#8217;ll just call our page &#8220;Home&#8221;.</p>
<p><img srcset="https://onedesigns.com/media/add-new-page-640x400.jpg 1x, https://onedesigns.com/media/add-new-page.jpg 2x" alt="Add New Page" width="1280" height="800" class="alignnone size-full wp-image-19681" /></p>
<h4>Adding Content to Page</h4>
<p>Besides content that is dynamically added via widget areas, content created via the WordPress text editor can also be displayed on the page or you can remove the page&#8217;s content via the Page Builder and generate the page exclusively through widget areas. Almost any piece of content can be added through the text editor and for consistency reasons we have selected a central page section so all available sidebars can be used:</p>
<p><img srcset="https://onedesigns.com/media/custom-page-content-640x400.jpg 1x, https://onedesigns.com/media/custom-page-content.jpg 2x" alt="Custom Page Content" width="1280" height="800" class="alignnone size-full wp-image-19700" /></p>
<p>The content&#8217;s headline is styled as &#8220;Heading 3&#8221; and aligned to center via the editor.</p>
<p>The leading text is added via the <a href="https://onedesigns.com/tutorials/enlightenment-documentation-bootstrap-shortcodes">Bootstrap Shortcodes for WordPress</a> plugin and the <code>[lead]</code> shortcode. Since this shortcode generates a paragraph we can&#8217;t manipulate its styling via the editor, so to align the text to center we have added the <code>xclass="text-center"</code> attribute to the shortcode.</p>
<p>The non-paragraph line-breaks in the text can be inserted by pressing Shift+Enter.</p>
<p>The &#8220;Read More&#8221; button was added with the <code>[button]</code> shortcode. The <code>type="default"</code> styles it with a white background and <code>size="lg"</code> makes its text larger. The <code>href="&#8230;"</code> attribute is the link the button points to. Since this shortcode does not generate a paragraph it can be aligned to center from the text editor.</p>
<p>If your preview the page at this point, you will see the default page template with the added content and the comment form:</p>
<p><img srcset="https://onedesigns.com/media/default-page-template1-640x480.jpg 1x, https://onedesigns.com/media/default-page-template1.jpg 2x" alt="Default Page Template" width="1280" height="960" class="alignnone size-full wp-image-19682" /></p>
<h3>Configuring the Static Page</h3>
<p>After you have saved the page as draft you can go ahead and apply page configurations. To give the page a more &#8220;landing page&#8221; look we will need to apply some customizations to its design.</p>
<h4>Turning off Comments</h4>
<p>The first thing you&#8217;ll want to do is turn off comments for this page. You can do this by scrolling to the bottom of the page and in the &#8220;Discussion&#8221; meta box unchecking the &#8220;Allow comments&#8221; box. You may also want to uncheck &#8220;Allow Trackbacks&#8221; to avoid any trackbacks from appearing on the page. If you don&#8217;t see the &#8220;Discussion&#8221; meta box, click on &#8220;Screen Options&#8221; in the upper right-hand corner and check &#8220;Discussion&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/turn-off-comments-640x400.jpg 1x, https://onedesigns.com/media/turn-off-comments.jpg 2x" alt="Turn off Comments" width="1280" height="800" class="alignnone size-full wp-image-19685" /></p>
<p>If you preview it now you&#8217;ll see the default page template without the comment form:</p>
<p><img srcset="https://onedesigns.com/media/page-comments-off1-640x480.jpg 1x, https://onedesigns.com/media/page-comments-off1.jpg 2x" alt="Page with Comments off" width="1280" height="640" class="alignnone size-full wp-image-19686" /></p>
<h4>Changing the Page Design</h4>
<p>For the theme&#8217;s home page we&#8217;ll be using the &#8220;Full Screen&#8221; page design instead of the &#8220;Default&#8221; page design. To do this go to the &#8220;Page Design&#8221; meta box in the right-hand column and select &#8220;Full Screen&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/change-page-design-640x400.jpg 1x, https://onedesigns.com/media/change-page-design.jpg 2x" alt="Change Page Design" width="1280" height="800" class="alignnone size-full wp-image-19689" /></p>
<p>On preview you will see the page on a white background with no borders:</p>
<p><img srcset="https://onedesigns.com/media/full-screen-page1-640x360.jpg 1x, https://onedesigns.com/media/full-screen-page1.jpg 2x" alt="Full Screen Page" width="1280" height="420" class="alignnone size-full wp-image-19691" /></p>
<h4>Removing the Page Title</h4>
<p>The page title can be removed via the Page Builder. Scroll to the bottom of the page and in the meta box &#8220;Page Builder&#8221; uncheck &#8220;Use default template hooks for page&#8221;. If you don&#8217;t see this meta box, click on &#8220;Screen Options&#8221; in the upper right-hand corner and check &#8220;Page Builder&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/enable-page-builder-640x400.jpg 1x, https://onedesigns.com/media/enable-page-builder.jpg 2x" alt="Enable Page Builder" width="1280" height="800" class="alignnone size-full wp-image-19711" /></p>
<p>Note that to be able to use the page builder tools you first need to save the page as draft.</p>
<p>For the &#8220;Entry Header&#8221; hook drag the &#8220;Post Title&#8221; function from the &#8220;Hooked Functions&#8221; column to the &#8220;Available Functions&#8221; column:</p>
<p><img loading="lazy" decoding="async" src="https://onedesigns.com/media/page-builder-remove-title.jpg" alt="Remove Title with Page Builder" width="1280" height="800" class="alignnone size-full wp-image-19710" srcset="https://onedesigns.com/media/page-builder-remove-title.jpg 1280w, https://onedesigns.com/media/page-builder-remove-title-640x400.jpg 640w, https://onedesigns.com/media/page-builder-remove-title-325x203.jpg 325w, https://onedesigns.com/media/page-builder-remove-title-650x406.jpg 650w, https://onedesigns.com/media/page-builder-remove-title-320x200.jpg 320w, https://onedesigns.com/media/page-builder-remove-title-300x187.jpg 300w" sizes="auto, (max-width: 1280px) 100vw, 1280px" /></p>
<p>If you&#8217;re editing a post with a post type different than page you may also want to remove the &#8220;Post Meta&#8221;. If you didn&#8217;t add any content to the page you&#8217;ll want to remove &#8220;The Loop&#8221; function from the &#8220;Content&#8221; hook instead.</p>
<p>Now if you preview the page you&#8217;ll see just the page content without the title:</p>
<p><img srcset="https://onedesigns.com/media/landing-page-canvas-640x275.jpg 1x, https://onedesigns.com/media/landing-page-canvas.jpg 2x" alt="Landing Page Canvas" width="1280" height="550" class="alignnone size-full wp-image-19713" /></p>
<p>Great! It&#8217;s starting to look like a landing page canvas.</p>
<h4>Changing the Page Layout</h4>
<p>The layout can be changed from the &#8220;Page Layout&#8221; meta box under the post editor. For this page we&#8217;ll use the &#8220;Full Width&#8221; layout:</p>
<p><img srcset="https://onedesigns.com/media/change-page-layout-640x400.jpg 1x, https://onedesigns.com/media/change-page-layout.jpg 2x" alt="Change Page Layout" width="1280" height="800" class="alignnone size-full wp-image-19715" /></p>
<p>Since &#8220;Full Width&#8221; is the default layout for pages, changing it is merely a precautionary measure in care you&#8217;ll ever change the default layout for pages.</p>
<p>Now we can move further to the next step and configure the widget areas.</p>
<h3>Creating Dynamic Sidebars</h3>
<p><a href="https://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained">New sidebars can be created</a> by going to <strong>Appearance &rarr; Theme Options &rarr; Sidebars</strong>. For this page we&#8217;ll be using every sidebar location except &#8220;Primary&#8221;, &#8220;Secondary&#8221;, &#8220;Navbar&#8221; and &#8220;The Loop&#8221;. To keep simple naming analogies we&#8217;ll name every sidebar like the location it corresponds to and prefix it with &#8220;Home&#8221;. So, the sidebars we&#8217;ll be creating and their number of columns are as follows:</p>
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Sidebar Name</th>
<th>Columns</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Home Full Screen</td>
<td>1 Column</td>
</tr>
<tr>
<td>2</td>
<td>Home Header</td>
<td>1 Column</td>
</tr>
<tr>
<td>3</td>
<td>Home Secondary Header</td>
<td>1 Column</td>
</tr>
<tr>
<td>4</td>
<td>Home Main</td>
<td>1 Column</td>
</tr>
<tr>
<td>5</td>
<td>Home Secondary Main</td>
<td>1 Column</td>
</tr>
<tr>
<td>6</td>
<td>Home Content</td>
<td>1 Column</td>
</tr>
<tr>
<td>7</td>
<td>Home Secondary Content</td>
<td>1 Column</td>
</tr>
<tr>
<td>8</td>
<td>Home After Content</td>
<td>2 Columns</td>
</tr>
<tr>
<td>9</td>
<td>Home Secondary After Content</td>
<td>1 Column</td>
</tr>
<tr>
<td>10</td>
<td>Home After Main</td>
<td>1 Column</td>
</tr>
<tr>
<td>11</td>
<td>Home Secondary After Main</td>
<td>1 Column</td>
</tr>
<tr>
<td>12</td>
<td>Home Footer</td>
<td>1 Column</td>
</tr>
<tr>
<td>13</td>
<td>Home Secondary Footer</td>
<td>4 Columns</td>
</tr>
</tbody>
</table>
<p>After all sidebars have been created the list should look like this:</p>
<p><img srcset="https://onedesigns.com/media/dynamic-sidebars-640x400.jpg 1x, https://onedesigns.com/media/dynamic-sidebars.jpg 2x" alt="Dynamic Sidebars" width="1280" height="800" class="alignnone size-full wp-image-19721" /></p>
<p>Don&#8217;t assign these sidebars to any sidebar locations in the global scope as we&#8217;ll use them exclusively for our home page.</p>
<h3>Assigning Dynamic Sidebars to Sidebar Locations</h3>
<p>Go back to the page editor and click on &#8220;Save Draft&#8221; to force a refresh of the page and make the newly created sidebars available. Then scroll to the bottom of the page and for the &#8220;Sidebars&#8221; meta box uncheck &#8220;Use default sidebar locations for page&#8221;. If you don&#8217;t see the &#8220;Sidebars&#8221; meta box, click on &#8220;Screen Options&#8221; in the upper right-hand corner and check &#8220;Sidebars&#8221;.</p>
<p><img srcset="https://onedesigns.com/media/enable-unlimited-sidebars-640x400.jpg 1x, https://onedesigns.com/media/enable-unlimited-sidebars.jpg 2x" alt="Enable Unlimited Sidebars" width="1280" height="800" class="alignnone size-full wp-image-19724" /></p>
<p>How you should see all sidebar locations and be able to assign the previously created dynamic sidebars to them:</p>
<p><img srcset="https://onedesigns.com/media/sidebar-locations-640x480.jpg 1x, https://onedesigns.com/media/sidebar-locations.jpg 2x" alt="Sidebar Locations" width="1280" height="960" class="alignnone size-full wp-image-19726" /></p>
<p>Go ahead and save the page as draft now so you don&#8217;t have to come back here each time after adding a widget.</p>
<h3>Generating Dynamic Page Components</h3>
<p>Now that we&#8217;ve finished setting up the page, we can move further to generating the content components that will be added to it. For this part we&#8217;ll be creating some static pages that we&#8217;ll afterwards add to the page via Custom Query Widgets.</p>
<p>Since these pages will also be accessible from their own URL it&#8217;s a good idea to instruct search engines not to index those pages. This can be done with a plugin like <a href="https://wordpress.org/plugins/wordpress-seo/">WordPress SEO</a> by going to the &#8220;Advanced&#8221; tab and setting &#8220;Meta Robots Index&#8221; to &#8220;noindex&#8221; and &#8220;Include in Sitemap&#8221; to &#8220;Never include&#8221;.</p>
<h3>Generating the Full Screen Slider</h3>
<p>The Full Screen Slider is a Custom Query Widget of multiple pages added to the &#8220;Full Screen&#8221; sidebar. The featured images will be used as the background and the pages&#8217; content will overlay on the image.</p>
<h4>Creating Content Pages</h4>
<p>First we will create 3 pages and add the corresponding featured images to them. The pages are then displayed in reverse-chronological order so you&#8217;ll want to pay attention to the order in which they&#8217;re published. You can give the pages any title as it won&#8217;t be displayed on the page.</p>
<p><img srcset="https://onedesigns.com/media/slider-page-640x580.jpg 1x, https://onedesigns.com/media/slider-page.jpg 2x" alt="Slider Page" width="1280" height="1160" class="alignnone size-full wp-image-19729" /></p>
<p>The content was made to occupy only half the width by inserting it in a 6 columns width with Bootstrap&#8217;s grid system. This is done by first wrapping in the <code>[column md="6"] &#8230; [/column]</code> shortcode and then wrapping the entire content in  <code>[row] &#8230; [/row]</code> shortcodes that are required to wrap all grid columns.</p>
<p>The <code>[button]</code> shortcode with <code>type="default"</code> attributes renders as with a transparent background and white border in the slider.</p>
<h4>Adding the Custom Query Widget</h4>
<p>After the pages have been published go to <strong>Appearance &rarr; Widgets</strong> and in the &#8220;Home Full Screen&#8221; Sidebar drag a Custom Query Widget. Under &#8220;Type&#8221; select &#8220;Slider&#8221; and under &#8220;Query&#8221; select &#8220;Multiple Pages&#8221;. Then, under &#8220;Select Pages&#8221;, check the boxes for the pages you have just created:</p>
<p><img srcset="https://onedesigns.com/media/slider-widget-640x400.jpg 1x, https://onedesigns.com/media/slider-widget.jpg 2x" alt="Slider Widget" width="1280" height="800" class="alignnone size-full wp-image-19733" /></p>
<p>Now if you preview your home page you should see the slider:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-home-slider-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-home-slider.jpg 2x" alt="Enlightenment Home Page Slider" width="1280" height="800" class="alignnone size-full wp-image-19735" /></p>
<h3>Adding multicolumn Media Components</h3>
<p><a href="http://getbootstrap.com/components/#media">Bootstrap&#8217;s Media Components</a> are content blocks with a headline and image floated to the left. You can observe 3 such components on the home page under the slider.</p>
<h4>Creating Content Pages</h4>
<p>For the media components we will create 4 pages, the first containing the headline and description of and the other 3 the media components themselves.</p>
<p>First create a page with just a headline styled as &#8220;Heading 3&#8221; and a paragraph, both aligned to the center:</p>
<p><img srcset="https://onedesigns.com/media/media-components-headline-640x400.jpg 1x, https://onedesigns.com/media/media-components-headline.jpg 2x" alt="Media Components Headline" width="1280" height="800" class="alignnone size-full wp-image-19737" /></p>
<p>Then create 3 pages that contain the media components:</p>
<p><img srcset="https://onedesigns.com/media/media-component-page-640x400.jpg 1x, https://onedesigns.com/media/media-component-page.jpg 2x" alt="Media Component Page" width="1280" height="800" class="alignnone size-full wp-image-19738" /></p>
<p>As you can see, media components need to be wrapped in the <code>[media]</code> shortcode. The image is wrapped in the <code>[media-object]</code> shortcode and the <code>pull="left"</code> instructs that the object will be floated to the left. You don&#8217;t need to align the image itself to the left. The content is wrapped in the <code>[media-body]</code> shortcode and the <code>title="&#8230;"</code> attribute denotes the content&#8217;s headline. You don&#8217;t need to add any heading inside the content.</p>
<h4>Adding the Custom Query Widgets</h4>
<p>The widgets for these components will be added in the &#8220;Home Header&#8221; sidebar. First drag a Custom Query widget for the headline and description. Under &#8220;Query&#8221; select &#8220;Single Page&#8221; and under &#8220;Page&#8221; select the title of the page you have created:</p>
<p><img srcset="https://onedesigns.com/media/media-components-headline-widget-640x400.jpg 1x, https://onedesigns.com/media/media-components-headline-widget.jpg 2x" alt="Media Components Headline Widget" width="1280" height="800" class="alignnone size-full wp-image-19742" /></p>
<p>Afterwards drag another Custom Query Widget into the same sidebar for the media components. Under &#8220;Grid&#8221; select &#8220;3 Columns&#8221;, under &#8220;Query&#8221; select &#8220;Multiple Pages&#8221; and check your pages containing the media components; then finally under &#8220;Number of leading entries&#8221; select &#8220;3&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/media-components-widget-640x400.jpg 1x, https://onedesigns.com/media/media-components-widget.jpg 2x" alt="Media Components Widget" width="1280" height="800" class="alignnone size-full wp-image-19743" /></p>
<p>Now you should be able to see the media components on the home page under the slider:</p>
<p><img srcset="https://onedesigns.com/media/home-page-media-components-640x400.jpg 1x, https://onedesigns.com/media/home-page-media-components.jpg 2x" alt="Home Page Media Components" width="1280" height="800" class="alignnone size-full wp-image-19745" /></p>
<h3>Adding the &#8220;Download Now&#8221; Call to Action</h3>
<p>The &#8220;Download Now&#8221; Call to Action is added to the &#8220;Secondary Header&#8221; sidebar which by default on pages with the &#8220;Full Screen&#8221; design displays on a light-gray background.</p>
<h4>Creating Content Page</h4>
<p>The content page for this call to action contains simply a headline and button:</p>
<p><img srcset="https://onedesigns.com/media/call-to-action-page-640x400.jpg 1x, https://onedesigns.com/media/call-to-action-page.jpg 2x" alt="Call to Action Page" width="1280" height="800" class="alignnone size-full wp-image-19752" /></p>
<p>The headline is styled as &#8220;Heading 3&#8221; and the button is added with the Bootstrap Shortcodes plugin, both aligned to center in the editor.</p>
<h4>Adding the Custom Query Widget</h4>
<p>Drag a Custom Query Widget to the &#8220;Home Secondary Header&#8221; sidebar. Under &#8220;Query&#8221; select &#8220;Single Page&#8221; and under &#8220;Page&#8221; select the page you&#8217;ve just created:</p>
<p><img srcset="https://onedesigns.com/media/call-to-action-widget-640x400.jpg 1x, https://onedesigns.com/media/call-to-action-widget.jpg 2x" alt="Call to Action Widget" width="1280" height="800" class="alignnone size-full wp-image-19754" /></p>
<p>After you save the widget&#8217;s settings you can preview the call to action on the home page:</p>
<p><img srcset="https://onedesigns.com/media/home-page-call-to-action-640x400.jpg 1x, https://onedesigns.com/media/home-page-call-to-action.jpg 2x" alt="Home Page Call to Action" width="1280" height="800" class="alignnone size-full wp-image-19756" /></p>
<h3>Adding multicolumn Portfolio Projects</h3>
<p>Since the Custom Query Widget supports querying any post type, we can present a preview of our latest projects added with the <a href="https://onedesigns.com/tutorials/enlightenment-documentation-jetpack-portfolio">Jetpack Portfolio</a> post type.</p>
<p>For this section we will need to create only one page with the headline and description similar to the step above and insert it through a Custom Query Widget in the &#8220;Home Main&#8221; Sidebar. We won&#8217;t repeat the process since it&#8217;s identical to the example we&#8217;ve already covered. Note that you can also add a title and description directly in the Custom Query Widget but you can&#8217;t customize its font size or text alignment.</p>
<p>After adding the widget for the headline and description, add another Custom Query Widget to the &#8220;Home Main Secondary&#8221; sidebar. Under &#8220;Grid&#8221; select &#8220;3 Columns&#8221;, under &#8220;Post Type&#8221; select &#8220;Project&#8221; and under both &#8220;Total number of entries&#8221; and &#8220;Number of leading entries&#8221; select &#8220;3&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/portfolio-widget-640x400.jpg 1x, https://onedesigns.com/media/portfolio-widget.jpg 2x" alt="Portfolio Widget" width="1280" height="800" class="alignnone size-full wp-image-19758" /></p>
<p>On the home page you should see your latest 3 portfolio works:</p>
<p><img srcset="https://onedesigns.com/media/home-page-portfolio-640x400.jpg 1x, https://onedesigns.com/media/home-page-portfolio.jpg 2x" alt="Home Page Portfolio" width="1280" height="800" class="alignnone size-full wp-image-19760" /></p>
<h3>Adding Content with Full Width Image</h3>
<p>Adding a full width image to the page&#8217;s content is useful if you want to showcase something that requires attention to detail like a software screenshot. In the &#8220;Full Width&#8221; layout you can add an image of maximum 1060 pixels wide:</p>
<p><img srcset="https://onedesigns.com/media/full-width-image-page-640x400.jpg 1x, https://onedesigns.com/media/full-width-image-page.jpg 2x" alt="Full Width Image Page" width="1280" height="800" class="alignnone size-full wp-image-19762" /></p>
<p>In our example we have added a screenshot of the theme&#8217;s drag-and-drop template editor which we hope you agree is one of the theme&#8217;s greatest features. The page was added as a single page query to the &#8220;Home Content&#8221; sidebar:</p>
<p><img srcset="https://onedesigns.com/media/full-width-image-widget-640x400.jpg 1x, https://onedesigns.com/media/full-width-image-widget.jpg 2x" alt="Full Width Image Widget" width="1280" height="800" class="alignnone size-full wp-image-19763" /></p>
<p>And here&#8217;s the result on the home page:</p>
<p><img srcset="https://onedesigns.com/media/home-page-full-width-image-640x400.jpg 1x, https://onedesigns.com/media/home-page-full-width-image.jpg 2x" alt="Home Page Full Width Image" width="1280" height="800" class="alignnone size-full wp-image-19764" /></p>
<h3>Adding In-Page multicolumn Content</h3>
<p>Sometimes it&#8217;s more convenient to split a page&#8217;s content into multiple columns instead of relying on the sidebars&#8217; and widgets&#8217; integration with the grid system. This can be done with the Bootstrap Shortcodes plugin [row] and [column] shortcodes:</p>
<p><img srcset="https://onedesigns.com/media/multicolumn-page-content-640x400.jpg 1x, https://onedesigns.com/media/multicolumn-page-content.jpg 2x" alt="Multicolumn Page Content" width="1280" height="800" class="alignnone size-full wp-image-19767" /></p>
<p>In our example we have wrapped the image in 6 columns and the rest of the content in another 6 columns. Then we have added this page as a single page query to the &#8220;Home Secondary Content&#8221; sidebar:</p>
<p><img srcset="https://onedesigns.com/media/multicolumn-content-widget-640x400.jpg 1x, https://onedesigns.com/media/multicolumn-content-widget.jpg 2x" alt="Multicolumn Content Widget" width="1280" height="800" class="alignnone size-full wp-image-19768" /></p>
<p>This is how it renders on the home page:</p>
<p><img srcset="https://onedesigns.com/media/home-page-multicolumn-content-640x400.jpg 1x, https://onedesigns.com/media/home-page-multicolumn-content.jpg 2x" alt="Home Page Multicolumn Content" width="1280" height="800" class="alignnone size-full wp-image-19770" /></p>
<p>Hang on, we&#8217;re already half through the process!</p>
<h3>Adding Image Galleries</h3>
<p>For the image gallery section we have configured the &#8220;Home After Content&#8221; sidebar to display in 2 columns. While the Custom Query Widget can display in multiple columns it does not display multiple types of content and this is where the sidebars&#8217; integration with the grid system comes in handy.</p>
<p>For the left column we have created a page with a headline and description:</p>
<p><img srcset="https://onedesigns.com/media/image-gallery-page-640x400.jpg 1x, https://onedesigns.com/media/image-gallery-page.jpg 2x" alt="Image Gallery Page" width="1280" height="800" class="alignnone size-full wp-image-19772" /></p>
<p>Then we have added it to the &#8220;Home After Content&#8221; sidebar as a single page query:</p>
<p><img srcset="https://onedesigns.com/media/image-gallery-page-widget-640x400.jpg 1x, https://onedesigns.com/media/image-gallery-page-widget.jpg 2x" alt="Image Gallery Page Widget" width="1280" height="800" class="alignnone size-full wp-image-19775" /></p>
<p>For the image gallery drag a new Custom Query Widget to the &#8220;Home After Content&#8221; sidebar. Under &#8220;Type&#8221; select &#8220;Gallery&#8221;, under &#8220;Grid&#8221; select &#8220;2 Columns&#8221;, Under &#8220;Query&#8221; select &#8220;Image Gallery&#8221; and under &#8220;Number of leading entries&#8221; select &#8220;1&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/image-gallery-widget-640x400.jpg 1x, https://onedesigns.com/media/image-gallery-widget.jpg 2x" alt="Image Gallery Widget" width="1280" height="800" class="alignnone size-full wp-image-19773" /></p>
<p>By clicking on &#8220;Choose Images&#8221; you can select the images for the gallery directly from the Media Library. Multiple images can be selected by holding down the Ctrl key on Windows or Cmd key on Mac:</p>
<p><img srcset="https://onedesigns.com/media/media-uploader-640x400.jpg, https://onedesigns.com/media/media-uploader.jpg 2x" alt="Media Uploader" width="1280" height="800" class="alignnone size-full wp-image-19776" /></p>
<p>One the home page you&#8217;ll see the gallery of images with the leading post in a single column followed by thumbnails of the other images:</p>
<p><img srcset="https://onedesigns.com/media/home-page-image-gallery-640x400.jpg 1x, https://onedesigns.com/media/home-page-image-gallery.jpg 2x" alt="Home Page Image Gallery" width="1280" height="800" class="alignnone size-full wp-image-19777" /></p>
<h3>Adding multicolumn Rich Content</h3>
<p>Sometimes it&#8217;s more convenient to style content just with the text editor without messing with shortcodes or other plugin-generated content. To your amazement, the 4 columns of content, each with an image, headline and description, were created just with the text editor and added via the Custom Query Widget on 4 columns.</p>
<p>This is how the page content of such a component looks like:</p>
<p><img srcset="https://onedesigns.com/media/rich-page-content-640x400.jpg 1x, https://onedesigns.com/media/rich-page-content.jpg 2x" alt="Rich Page Content" width="1280" height="800" class="alignnone size-full wp-image-19779" /></p>
<p>Theme components were added to the home page as a query of multiple pages in 4 columns in the &#8220;Home After Container Sidebar&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/rich-content-widget-640x400.jpg 1x, https://onedesigns.com/media/rich-content-widget.jpg 2x" alt="Rich Content Widget" width="1280" height="800" class="alignnone size-full wp-image-19780" /></p>
<p>On the home page they render as 4 columns components of rich content:</p>
<p><img srcset="https://onedesigns.com/media/home-page-rich-content-640x400.jpg 1x, https://onedesigns.com/media/home-page-rich-content.jpg 2x" alt="Home Page Rich Content" width="1280" height="800" class="alignnone size-full wp-image-19781" /></p>
<p>Otherwise, if you want to style content on multiple columns in a single page, remember you can do so with the Bootstrap Shortcodes plugin. The symmetrically aligned pieces of text from the home page is such an example:</p>
<p><img srcset="https://onedesigns.com/media/multicolumn-rich-content-page-640x400.jpg 1x, https://onedesigns.com/media/multicolumn-rich-content-page.jpg 2x" alt="Multicolumn Rich Content Page" width="1280" height="800" class="alignnone size-full wp-image-19784" /></p>
<p>In the page above the content was split in 2 columns and the first part aligned to the right in the editor. The page was added to the &#8220;Home Secondary After Container&#8221; sidebar as a Custom Query Widget of a single page:</p>
<p><img srcset="https://onedesigns.com/media/multicolumn-rich-content-widget-640x400.jpg 1x, https://onedesigns.com/media/multicolumn-rich-content-widget.jpg 2x" alt="Multicolumn Rich Content Widget" width="1280" height="800" class="alignnone size-full wp-image-19785" /></p>
<p>On the home page the content renders in 2 columns:</p>
<p><img srcset="https://onedesigns.com/media/home-page-multicolumn-rich-content-640x400.jpg 1x, https://onedesigns.com/media/home-page-multicolumn-rich-content.jpg 2x" alt="Home Page Multicolumn Rich Content" width="1280" height="800" class="alignnone size-full wp-image-19786" /></p>
<h3>Adding an Image Carousel</h3>
<p>The image carousel was added to the &#8220;Footer&#8221; sidebar that, like the &#8220;Secondary Header&#8221; sidebar, displays on a light-gray background in pages with the &#8220;Full Screen&#8221; design.</p>
<p>To add an image carousel, drag a Custom Query Widget to the &#8220;Home Footer&#8221; sidebar. Under &#8220;Type&#8221; select carousel and under &#8220;Query&#8221; select &#8220;Image Gallery&#8221; then select your images from the Media Library by clicking on &#8220;Choose Images&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/image-carousel-widget-640x400.jpg 1x, https://onedesigns.com/media/image-carousel-widget.jpg 2x" alt="Image Carousel Widget" width="1280" height="800" class="alignnone size-full wp-image-19787" /></p>
<p>This is how is displays on the home page:</p>
<p><img srcset="https://onedesigns.com/media/home-page-image-carousel-640x400.jpg 1x, https://onedesigns.com/media/home-page-image-carousel.jpg 2x" alt="Home Page Image Carousel" width="1280" height="800" class="alignnone size-full wp-image-19788" /></p>
<h3>Adding other Widgets to Sidebars</h3>
<p>The theme&#8217;s templates weren&#8217;t widgetized only to support the Custom Query Widget but to extend the theme&#8217;s ability to support content generated by any plugin. You should be able to use widgets of any type in the theme&#8217;s sidebars and if they&#8217;re properly coded should also render correctly.</p>
<p>In the &#8220;Home Secondary Footer&#8221; sidebar we have 4 widgets that come bundled with WordPress:</p>
<p><img srcset="https://onedesigns.com/media/footer-widgets-640x400.jpg 1x, https://onedesigns.com/media/footer-widgets.jpg 2x" alt="Footer Widgets" width="1280" height="800" class="alignnone size-full wp-image-19790" /></p>
<p>On the home page they render in 4 columns as lists of items:</p>
<p><img srcset="https://onedesigns.com/media/home-page-footer-widgets-640x400.jpg 1x, https://onedesigns.com/media/home-page-footer-widgets.jpg 2x" alt="Home Page Footer Widgets" width="1280" height="800" class="alignnone size-full wp-image-19791" /></p>
<h2>Setting the Static Front Page</h2>
<p>At this point we have completed the creation of our home page and, if until yet we have just saved the page as draft, now it safe to publish it.</p>
<p>To use this page as home page it&#8217;s not enough to publish it, you must set it as <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page">static front page</a>. To do so, go to <strong>Pages &rarr; Add New</strong> and create a new page called &#8220;Blog&#8221;. Don&#8217;t add any content to this page as it will be used to display the blog posts instead. Then, go to <strong>Settings &rarr; Reading</strong> and under &#8220;Front page displays&#8221; select &#8220;A static page&#8221; and set the &#8220;Front page&#8221; to the page we have created in this tutorial and as &#8220;Posts page&#8221; the blog page you have just created:</p>
<p><img srcset="https://onedesigns.com/media/static-front-page-setting-640x400.jpg 1x, https://onedesigns.com/media/static-front-page-setting.jpg 2x" alt="Static Front Page Setting" width="1280" height="800" class="alignnone size-full wp-image-19804" /></p>
<h2>Wrapping Up</h2>
<p>This was the verbatim deconstruction of what we considered was a rich landing page that can properly demonstrate what kind of pages can be created with Enlightenment Theme. If you feel this was long not as simple as you expected we encourage you to give it a chance. Once you&#8217;ve mastered the way the theme&#8217;s tools work, creating amazing pages will become simple and intuitive.</p>
<p>And by all means, don&#8217;t stop here! If we wanted to limit the theme&#8217;s ability to creation of such pages we would have made a static template. We have created this level of flexibility to encourage you to create your own unique and amazing landing pages. Use the knowledge you have gained from this tutorial to create the pages you need to make your website stand out and let of know of your results, we&#8217;d love to hear what you&#8217;ve come up with using our theme!</p>
<p>Don&#8217;t forget to read our other tutorials that cover <a href="https://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s Documentation</a>. Remember Enlightenment is an advanced and very flexible theme that allows you to create amazing layouts and showcase any type of content in multiple ways, you don&#8217;t want to miss out on what pages you can create with this theme!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-theme-demo-home-page/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19658</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Integrating Bootstrap Shortcodes Plugin</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-bootstrap-shortcodes/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-bootstrap-shortcodes/#respond</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Tue, 11 Nov 2014 03:40:46 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19559</guid>

					<description><![CDATA[Since Enlightenment Theme's front-end is built on the popular Bootstrap Framework, you can use any Bootstrap component in your website's content with a Bootstrap Shortcodes plugin. In this tutorial we will cover the theme's integration with Bootstrap Shortcodes for WordPress, which we have found to be the most complete and well documented plugin available...]]></description>
										<content:encoded><![CDATA[<p class="lead">Since Enlightenment Theme&#8217;s front-end is built on the popular <a href="http://getbootstrap.com/">Bootstrap Framework</a>, you can use any Bootstrap component in your website&#8217;s content with a Bootstrap Shortcodes plugin. There are several free plugins available that offer shortcodes for the Bootstrap framework. After testing many of them we&#8217;ve found <a href="https://wordpress.org/plugins/bootstrap-3-shortcodes/">Bootstrap Shortcodes for WordPress</a> to be the most complete and well-documented plugin available and in this tutorial we will cover the plugin&#8217;s integration with the theme.</p>
<p>This tutorial is part of the series &#8220;<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>&#8220;. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<h2>Installing Bootstrap Shortcodes for WordPress Plugin</h2>
<p>You can install the plugin from the WordPress admin. Go to <strong>Plugins &rarr; Add New</strong> and type in the search box &#8220;Bootstrap Shortcodes for WordPress&#8221;. The plugin should show up as the first result. Click the &#8220;Install Now&#8221; button and the plugin should automatically install. Below is a screenshot of the search results screen:</p>
<p><img srcset="https://onedesigns.com/media/install-bootstrap-shortcodes-plugin.jpg 1x, https://onedesigns.com/media/install-bootstrap-shortcodes-plugin.jpg 2x" alt="Install Bootstrap Shortcodes for WordPress Plugin" width="1280" height="800" class="alignnone size-full wp-image-19565" /></p>
<p>If you don&#8217;t have FTP access on your WordPress admin, you can download the plugin from the <a href="https://wordpress.org/plugins/bootstrap-3-shortcodes/">WordPress Plugin Repository</a> and install it manually by unzipping it inside the <code>/wp-content/plugins/</code> folder.</p>
<p>After you activate the plugin no configuration is needed. Don&#8217;t worry about the plugin breaking anything on your website, the Bootstrap stylesheet and script is added by the theme and the plugin merely converts shortcodes into HTML markup.</p>
<h2>Inserting Bootstrap Shortcodes in Content</h2>
<p>A Bootstrap Shortcodes button represented by the Boostrap logo will appear in the post editor right next to the &#8220;Add Media&#8221; button:</p>
<p><img srcset="https://onedesigns.com/media/bootstrap-shortcodes-button-640x400.jpg 1x, https://onedesigns.com/media/bootstrap-shortcodes-button.jpg 2x" alt="Bootstrap Shortcodes Button" width="1280" height="800" class="alignnone size-full wp-image-19568" /></p>
<p>When clicking this button a modal window with reference of the available shortcodes will popup:</p>
<p><img srcset="https://onedesigns.com/media/bootstrap-shortcodes-reference-640x400.jpg 1x, https://onedesigns.com/media/bootstrap-shortcodes-reference.jpg 2x" alt="Bootstrap Shortcodes Reference" width="1280" height="800" class="alignnone size-full wp-image-19569" /></p>
<p>By clicking on any shortcode in the list, a detailed overview of the shortcode&#8217;s syntax and all available attributes will be presented. For each shortcode you have the possibility to insert an example in the editor&#8217;s content that you can afterwards modify:</p>
<p><img srcset="https://onedesigns.com/media/bootstrap-shortcode-overview1-640x400.jpg 1x, https://onedesigns.com/media/bootstrap-shortcode-overview1.jpg 2x" alt="Bootstrap Shortcode Overview" width="1280" height="800" class="alignnone size-full wp-image-19572" /></p>
<p>In the screenshot below we have modified the button&#8217;s type from success to primary, removed the size attribute to fall back on the default &#8220;md&#8221; value, changed the hashtag in the link with http://onedesigns.com/ and the anchor text to &#8220;Click me!&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/bootstrap-button-shortcode-640x400.jpg 1x, https://onedesigns.com/media/bootstrap-button-shortcode.jpg 2x" alt="Bootstrap Button Shortcode" width="1280" height="800" class="alignnone size-full wp-image-19575" /></p>
<p>In the front-end, the it will render as a medium sized button with a blue background, with the text &#8220;Click me!&#8221; and linking to http://onedesigns.com/:</p>
<p><img srcset="https://onedesigns.com/media/bootstrap-button-component-640x360.jpg 1x, https://onedesigns.com/media/bootstrap-button-component.jpg 2x" alt="Bootstrap Button Component" width="1280" height="720" class="alignnone size-full wp-image-19578" /></p>
<p>You can read more about how each component will render on the front-end at the <a href="http://getbootstrap.com/components/">Bootstrap Documentation</a>.</p>
<h2>Breakdown of available Shortcodes</h2>
<p>All available shortcodes, with live examples and sample code can be previewed at the <a href="http://demo.onedesigns.com/enlightenment/?page_id=1865">Theme&#8217;s Demo Bootstrap Shortcodes Page</a>. </p>
<p>Detailed documentation for each shortcode&#8217;s supported attributes is also available at the <a href="https://github.com/filipstefansson/bootstrap-3-shortcodes">plugin&#8217;s GitHub project</a>.</p>
<h2>Conclusion</h2>
<p>Styling content beyond the limitations of the WordPress TinyMCE editor has always been a goal for themes and plugins. Since WordPress core and plugins handle the generation of content and themes handle its presentation, content generated by plugin shortcodes was rerely in line with a theme&#8217;s styling and finding a common ground between content generation and presentation was always a challenge.</p>
<p>Since the markup and styling of the Bootstrap Framework became popular, themes that use this framework as a base for its front-end can find simple integration with plugins that offer shortcodes for its components. Offering a standardized and streamlined experience for our users was one of our goals and that&#8217;s why we decided to power Enlightenment Theme&#8217;s front-end by Bootstrap Framework.</p>
<p>Please let us know in the comments of any feedback you ave regarding our theme&#8217;s integration with the Bootstrap Shortcodes for WordPress plugin and remember to read our other tutorials from <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s Documentation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-bootstrap-shortcodes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19559</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Theme&#8217;s Handling of Post Formats</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-theme-post-formats/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-theme-post-formats/#respond</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Mon, 10 Nov 2014 00:11:19 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19536</guid>

					<description><![CDATA[The introduction of Post Formats in WordPress 3.1 allowed for different showcasing a a post's content based on its format. Since this is a theme feature, how each theme handles the showcasing of post formats' content varies between theme. In this tutorial we will cover in detail how Enlightenment Theme handles each post format...]]></description>
										<content:encoded><![CDATA[<p class="lead">The introduction of <a href="http://codex.wordpress.org/Post_Formats">Post Formats in WordPress 3.1</a> allowed for different showcasing a a post&#8217;s content based on its format. Since this is a theme feature, how each theme handles the showcasing of post formats&#8217; content varies between theme. In this tutorial we will cover in detail how Enlightenment Theme handles each post format.</p>
<p>This tutorial is part of the series &#8220;<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>&#8220;. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<p>For each post you can select from one of the WordPress predefined post formats: Standard, Aside, Gallery, Link, Image, Quote, Status, Video, Audio and Chat. Each post format is styled differently on archive pages but in single posts they all fall back to the same format.</p>
<p>Some posts format are styled differently for leading posts and teaser posts when the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop">grid loop</a> is active. Some post formats are displayed without the title. These posts can still be accessed through their permalink on the post&#8217;s publish date.</p>
<p>In the following we will present how each post format is styled on archive pages:</p>
<h2>Aside Post Formats</h2>
<p>Post with the &#8220;Aside&#8221; format are displayed without title and their content in a lighter and larger font size. They are intended to emphasize short ideas that don&#8217;t require a title or long reader engagement:</p>
<p><img srcset="https://onedesigns.com/media/aside-post-format-640x120.jpg 1x, https://onedesigns.com/media/aside-post-format.jpg 2x" alt="Aside Post Format" width="1280" height="240" class="alignnone size-full wp-image-19539" /></p>
<h2>Gallery Post Formats</h2>
<p>For posts with the &#8220;Gallery&#8221; format, the first &#91;gallery&#93; shortcode is extracted and displayed in place of the post&#8217;s content followed by the excerpt:</p>
<p><img srcset="https://onedesigns.com/media/gallery-post-format-640x400.jpg 1x, https://onedesigns.com/media/gallery-post-format.jpg 2x" alt="Gallery Post Format" width="1280" height="800" class="alignnone size-full wp-image-19542" /></p>
<h2>Link Post Formats</h2>
<p>The posts with &#8220;Link&#8221; format get their title&#8217;s permalink replaced with the first link found in the post content. They are visually distinguishable by having an &#8220;<strong>&rarr;</strong>&#8221; appended to their title. This post format displays the post&#8217;s excerpt instead of content for leading posts:</p>
<p><img srcset="https://onedesigns.com/media/link-post-format-640x150.jpg 1x, https://onedesigns.com/media/link-post-format.jpg 2x" alt="Link Post Format" width="1280" height="300" class="alignnone size-full wp-image-19544" /></p>
<h2>Image Post Formats</h2>
<p>Posts with the &#8220;Image&#8221; format change the link in the feature image from the post&#8217;s permalink to the image and the post&#8217;s excerpt will be displayed instead of the content. If the post lacks a featured image the first image in the post&#8217;s content will be used instead. If the Image Lightbox is enabled that link will open the image in a lightbox:</p>
<p><img srcset="https://onedesigns.com/media/image-post-format-640x400.jpg 1x, https://onedesigns.com/media/image-post-format.jpg 2x" alt="Image Post Format" width="1280" height="800" class="alignnone size-full wp-image-19546" /></p>
<h2>Quote Post Formats</h2>
<p>For posts with &#8220;Quote&#8221; format, neither title, content or excerpt are displayed. Instead the first &lt;blockquote&gt; tag is extracted from the post&#8217;s content and displayed on an orange background:</p>
<p><img srcset="https://onedesigns.com/media/quote-post-format-640x120.jpg 1x, https://onedesigns.com/media/quote-post-format.jpg 2x" alt="Quote Post Format" width="1280" height="240" class="alignnone size-full wp-image-19548" /></p>
<h2>Status Post Formats</h2>
<p>Posts with the &#8220;Status&#8221; format are displayed with no title and the author&#8217;s avatar floated to the left of the content. This post format is intended to replace Twitter&#8217;s 140 character short posts so the post&#8217;s content shouldn&#8217;t be too long:</p>
<p><img srcset="https://onedesigns.com/media/status-post-format-640x120.jpg 1x, https://onedesigns.com/media/status-post-format.jpg 2x" alt="Status Post Format" width="1280" height="240" class="alignnone size-full wp-image-19550" /></p>
<h2>Video Post Formats</h2>
<p>For posts with the &#8220;Video&#8221; format, the first &#91;video&#93; shortcode is extracted and displayed in place of the post&#8217;s content followed by the excerpt. If no such shortcode is available the first embedded media is used instead:</p>
<p><img srcset="https://onedesigns.com/media/video-post-format-640x400.jpg 1x, https://onedesigns.com/media/video-post-format.jpg 2x" alt="Video Post Format" width="1280" height="800" class="alignnone size-full wp-image-19552" /></p>
<h2>Audio Post Formats</h2>
<p>Posts with the &#8220;Audio&#8221; format, extract the first &#91;audio&#93; shortcode and displays it in place of the post&#8217;s content followed by the excerpt. If no such shortcode is available the first embedded media is used instead. Teaser posts also display the post&#8217;s featured image:</p>
<p><img srcset="https://onedesigns.com/media/audio-post-format-640x160.jpg 1x, https://onedesigns.com/media/audio-post-format.jpg 2x" alt="Audio Post Format" width="1280" height="320" class="alignnone size-full wp-image-19553" /></p>
<h2>Chat Post Formats</h2>
<p>The content of posts with &#8220;Chat&#8221; format has each paragraph styled as a speech bubble. Odd and even paragraphs are aligned and colored differently to differentiate between the person speaking:</p>
<p><img srcset="https://onedesigns.com/media/chat-post-format-640x270.jpg 1x, https://onedesigns.com/media/chat-post-format.jpg 2x" alt="Chat Post Format" width="1280" height="540" class="alignnone size-full wp-image-19554" /></p>
<h2>Customizing Post Formats</h2>
<p>The formats presented here cover the theme&#8217;s default handling. Some of the output a post formats can be customized for both leading and teaser posts through the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-template-editor">Post Formats Template Editor</a> and individual posts can be customized using the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-template-editor">Page Builder</a>.</p>
<h2>Conclusion</h2>
<p>Post formats are a great way to showcase different types of content. With the theme&#8217;s support for post formats and the possibility to style archive pages with the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop">Masonry Grid</a> you can turn your blog into a powerful multimedia website.</p>
<p>Please let us know in the comments section of any feedback you have regarding the theme&#8217;s handling of post formats and remember to read our other tutorials from <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a> series.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-theme-post-formats/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19536</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Setting up and managing the Jetpack Portfolio</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-jetpack-portfolio/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-jetpack-portfolio/#respond</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Sun, 09 Nov 2014 22:45:16 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19516</guid>

					<description><![CDATA[Enlightenment Theme uses Jetpack's Portfolio post type that allows you to manage and showcase your projects in a separate archive from your blog posts. In this tutorial we will show you how to install and activate the plugin's module and configure it to take advantage of the theme's built-in features...]]></description>
										<content:encoded><![CDATA[<p class="lead">Enlightenment Theme uses <a href="http://jetpack.me/2014/07/31/jetpack-3-1-portfolio-custom-post-types-a-new-logo-and-much-more/">Jetpack&#8217;s Portfolio post type</a> that allows you to showcase your projects in a separate archive from your blog posts. In this tutorial we will show you how to install and activate the plugin&#8217;s module and configure it to take advantage of the theme&#8217;s built-in features.</p>
<p>This tutorial is part of the series &#8220;<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>&#8220;. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<h2>Installing Jetpack Plugin</h2>
<p>You can install the Jetpack plugin from the WordPress admin, by going to &#8220;Plugins &gt; Add New&#8221;. It&#8217;s a featured plugin so it should appear in the front list. If you don&#8217;t see it type &#8220;Jetpack by WordPress.com&#8221; in the search bar:</p>
<p><img srcset="https://onedesigns.com/media/install-jetpack-640x360.jpg 1x, https://onedesigns.com/media/install-jetpack.jpg 2x" alt="Install Jetpack" width="1280" height="720" class="alignnone size-full wp-image-19521" /></p>
<p>If you don&#8217;t have FTP access on your WordPress admin, you can download it from the <a href="https://wordpress.org/plugins/jetpack/">WordPress Plugin Repository</a> and manually install it by unpacking the zip file in the <code>/wp-content/plugins/</code> directory.</p>
<p>After activating the plugin it needs to connect to WordPress.com since most its features depend on WP.com&#8217;s cloud. You need a <a href="https://signup.wordpress.com/signup/">WordPress.com account</a> for that.</p>
<p>If you&#8217;re working on a local machine you won&#8217;t be able to connect WordPress.com to the localhost server, but you can set the plugin in <a href="http://jetpack.me/support/development-mode/">development mode</a> so you can still access the features that don&#8217;t depend on WordPress.com&#8217;s cloud, including the portfolio custom post type.</p>
<p>If you get a &#8220;Jetpack could not connected to WordPress.com&#8221; or an XML-RPC error, it usually means you are using a proxy or caching server like Varnish that needs to be <a href="http://usefulmix.com/wordpress-nginx-varnish-jetpack-xml_rpc-32700-glitch-fix/">temporarily disabled</a> until the connection is established.</p>
<h2>Activating Jetpack&#8217;s Portfolio Module</h2>
<p>After the plugin has been activated and connected to WordPress.com, a top-level item called &#8220;Jetpack&#8221; will appear in the admin menu and. under this item, click the second-level item &#8220;Setting&#8221; and a list of all available modules will appear. The portfolio post type is located in the &#8220;Custom Content Types&#8221; module which is disabled by default. To enable it, hover the cursor over its list entry and click the &#8220;Activate&#8221; link:</p>
<p><img srcset="https://onedesigns.com/media/jetpack-activate-portfolio-640x360.jpg 1x, https://onedesigns.com/media/jetpack-activate-portfolio.jpg 2x" alt="Jetpack Activate Portfolio" width="1280" height="720" class="alignnone size-full wp-image-19522" /></p>
<p>After the module has been activated, a &#8220;Configure&#8221; link will appear. This is actually  a compatibility layer for themes that don&#8217;t natively support the portfolio custom post type. You don&#8217;t need to configure anything as Enlightenment Theme has full support for this post type.</p>
<h2>Selecting the Number of Projects to Display per Page</h2>
<p>Jetpack allows you to select a number of portfolio projects to display per archive page that is different from the default posts per page setting. This is a great feature and especially useful if you want to display the portfolio in a <a href="http://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop">grid loop</a> to make it display a symmetrical number of posts.</p>
<p>You can select the number of posts per page under &#8220;Settings &gt; Reading&#8221;. Scroll to the bottom of the page and under &#8220;Portfolio Projects&#8221; change to the desired number. We have selected 9 as this is a great value to display projects in a 3 column masonry grid:</p>
<p><img srcset="https://onedesigns.com/media/jetpack-projects-per-page-640x400.jpg 1x, https://onedesigns.com/media/jetpack-projects-per-page.jpg 2x" alt="Jetpack Projects per Page" width="1280" height="800" class="alignnone size-full wp-image-19525" /></p>
<h2>Creating Portfolio Projects</h2>
<p>All Projects are listed under the &#8220;Portfolio&#8221; top-level menu item the the WordPress admin. New projects can be created from the &#8220;Add New&#8221; link and they can be categorized by &#8220;Project Types&#8221; and &#8220;Projects Tags&#8221; which are analogous to the default posts&#8217; Categories and Tags:</p>
<p><img srcset="https://onedesigns.com/media/jetpack-portfolio-projects-640x400.jpg 1x, https://onedesigns.com/media/jetpack-portfolio-projects.jpg 2x" alt="Jetpack Portfolio Projects" width="1280" height="800" class="alignnone size-full wp-image-19527" /></p>
<p>Portfolio Projects can be edited just like normal blog posts. They support post formats, featured images, <a href="http://onedesigns.com/tutorials/enlightenment-documentation-customize-the-themes-layout">custom layouts</a>, <a href="http://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained">unlimited sidebars</a> and the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-template-editor">page builder</a>:</p>
<p><img srcset="https://onedesigns.com/media/edit-portfolio-project-640x480.jpg 1x, https://onedesigns.com/media/edit-portfolio-project.jpg 2x" alt="Edit Portfolio Project" width="1280" height="960" class="alignnone size-full wp-image-19529" /></p>
<h2>Showcasing Portfolio Projects</h2>
<p>The Portfolio Projects archive can be accessed by appending <code>/portfolio/</code> (e.g. <code>http://www.mysite.com/portfolio/</code>) to the site&#8217;s front page URL if using pretty permalinks or <code>?post_type=jetpack-portfolio</code> (e.g. <code>http://www.mysite.com/?post_type=jetpack-portfolio</code>) if not using URL rewrites.</p>
<p>A link to the portfolio can be added as a custom link by pasting the URL above in the <a href="http://codex.wordpress.org/WordPress_Menu_User_Guide">menu editor</a>. Project Types and Project Tags are listed in the left column.</p>
<p>By default the Portfolio archive displays in a 3 columns masonry grid with a Project Types filter:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-jetpack-portfolio-640x480.jpg 1x, https://onedesigns.com/media/enlightenment-jetpack-portfolio.jpg 2x" alt="Enlightenment Documentation: Setting up and managing the Jetpack Portfolio" width="1280" height="960" class="alignnone size-full wp-image-19519" /></p>
<p>The project types filter can be removed from the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-template-editor">template editor</a> and the grid can be configured for the portfolio archive, project types and project tags under &#8220;Appearance &gt; Theme Options &gt; Grid Loop&#8221;.</p>
<p>In the theme&#8217;s demo there are several examples of showcasing the portfolio:</p>
<ol>
<li><a href="http://demo.onedesigns.com/enlightenment/?post_type=jetpack-portfolio">Portfolio with 2 columns masonry grid</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1946">Portfolio with 3 columns masonry grid</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1948">Portfolio with 4 columns masonry grid</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1947">Portfolio with list entries and right sidebar</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1953">Portfolio with list entries in full width</a></li>
</ol>
<p>Projects can be showcased inside posts with the <a href="http://en.support.wordpress.com/portfolios/portfolio-shortcode/">Portfolio Shortcode</a> and in sidebars using the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-custom-query-widget">Custom Query Widget</a>.</p>
<p>The <a href="http://demo.onedesigns.com/enlightenment/">theme demo&#8217;s front page</a> contains a custom query widget that displays the latest 3 portfolio projects:</p>
<p><img srcset="https://onedesigns.com/media/custom-query-widget-portfolio-640x400.jpg 1x, https://onedesigns.com/media/custom-query-widget-portfolio.jpg 2x" alt="Custom Query Widget Portfolio" width="1280" height="800" class="alignnone size-full wp-image-19447" /></p>
<h2>Conclusion</h2>
<p>Showcasing portfolios of works in a separate archive has been a popular feature of WordPress themes and plugins ever since the introduction of custom post types in WordPress 3.0. Custom implementation of themes created problems when users wanted to switch themes as implementations between different themes weren&#8217;t compatible and there wasn&#8217;t a consensus among plugin developers on a streamlined support for custom post types. This all changed when Jetpack made a huge step towards standardization in version 3.1 when introducing the portfolio custom post type. In the future we hope more and more themes will support this post type.</p>
<p>Please let us know in the comments section of any feedback you have regarding the theme&#8217;s implementation of Jetpack&#8217;s portfolio custom post type and remember to read our other tutorials from <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s documentation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-jetpack-portfolio/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19516</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: The Theme&#8217;s Drag-and-Drop Template Editor</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-template-editor/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-template-editor/#comments</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Wed, 05 Nov 2014 21:49:30 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19462</guid>

					<description><![CDATA[The Template Editor is a drag-and-drop tool that allows you to add and remove hooked functions from the theme's templates without the need of modifying them. You can customize any archive and post format and it integrates with the theme's Grid Loop so you can select different settings for teaser posts...]]></description>
										<content:encoded><![CDATA[<p class="lead">The Template Editor is a drag-and-drop tool that allows you to add and remove hooked functions from the theme&#8217;s templates without the need to modify them. You can customize any archive and post format and it integrates with the theme&#8217;s <a href="http://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop">Grid Loop</a> so you can select different settings for teaser posts.</p>
<p>This tutorial is part of the series &#8220;<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>&#8220;. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<p>Drag-and-drop editing of templates has been a long established and popular feature in WordPress themes. Allowing backend customizations of a template&#8217;s output without editing code in template files if of great help to more non-technical users and also allows customizations that are future-proof, without the risk of losing them when updating and also remove some of the burden of creating child themes.</p>
<p>The Template Editor can be found under &#8220;Appearance &gt; Theme Options &gt; Templates&#8221;:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-template-editor-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-template-editor.jpg 2x" alt="Enlightenment Documentation: The Template Editor" width="1280" height="800" class="alignnone size-full wp-image-19465" /></p>
<p>Post Formats can also be edited from the &#8220;Post Formats&#8221; tab. We&#8217;ll get into more detail about that later in the article.</p>
<p>The Template Editor has been designed similarly to WordPress&#8217; Widgets interface. This is intended both to offer a more familiar experience to end-users and also to offer a smoother integration with the WordPress Admin interface.</p>
<p>From the option &#8220;Select Template to Edit&#8221; you can select the template where you want to add or remove functions. In this list you can find the default WordPress post archive labeled &#8220;Blog&#8221;, all custom post type archives, the default WordPress Category and Tag taxonomies as well as any other registered custom taxonomies and all single post templates and their corresponding teasers:</p>
<p><img srcset="https://onedesigns.com/media/template-editor-select-template-640x400.jpg 1x, https://onedesigns.com/media/template-editor-select-template.jpg 2x" alt="Template Editor Select Template" width="1280" height="800" class="alignnone size-full wp-image-19467" /></p>
<p>In the screenshot you can see <a href="http://jetpack.me/2014/07/31/jetpack-3-1-portfolio-custom-post-types-a-new-logo-and-much-more/">Jetpack&#8217;s Portfolio</a> &#8220;Project&#8221; post type and the &#8220;Project Type&#8221; and &#8220;Project Tag&#8221; custom taxonomies. The template for attachments is titled &#8220;Media&#8221; and a special template is the &#8220;Comments&#8221; that doesn&#8217;t display the general template hooks but special hooks available in the comments template.</p>
<h2>Breakdown of the Theme&#8217;s internal Hook System</h2>
<p>Each template has a list of available hooks to which functions can be added or removed. This hooks correspond to fixed sections inside the template like header or post content. The functions that can be added to each hook depend on a some conditionals, that&#8217;s why only a limited number of functions is available for each hook. For example the site header can only support site branding and navigation while the entry header can support post title, post thumbnail and post meta.</p>
<p>The available functions are listed in the left-hand column and the already hooked functions in the right-hand column. They can be added or removed by dragging and dropping them from one column to the other. For internal reason a function can be added to a hook only once. </p>
<p>The theme&#8217;s internal hook system has been designed on several levels: The first level covers general template sections like header, main content and footer. The second level covers sections inside <a href="http://codex.wordpress.org/The_Loop">The Loop</a> that depend on <a href="http://codex.wordpress.org/Conditional_Tags">conditionals</a> to display their content. The third level covers sections inside post entries; these are hooks that loop several times for each displayed entry. Finally, the last level is comments section that usually displays on single posts with comments open.</p>
<p>In the following we will describe in detail using color-coded screenshots each level of hooks and their corresponding locations in the Template Editor:</p>
<h3>General Template Hooks</h3>
<p>General template hooks cover the main sections of any template like header, main content area and footer. As you can see sidebars are outside the scope of the template editor as their customization is handled by the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained">unlimited sidebars feature</a>.</p>
<p><img srcset="https://onedesigns.com/media/general-hooks-breakdown-640x1350.jpg 1x, https://onedesigns.com/media/general-hooks-breakdown.jpg 2x" alt="General Hooks Breakdown" width="1280" height="2700" class="alignnone size-full wp-image-19472" /></p>
<ol>
<li style="color: #93c47d;">Header</li>
<li style="color: #e06666;">Before Content</li>
<li style="color: #6fa8dc;">Content</li>
<li style="color: #f1c232;">Footer</li>
</ol>
<h3>The Loop Template Hooks</h3>
<p>Template hooks inside The Loop refer to hooks whose functions are more dependent on the template being queried. These functions decide how posts that are being looped are displayed. The Loop is by default located inside the content section highlighted in the screenshot above.</p>
<p><img srcset="https://onedesigns.com/media/loop-hooks-breakdown-640x1350.jpg 1x, https://onedesigns.com/media/loop-hooks-breakdown.jpg 2x" alt="The Loop Hooks Breakdown" width="1280" height="2700" class="alignnone size-full wp-image-19476" /></p>
<ol>
<li style="color: #93c47d;">Entry Header</li>
<li style="color: #e06666;">Entry Content</li>
<li style="color: #6fa8dc;">Entry Footer</li>
<li style="color: #f1c232;">After Entries List</li>
</ol>
<h3>Post Entry Template Hooks</h3>
<p>Since post entries are located inside The Loop, template hooks inside post entries slightly intertwine with The Loop posts presented above. Post Entries template hooks are best highlighted on the single post template:</p>
<p><img srcset="https://onedesigns.com/media/entry-hooks-breakdown-640x2437.jpg 1x, https://onedesigns.com/media/entry-hooks-breakdown.jpg 2x" alt="Post Entry Hooks Breakdown" width="1280" height="4874" class="alignnone size-full wp-image-19481" /></p>
<ol>
<li style="color: #93c47d;">Entry Header</li>
<li style="color: #e06666;">Entry Content</li>
<li style="color: #6fa8dc;">Entry Footer</li>
<li style="color: #f1c232;">After Entry Footer</li>
</ol>
<h3>Comments Template Hooks</h3>
<p>Template hooks for comments are by default located inside the &#8220;After Entry Footer&#8221; hook highlighted above. There hooks are usually displayed in the single post template:</p>
<p><img srcset="https://onedesigns.com/media/comments-hooks-breakdown-640x2437.jpg 1x, https://onedesigns.com/media/comments-hooks-breakdown.jpg 2x" alt="Comments Hooks Breakdown" width="1280" height="4874" class="alignnone size-full wp-image-19484" /></p>
<ol>
<li style="color: #93c47d;">Before Comments List</li>
<li style="color: #e06666;">Comments</li>
<li style="color: #6fa8dc;">After Comments List</li>
<li style="color: #f1c232;">After Comments</li>
</ol>
<h2>Template Editor for Post Formats</h2>
<p>Since post formats are a special case that showcase content based on their format rather than the current template, their hooks can be edited from a different template editor designed specifically for post formats.</p>
<p>The template editor for post formats can be found under &#8220;Appearance &gt; Theme Options &gt; Post Formats&#8221;. Under &#8220;Select Post Format to Edit&#8221; you can find all post formats and their corresponding teasers. Any post that does not display as a leading post in the Grid Loop is called a teaser and content is rendered differently for such entries; for example they usually display the excerpt instead of content and show the post meta at the bottom.</p>
<p><img srcset="https://onedesigns.com/media/post-formats-editor-640x400.jpg 1x, https://onedesigns.com/media/post-formats-editor.jpg 2x" alt="Post Formats Editor" width="1280" height="800" class="alignnone size-full wp-image-19488" /></p>
<p>Changed made in the post formats template editor only take effect on archive pages, not single posts. Since post formats are rendered inside The Loop, only the Entry Template Hooks are available for editing.</p>
<h2 id="page-builder">The Page Builder</h2>
<p>You can customize the template for every individual post. This includes the default WordPress post type, pages, attachments and any registered custom post type. Any changes made inside the Page Builder override the settings in the Template Editor and are unique to that specific post. This is particularly useful when showcasing unique content in custom landing pages. For example you can remove the site navigation or post meta to avoid distracting the visitor&#8217;s attention. In combination with the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained">Unlimited Sidebars feature</a> this allows advanced customization of any page, an example being the <a href="http://demo.onedesigns.com/enlightenment/">theme&#8217;s demo front page</a>.</p>
<p>When editing a post, in the central column below the text editor you can find a meta box titled &#8220;Page Builder&#8221;. When the &#8220;Use default template hooks for post&#8221; option is checked the settings from the Template Editor for that post type will be used instead. To be able to edit the template&#8217;s hooks, first uncheck that box:</p>
<p><img srcset="https://onedesigns.com/media/activate-page-builder-640x400.jpg 1x, https://onedesigns.com/media/activate-page-builder.jpg 2x" alt="Activate Page Builder" width="1280" height="800" class="alignnone size-full wp-image-19490" /></p>
<p>After the Page Builder has been activated, all hooks available for that post type template will appear and become editable:</p>
<p><img srcset="https://onedesigns.com/media/page-builder-640x1613.jpg 1x, https://onedesigns.com/media/page-builder.jpg 2x" alt="Page Builder" width="1280" height="3226" class="alignnone size-full wp-image-19492" /></p>
<h2>Conclusion</h2>
<p>We did it! A drag-and-drop template builder was a long-time goal for our themes. One of our users&#8217; most common requests was the ability to edit templates without touching code and without losing changes on updates. Now we&#8217;ve been finally able to offer you this level of customization and flexibility.</p>
<p>Please leave us a comment letting us know how the template builder has helped you customize your website and any other feedback you may have regarding this feature. Don&#8217;t forget to read our other tutorials that cover <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s documentation</a> to get the most out of this theme.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-template-editor/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19462</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Leveraging the Custom Query Widget</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-custom-query-widget/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-custom-query-widget/#respond</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Mon, 03 Nov 2014 22:32:08 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19424</guid>

					<description><![CDATA[The Custom Query Widget can handle several internal queries like sticky posts, custom post types, pages, image galleries or taxonomies and display them as a list, slider, gallery or carousel. Together with the theme's unlimited sidebars feature it can be used to create custom landing pages, business or magazine front pages...]]></description>
										<content:encoded><![CDATA[<p class="lead">The Custom Query Widget can handle several internal queries like sticky posts, custom post types, pages, image galleries or taxonomies and display them as a list, slider, gallery or carousel. Together with the theme&#8217;s unlimited sidebars feature it can be used to create custom landing pages, business or magazine front pages.</p>
<p>This tutorial is part of the series “<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>“. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<h2>Widget Settings Panel</h2>
<div class="row">
<div class="col-md-6">After dragging the Custom Query Widget to a sidebar, the settings panel will toggle where you can select the type of query and how it will be displayed. The available settings vary according to the selected query and display type.</p>
<p>Any widget can display a title and tagline above the selected query. Lists, galleries and carousels also integrate with the theme&#8217;s grid system and can be displayed in multiple columns.
</p></div>
<div class="col-md-6">
<p><img srcset="https://onedesigns.com/media/enlightenment-custom-query-widget-settings-320x320.jpg 1x, https://onedesigns.com/media/enlightenment-custom-query-widget-settings.jpg 2x" alt="Enlightenment Custom Query Widget Settings" width="320" height="320" class="alignnone size-full wp-image-19426" /></p>
</div>
</div>
<h2>Custom Query Types</h2>
<p>Custom queries can be displayed as either a list, slider, gallery or carousel. In the following we will explain how each of these options behaves:</p>
<h3>List Queries</h3>
<p>List queries display as a traditional list of posts, with thumbnail, title and post meta. They can have a selected number of leading posts that will display with larger post thumbnail and excerpt. Post type archives and taxonomies can show a link to the full archive of posts.</p>
<p>Below is a preview of the Custom Query Widget showing a list of sticky posts with one leading entry:</p>
<p><img srcset="https://onedesigns.com/media/custom-query-widget-list-sticky-posts-640x480.jpg 1x, https://onedesigns.com/media/custom-query-widget-list-sticky-posts.jpg 2x" alt="Custom Query Widget List Sticky Posts" width="1280" height="960" class="alignnone size-full wp-image-19432" /></p>
<h3>Gallery Queries</h3>
<p>Gallery queries display as a of images or posts thumbnails. This query type&#8217;s integration with the grid system differs slightly from list posts in that leading posts will span the entire width of a column while the rest of posts will stack inside columns as 75&times;75 pixels thumbnails.</p>
<p>Here is an example of an image gallery displaying in 2 columns with one leading entry:</p>
<p><img loading="lazy" decoding="async" src="https://onedesigns.com/media/custom-query-widget-image-gallery.jpg" alt="Custom Query Widget Image Gallery" width="1280" height="800" class="alignnone size-full wp-image-19436" srcset="https://onedesigns.com/media/custom-query-widget-image-gallery.jpg 1280w, https://onedesigns.com/media/custom-query-widget-image-gallery-640x400.jpg 640w, https://onedesigns.com/media/custom-query-widget-image-gallery-325x203.jpg 325w, https://onedesigns.com/media/custom-query-widget-image-gallery-650x406.jpg 650w, https://onedesigns.com/media/custom-query-widget-image-gallery-320x200.jpg 320w, https://onedesigns.com/media/custom-query-widget-image-gallery-300x187.jpg 300w" sizes="auto, (max-width: 1280px) 100vw, 1280px" /></p>
<h3>Slider Queries</h3>
<p>When this type is selected, the widget integrates with the <a href="http://flexslider.woothemes.com/">Flexslider</a> script to display the query as a slider. The posts&#8217; thumbnails will be used as background. Posts will show the title as caption and pages will have their content overlaid on the image.</p>
<p>The slider in the theme demo&#8217;s front page is an example of the custom query widget&#8217;s slider option displaying multiple pages in the &#8220;Full Screen&#8221; sidebar:</p>
<p><img srcset="https://onedesigns.com/media/custom-query-widget-slider-640x360.jpg 1x, https://onedesigns.com/media/custom-query-widget-slider.jpg 2x" alt="Custom Query Widget Slider" width="1280" height="720" class="alignnone size-full wp-image-19439" /></p>
<h3>Carousel Queries</h3>
<p>The &#8220;Carousel&#8221; query type also integrates with the Flexslider script and displays the selected query of posts in a carousel whose visible elements is currently fixed to 6 but in the future we plan to make them correspond to the number of columns selected in the &#8220;Grid&#8221; option.</p>
<p>Here&#8217;s an example of a carousel from the theme demo displaying images:</p>
<p><img srcset="https://onedesigns.com/media/custom-query-widget-carousel-640x150.jpg 1x, https://onedesigns.com/media/custom-query-widget-carousel.jpg 2x" alt="Custom Query Widget Carousel" width="1280" height="300" class="alignnone size-full wp-image-19441" /></p>
<h2>Breakdown of possible Custom Queries</h2>
<p>The widget allows you to select from multiple possible internal queries to display. Below we will describe each available option in detail:</p>
<h3>Sticky Posts</h3>
<p>This option displays all posts that have been marked as sticky. A <a href="http://codex.wordpress.org/Sticky_Posts">detailed explanation how sticky posts are managed</a> is available at the WordPress Codex.</p>
<p>Sticky posts don&#8217;t have an option to limit their number, all posts marked as sticky being displayed but you can select a number of leading entries. This query is particularly useful when you want to showcase posts outside the traditional chronological order.</p>
<h3>Post Type Archive</h3>
<div class="row">
<div class="col-md-9">
This option displays the latest posts from a selected post type. This includes the default WordPress posts and any other post types that have been registered like Jetpack&#8217;s Portfolio custom post type.</p>
<p>You have the option to select the number of posts displayed and a number of leading posts as well as a link to the full archive and edit the label of this link.</p>
<p>Below is an example of the Custom Query Widget displaying the latest 3 &#8220;Project&#8221; posts with a link to the portfolio archive:
</p></div>
<div class="col-md-3">
<p><img srcset="https://onedesigns.com/media/custom-query-widget-project-archive-160x400.jpg 1x, https://onedesigns.com/media/custom-query-widget-project-archive.jpg 2x" alt="Custom Query Widget Project Archive" width="320" height="799" class="alignnone size-full wp-image-19444" /></p>
</div>
</div>
<p><img srcset="https://onedesigns.com/media/custom-query-widget-portfolio-640x400.jpg 1x, https://onedesigns.com/media/custom-query-widget-portfolio.jpg 2x" alt="Custom Query Widget Portfolio" width="1280" height="800" class="alignnone size-full wp-image-19447" /></p>
<h3>Single Post Type and Single Page</h3>
<p>These 2 options allow you to display a single post from a selected post type or a single page. The major difference with this option is that the post or page&#8217;s content will be displayed instead of the title and excerpt.</p>
<p>If the post or page has a featured image, it will be used as background image and the content will be overlaid on the image.</p>
<h3>Multiple Pages</h3>
<p>This options allows you to query multiple pages and display their content. You can select any pages from the list, regardless of their chronological order.</p>
<p>This option is particularly useful when you want to display content in multiple columns or create a slider with dynamic content. The <a href="http://demo.onedesigns.com/enlightenment/">theme demo&#8217;s front page slider</a> is an example of a slider displaying the content of multiple pages.</p>
<h3>Image Gallery</h3>
<p>The &#8220;Image Gallery&#8221; option is limited to images from the Media Library. The button &#8220;Choose Images&#8221; will open the Media Library. To select multiple images hold down the Cmd key on Mac or Ctrl key or Windows and click on each image. This option is best used with the &#8220;Gallery&#8221; query type.</p>
<h3>Author Archive and Taxonomy</h3>
<p>These 2 options allow you to display posts belonging to a particular author or are inside a specific taxonomy. You can select from the WordPress default &#8220;Category&#8221; and &#8220;Tag&#8221; taxonomies or any registered custom taxonomy.</p>
<h2>Conclusion</h2>
<p>The Custom Query Widget is an advanced tool for showcasing multiple types of content. Please let us know how it has helped you customize your pages and of any other feedback in the comments section. Don&#8217;t forget to read our other tutorials from <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s documentation</a> to get the most out of this theme.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-custom-query-widget/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19424</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Understanding the Theme&#8217;s Sidebar Logic</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-theme-sidebar-logic/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-theme-sidebar-logic/#comments</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Sun, 02 Nov 2014 17:43:21 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19406</guid>

					<description><![CDATA[In our previous tutorial we showed you how to dynamically create widget areas and assign them to fixed sidebar locations inside templates. Now we will cover an in-depth overview of each of the theme's predefined sidebars and the location they correspond to...]]></description>
										<content:encoded><![CDATA[<p class="lead">In our previous tutorial we showed you how to dynamically create widget areas and assign them to fixed sidebar locations inside templates. Now we will cover an in-depth overview of each of the theme&#8217;s predefined sidebars and the location they correspond to.</p>
<p>This tutorial is part of the series “<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>“. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<p>Our focus with Enlightenment Theme was the ability to add arbitrary content in almost any location of a page. One of the most popular ways to add content to pages is through widgets inside sidebars. WordPress&#8217; <a href="http://codex.wordpress.org/Template_Hierarchy">Template Hierarchy</a> allows the inclusion of any number of sidebar in a template a feature we wanted to take maximum advantage of, so we designed the templates&#8217; layout that it includes widget areas before and after almost any piece of content.</p>
<p>While this level of flexibility allows for advanced customizations of a page&#8217;s content, naturally not every page requires the use of all available sidebars, nor will their content be relevant to all pages from your website. For that reason we have both created the possibility to <a href="http://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained">dynamically assign widget areas to templates</a> and also to choose what sidebars are used by any template.</p>
<h2>Breakdown of the Theme&#8217;s Sidebar Locations</h2>
<p>The difference between widget areas and sidebar locations might be a bit confusing at first because we&#8217;re deviating a bit from WordPress&#8217; traditional way of dynamically handling widgets but not sidebars. In general words you can consider sidebar locations as predefined fixed sections on your page and widget areas as dynamically created containers of widgets that can be assigned to that fixed section.</p>
<p>The WordPress traditional way is to dynamically assign widgets to static sidebars. Our way is assign widgets to virtual sidebars that can be assigned to the static locations inside the template.</p>
<p>To make it more straightforward below is a color-coded visual breakdown of the static locations inside a template that can hold dynamically created widget areas:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-sidebar-locations-breakdown-640x2240.jpg 1x, https://onedesigns.com/media/enlightenment-sidebar-locations-breakdown.jpg 2x" alt="Enlightenment Sidebar Locations Breakdown" width="1280" height="4480" class="alignnone size-full wp-image-19410" /></p>
<ol>
<li style="color: #6fa8dc">Primary Sidebar</li>
<li style="color: #e06666">Secondary Sidebar</li>
<li style="color: #93c47d">Navbar Sidebar</li>
<li style="color: #e06666">Full Screen Sidebar</li>
<li style="color: #6fa8dc">Header Sidebar</li>
<li style="color: #f1c232">Header Secondary Sidebar</li>
<li style="color: #8e7cc3">Main Sidebar</li>
<li style="color: #93c47d">Main Secondary Sidebar</li>
<li style="color: #f1c232">Content Sidebar</li>
<li style="color: #8e7cc3">Content Secondary Sidebar</li>
<li style="color: #93c47d">After Content Sidebar</li>
<li style="color: #e06666">After Content Secondary Sidebar</li>
<li style="color: #6fa8dc">After Main Sidebar</li>
<li style="color: #f1c232">After Main Secondary Sidebar</li>
<li style="color: #8e7cc3">Footer Sidebar</li>
<li style="color: #93c47d">Footer Secondary Sidebar</li>
</ol>
<p>The lighter shade represents the sidebar&#8217;s boundaries and the darker shade the inner widgets. The number of columns the widgets are displayed in is for demonstration purposes and the actual number can be selected in the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained">Sidebar Editor in Theme Options</a>.</p>
<h2>Special Case Scenario Sidebars</h2>
<h3>The Navbar Sidebar</h3>
<p>The Navbar Sidebar has been designed to fit in the limited space available inside the Navbar. This sidebar does not integrate with the Grid System and widgets are displayed in a single row, floated to the left.</p>
<p>The limited space is intended to fit small linear content like contact information, search forms, login buttons, shopping carts or social media icons. Any other widgets would probably look distorted.</p>
<h3 id="full-screen-sidebar">The Full Screen Sidebar</h3>
<p>The Full Screen Sidebar spans the entire width of the viewport and widgets are not wrapped in a container. This sidebar has been designed to hold the &#8220;Custom Query Widget&#8221; displaying either a slider, carousel or single page.</p>
<p>Inside the Custom Query Widget the displayed posts featured image will be used as the background and the post&#8217;s content will automatically wrap inside a container. This behavior is not inherited by any other widgets which would probably look distorted in that space.</p>
<h2>Conclusion</h2>
<p>Widgets are one of the earliest and most popular way to display related content inside your website&#8217;s pages and WordPress has a very friendly and intuitive drag-and-drop interface to manage widgets. We have tried to take the most advantage out of this native feature to allow you to perform advanced customizations to your website.</p>
<p>Please let us know in the comments how you find our implementation of widgetizing the theme and remember to read our other tutorials that cover <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s documentation</a>. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-theme-sidebar-logic/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19406</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Unlimited Sidebars Explained</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained/#comments</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Sat, 01 Nov 2014 16:49:32 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19382</guid>

					<description><![CDATA[Traditionally websites powered by WordPress made use of one or more sidebars where you could add widgets and those sidebars would display in fixed location and repeat themselves on all your website's pages. Enlightenment Theme extends this functionality by allowing you to dynamically create an unlimited number of widget areas and assign them to sidebar locations belonging to different templates and individual posts...]]></description>
										<content:encoded><![CDATA[<p class="lead">Traditionally websites powered by WordPress made use of one or more sidebars where you could add widgets and those sidebars would display in fixed locations and repeat themselves on all your website&#8217;s pages. Enlightenment Theme extends this functionality by allowing you to dynamically create an unlimited number of widget areas and assign them to sidebar locations belonging to different templates and individual posts.</p>
<p>This tutorial is part of the series “<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>“. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<p>The unlimited sidebars feature is useful when you want to customize different pages on your website to show widgets directly related to the content displayed on that page rather than general widgets relating to all your website&#8217;s content.</p>
<p>The settings for unlimited sidebars is found under &#8220;Appearance &gt; Theme Options &gt; Sidebars&#8221;:</p>
<p><img class="alignnone size-full wp-image-19385" srcset="https://onedesigns.com/media/enlightenment-theme-unlimited-sidebars-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-theme-unlimited-sidebars.jpg 2x" alt="Enlightenment Theme Unlimited Sidebars" width="1280" height="800" /></p>
<p>By default the theme creates 3 widget areas assigned to the Primary, Secondary and Navbar sidebars for all templates, all other sidebars remaining unused.</p>
<h2>Creating New Widget Areas</h2>
<p>New widget areas can be created from the &#8220;Add Dynamic Sidebar&#8221; option at the top of the page. Every widget area is associated with a unique name that you need to enter. This feature also integrates with the theme&#8217;s grid system so you may choose to display widgets in this sidebar to display in multiple columns:</p>
<p><img class="alignnone size-full wp-image-19387" srcset="https://onedesigns.com/media/enlightenment-add-new-sidebar-640x130.jpg 1x, https://onedesigns.com/media/enlightenment-add-new-sidebar.jpg 2x" alt="Enlightenment Add New Sidebar" width="1280" height="260" /></p>
<p>All manually created sidebars will appear in the options page and can be edited or deleted at any time. When a sidebar is deleted all its assigned widgets will be lost:</p>
<p><img class="alignnone size-full wp-image-19389" srcset="https://onedesigns.com/media/enlightenment-edit-sidebars-640x150.jpg 1x, https://onedesigns.com/media/enlightenment-edit-sidebars.jpg 2x" alt="Enlightenment Edit Sidebars" width="1280" height="300" /></p>
<p>The theme&#8217;s default sidebars can not be edited or deleted but can be unassigned from Sidebar Locations.</p>
<h2>Assigning Widget Area to Sidebar Locations</h2>
<p>Newly created widget areas will appear in the sidebars list under &#8220;Appearance &gt; Widgets&#8221; and you will be able to add widgets to them but to make them appear on the front-end you will have to assign them a location. The theme contains several fixed locations for widget areas that are listed under &#8220;Sidebar Locations&#8221;. A <a href="http://onedesigns.com/tutorials/enlightenment-documentation-theme-sidebar-logic">detailed breakdown of the theme&#8217;s sidebar structure</a> is covered in a separate article. Widget areas can be dynamically assigned to these locations for any template.</p>
<p>You can select the template where you want to add the widget area under &#8220;Select Template to Edit&#8221;:</p>
<p><img class="alignnone size-full wp-image-19391" srcset="https://onedesigns.com/media/enlightenment-sidebar-templates-640x200.jpg 1x, https://onedesigns.com/media/enlightenment-sidebar-templates.jpg 2x" alt="Enlightenment Sidebar Templates" width="1280" height="400" /></p>
<p>After the template has been selected you can assign widget areas to any of the predefined locations:</p>
<p><img class="alignnone size-full wp-image-19393" srcset="https://onedesigns.com/media/enlightenment-sidebar-locations.jpg 1x, https://onedesigns.com/media/enlightenment-sidebar-locations.jpg 2x" alt="Enlightenment Sidebar Locations" width="1280" height="640" /></p>
<p>After the settings have been saved you can start adding widgets to your manually created sidebars:</p>
<p><img class="alignnone size-full wp-image-19395" srcset="https://onedesigns.com/media/enlightenment-add-widgets-640x240.jpg 1x, https://onedesigns.com/media/enlightenment-add-widgets.jpg 2x" alt="Enlightenment Add Widgets" width="1280" height="480" /></p>
<p>These widgets will appear in the selected template in the assigned sidebar location. In our example above, widgets added to &#8220;My New Sidebar&#8221; will appear in the &#8220;Blog&#8221; template in the &#8220;Header&#8221; sidebar in 3 columns:</p>
<p><img class="alignnone size-full wp-image-19397" srcset="https://onedesigns.com/media/enlightenment-header-sidebar-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-header-sidebar.jpg 2x" alt="Enlightenment Header Sidebar" width="1280" height="800" /></p>
<h2 id="overriding-post-sidebars">Overriding Sidebar Locations for individual Posts</h2>
<p>In addition to dynamically customize widget areas for each template, you can override these settings for each individual post, including pages, attachments and any other custom post types. This is particularly useful when creating landing pages and you want to display content specifically related to that page no content in the sidebars at all.</p>
<p>When editing the post, in the central column under the post editor you can find a meta box titled &#8220;Sidebars&#8221;. The option &#8220;Use default sidebar locations for page&#8221; disables any overriding and uses the locations defined in &#8220;Theme Options&#8221; for that particular post type. To enable overriding first uncheck this option:</p>
<p><img class="alignnone size-full wp-image-19400" srcset="https://onedesigns.com/media/enlightenment-override-sidebars-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-override-sidebars.jpg 2x" alt="Enlightenment Override Sidebars" width="1280" height="800" /></p>
<p>A list of all available sidebar locations will collapse. If the sidebars for this post have never been overridden, the settings from &#8220;Theme Options&#8221; are imported and you can assign the sidebars you want to display for this post:</p>
<p><img class="alignnone size-full wp-image-19402" srcset="https://onedesigns.com/media/enlightenment-post-sidebars-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-post-sidebars.jpg 2x" alt="Enlightenment Post Sidebars" width="1280" height="800" /></p>
<p>The options selected in a post&#8217;s meta box will only be applied to that specific post:</p>
<p><img class="alignnone size-full wp-image-19403" srcset="https://onedesigns.com/media/enlightenment-post-sidebar-640x400.jpg 1x, https://onedesigns.com/media/enlightenment-post-sidebar.jpg 2x" alt="Enlightenment Post Sidebar" width="1280" height="800" /></p>
<p>In the example above, the &#8220;My New Sidebar&#8221; widget area has been assigned to the &#8220;Footer Secondary&#8221; sidebar location.</p>
<h2>Conclusion</h2>
<p>To be able to select what sidebars appear appear and where is surely helpful when creating personalized reading experiences like landing pages or author profiles. Please let us know in the comments sections how you find our implementation of unlimited sidebars and what improvements we could bring to the process. Don&#8217;t forget to read our other tutorials from <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s documentation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-unlimited-sidebars-explained/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19382</post-id>	</item>
		<item>
		<title>Enlightenment Documentation: Mastering the Theme&#8217;s Grid Loop</title>
		<link>https://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop/</link>
					<comments>https://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop/#respond</comments>
		
		<dc:creator><![CDATA[Daniel Tara]]></dc:creator>
		<pubDate>Thu, 30 Oct 2014 02:52:44 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enlightenment Documentation]]></category>
		<guid isPermaLink="false">http://onedesigns.com/?p=19358</guid>

					<description><![CDATA[Enlightenment Theme allows you to display every blog archive from your website in a multicolumn grid powered by the Masonry script. Your posts will be displayed in elegant tiles that automatically adapt to the device screen size and can showcase any media format like images, galleries, videos and audio streams...]]></description>
										<content:encoded><![CDATA[<p class="lead">Enlightenment Theme allows you to display every blog archive from your website in a multicolumn grid powered by the <a href="http://masonry.desandro.com/">Masonry script</a>. Your posts will be displayed in elegant tiles that automatically adapt to the device screen size and can showcase any media format like images, galleries, videos and audio streams.</p>
<p>This tutorial is part of the series “<a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme Documentation</a>“. Enlightenment is a powerful theme that can help you create advanced page layouts for your website, but may require a bit of mastering for beginners. Make sure to read all of the theme’s documentation tutorials to get the most out of this theme.</p>
<p>The options for customizing the Grid Loop can be found under &#8220;Appearance &gt; Theme Options &gt; Grid Loop&#8221;. Here&#8217;s a preview of the options page:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-documentation-customize-grid-loop-640x320.jpg 1x, https://onedesigns.com/media/enlightenment-documentation-customize-grid-loop.jpg 2x" alt="Enlightenment Documentation: Customize the Theme&#039;s Grid Loop" width="1280" height="640" class="alignnone size-full wp-image-19359" /></p>
<p>From the option &#8220;Select Template to Edit&#8221; you can choose the archive you wish to display in a custom grid. The default &#8220;Blog&#8221; archive can be customized as well as Categories, Tags, Author pages and Search Results. Any custom post types and taxonomies will also appear in this list and additionally you can customize the grid of post formats archives:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-grid-loop-archives-640x320.jpg 1x, https://onedesigns.com/media/enlightenment-grid-loop-archives.jpg 2x" alt="Enlightenment Grid Loop Archives" width="1280" height="640" class="alignnone size-full wp-image-19362" /></p>
<p>The option &#8220;Select Grid&#8221; displays the available choices for grid columns. The first option resembles &#8220;One Column&#8221; and actually disables the grid loop, instead displaying posts in the traditional blog format. When the grid is activated posts can be displayed in either Two Columns, Three Columns or Four Columns.</p>
<p>Depending on the <a href="http://onedesigns.com/tutorials/enlightenment-documentation-customize-the-themes-layout">selected layout</a>, a sidebar may also appear besides the content. For consistency reasons, when the content is selected to display in three or more columns the layout is overridden to full-width, regardless of the setting in theme options, to avoid cramped post tiles.</p>
<p>Each grid option can be previewed at the theme&#8217;s demo:</p>
<ul>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1722">Traditional Blog with Grid disabled</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1871">Blog with 2 Columns Grid</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1869">Blog with 3 Columns Grid</a></li>
<li><a href="http://demo.onedesigns.com/enlightenment/?page_id=1872">Blog with 4 Columns Grid</a></li>
</ul>
<h2>Selecting Leading Posts</h2>
<p>If you are displaying post archives in a grid, posts will display as tiles with featured media and a short excerpt of content. You have the option to display a selected number of posts as full posts from the &#8220;Lead Posts&#8221; option:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-lead-posts-option.jpg 1x, https://onedesigns.com/media/enlightenment-lead-posts-option.jpg 2x" alt="Enlightenment Lead Posts Option" width="1280" height="720" class="alignnone size-full wp-image-19364" /></p>
<p>The &#8220;Lead Posts&#8221; option can be from zero (no leading posts) to the maximum &#8220;Posts per Page&#8221; setting you have set under Settings &gt; Reading. Leading posts will display full-width with content instead of excerpt:</p>
<p><img srcset="https://onedesigns.com/media/enlightenment-grid-with-lead-post-640x480.jpg 1x, https://onedesigns.com/media/enlightenment-grid-with-lead-post.jpg 2x" alt="Enlightenment Grid with Lead Post" width="1280" height="960" class="alignnone size-full wp-image-19365" /></p>
<h2>Overriding the Grid Loop option for all Archives</h2>
<p>Under the &#8220;Select Template to Edit&#8221; option, if you select the &#8220;All&#8221; option you will be able to override the grid setting for every archive:</p>
<p>You won&#8217;t see any visual feedback when updating this setting, the grid selections for this case always remaining blank. Instead the setting for each archive will be updated.</p>
<h2>Conclusion</h2>
<p>Masonry grids are a great way to showcase any type of media. Wether it be images, galleries or videos they will all magically fit the tile&#8217;s content area. We have first experimented with this style in our <a href="http://onedesigns.com/themes/pinboard">Pinboard Theme</a> and have tried to perfect it in our integration into Enlightenment Framework. Please let us know in the comments how you find our integration of blog archives with the masonry grid system and remember to read our other tutorials that cover <a href="http://onedesigns.com/tag/enlightenment-documentation">Enlightenment Theme&#8217;s documentation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onedesigns.com/tutorials/enlightenment-documentation-mastering-grid-loop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19358</post-id>	</item>
	</channel>
</rss>
