Git Product home page Git Product logo

independent-publisher's Introduction

screenshot

Independent Publisher

Independent Publisher is a WordPress Theme. This README contains documentation for theme options and features, along with a list of known issues and frequently asked questions. It also contains a list of theme filters and action hooks that can be used to modify and hook into various areas of the theme, as well as a list of functions that can be overidden in a Child Theme.

The main site for this project, along with a demo of this theme, is located at http://independentpublisher.me.

Note: There are two versions of this theme: the primary version, which is being developed here on GitHub, is also on WordPress.org, and the secondary (forked) version is on WordPress.com.

WordPress.com took the original Independent Publisher theme from WordPress.org and changed it a bit to make it work on WordPress.com. I have no control over the WordPress.com version, as that's a closed-system, so if you have issues with that version, please post your support related questions there. You can read more about the WordPress.com version here.

Table of Contents

Theme Options

Theme Options can be found in Dashboard → Appearance → Customize.

Colors

screen shot 2014-01-24 at 7 28 45 pm

The following colors can be changed via the Colors section:

  • Text Color
  • Background Color
  • Link Color
  • Title and Header Text Color
  • Primary Meta Text Color
  • Secondary Meta Text Color

Layout Options

screen shot 2014-02-11 at 7 19 46 pm

  • Single-Column Layout. Disabled by default. This option allows you to force the site layout to a single-column, regardless of the browser width.

Excerpt Options

screen shot 2014-02-11 at 7 14 43 pm

  • Post Excerpts. Disabled by default. If you enable Post Excerpts the post excerpt will be shown on Blog, Archive, and Search pages instead of the full post content. If no excerpt is set, one is generated using the first 55 words (see the_excerpt()). This setting only applies to Standard and Chat post formats.
  • Generate One-Sentence Excerpts. Disabled by default. When this option is enabled, a one-sentence excerpt will be generated for all posts that don't have an excerpt set. A "Continue Reading →" link is also placed below the generated excerpt. This setting only applies to Standard post formats and is only relevant when Post Excerpts are enabled.
  • Always Show Full Content for First Post. When Post Excerpts are enabled, this option ensures that the very first post on the home page (or Posts Page, if different) shows the full post content instead of the excerpt.

General Options

screen shot 2014-04-23 at 4 30 50 pm

  • Show Widgets on Single Posts. Disabled by default. When this option is enabled, sidebar widgets will also be shown on Single Post pages.
  • Show Post Date in Entry Meta. Disabled by default. When this option is enabled, the post date will be shown in the entry meta on Blog, Archive, and Search pages. It uses the date format specified in Dashboard → Settings → General → Date Format.
  • Show Post Word Count in Entry Meta. Disabled by default. Shows the post word count in the entry meta on Blog, Archive, and Search pages. Only shows post word count for posts with the Standard Post Format.
  • Show Nav Menu on Single Posts. Disabled by default. When this option is enabled, the primary navigation menu will also be shown on Single Post pages.
  • Show Updated Date on Single Posts. Disabled by default. When this option is enabled, the post's last modified date will be shown underneath the published date. If you enable this, you can disable this on a per-post basis by adding a Custom Field to a post with the name independent_publisher_hide_updated_date and any value (yes or true will do).
  • Auto-Set Featured Image as Post Cover. Disabled by default. When this option is enabled, any Featured Image set for a post will automatically be used as a Post Cover (see Post Covers (Full-Width Featured Images)).
  • Show Page Load Progress Bar. Disabled by default. When enabled, a progress bar will appear across the top of the page as the page is loading. The color of the progress bar is determined by the Link Color setting in Appearance → Customizer → Colors.
  • Enable Multi-Author Mode. Disabled by default. Enabling Multi Author Mode changes the behavior of the site to better support multiple authors. The author name is mentioned in the entry meta and the authors name always links to the author page instead of the home page. The Header Image (Dashboard → Appearance → Customize → Header Image) is treated as the site logo and placed as a small icon in top left of the single pages to provide a way of getting back to the home page.
  • Comments Call to Action. "Write a Comment" by default. This allows you to change the label that shows up on the 'Write a Comment' button and also changes the title of the comment form itself.

Post Covers (Full Width Featured Images)

Post Covers are full-width featured images that stretch across the entire top of the page.

screen shot 2013-10-09 at 3 01 54 pm

When setting a Featured Image as a Post Cover, it's important that you use an image that works for displaying full-width; 1200x600 is a good starting point. WordPress contains an Image Editor that you can use to crop images to the necessary dimensions.

How to set a Featured Image as a Post Cover

To set a Featured Image as a Post Cover, first select the image from the Featured Image meta box and then press the Update button. When the page reloads you will see a checkbox that says "Use as post cover (full-width)". Check the box and then save the changes by pressing the Update button again.

screen shot 2013-10-22 at 7 02 05 pm

Post Subtitles

You can add a post subtitle at the top of your post content like this:

<h2 class="subtitle">Do what you love and do it often.</h2>

The subtitle class will style it like so:

screen shot 2013-10-24 at 4 17 57 pm

Using a Child Theme to Customize Independent Publisher

If there are things you want to tweak in the Independent Publisher theme, a Child Theme is the recommended method for doing so. By using a Child Theme, you can make changes without worrying about those changes being overwritten by a future update to the parent theme.

After you've installed the Independent Publisher theme, download the Independent Publisher Child Theme and install and activate it. You can then start making changes to the Child Theme's files to override the parent theme. The Independent Publisher Child Theme comes with a few examples to help you get started.

For more information on using Child Themes, see the WordPress Codex.

Known Issues

Frequently Asked Questions

Why is my Header Image not showing on Single posts?

screen shot 2014-05-15 at 6 53 32 pm

On Single Post pages, the Author Image (the image of the post author) is shown. On non-Single pages like the Home Page, the Header Image (Dashboard → Appearance → Header) is shown. If you see something like the screenshot above on your Single Post pages, that means you haven't configured an Author Image.

WordPress uses Gravatar to link your email address with the image you want to show up when posting comments and publishing posts. If you don't already have a Gravatar account, signup using the same email address that you have configured in Dashboard → Users → Your Profile. After you upload and associate an image with the email address you have configured in WordPress, you should see the new image appear on your Single Post pages. (Sometimes it take a little while for Gravatar to update things, so if you don't see it immediately, give it some time.)

Note that if there is only one author on your site, you probably want to set the Header Image to be the same as the author Gravatar. (You also probably want the site Tagline, Dashboard → Settings → General → Tagline, to be the same as your bio in Dashboard → Users → Your Profile → Biographical Info.)

How do I get the small logo to show up in the top-left corner?

a4360d06-83b8-11e3-95e6-2fba9c982761

First you need to enable Multi-Author Mode in Dashboard → Appearance → Customizer → General Options . With Multi-Author Mode enabled, the theme Header Image (Dashboard → Appearance → Header Image) will be placed in the top-left corner on all Single pages.

Why is my Author Bio and picture at the top of my home page (or below a blog post) and not on the side?

Independent Publisher is a responsive theme, which fits the size of your browser depending on the size of your screen. If you are on a computer, making your browser window wider will automatically move the Author Bio and picture to the side instead of at the top on your homepage or at the bottom of a blog post.

How do I add Social Media Buttons below the Logo?

screen shot 2014-02-03 at 12 54 31 pm

First you need to go to Dashboard → Appearance → Menu. Once there, create a new menu called Social. After that, add your social media links to it. For example:

screen shot 2014-02-18 at 11 27 24 am

After you're done, below in Theme Locations (located in the Menu Settings tab), choose Social.

screen shot 2014-02-18 at 11 42 31 am

How do I make the Subscribe to Comments Reloaded Advanced Options look better?

Go to Settings -> Subscribe to Comments -> Comment Form -> Custom HTML and wrap the contents in a paragraph tag with the comment-form-subscriptions class. For example:

<p class='comment-form-subscriptions'><label for='subscribe-reloaded'>[checkbox_label]</label> [checkbox_field]</p>

Note that double-quotes are not allowed in that field and that you must use single quotes, i.e., class='comment-form-subscriptions', NOT class="comment-form-subscriptions".

How do I make MailChimp Signup Forms look better?

MailChimp includes its own CSS in the HTML embed code that, by default, doesn't look quite right with Independent Publisher. To fix the MailChimp CSS, you can add the following to the style.css file of a Child Theme (or if you're using Jetpack, simply go to Appearance → Edit CSS and insert the following):

#mc_signup .button {
	margin-top: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	padding-top: 2px !important;
	padding-bottom: 3px !important;
	line-height: 1.45 !important;
	height: 36px !important;
	font-weight: normal !important;
	width: 100% !important;
}

.entry-content #mc_signup h2 {
	font-size: 1.8em !important;
}
.entry-content #mc_signup input.email {
	width: 100% !important;
}
.entry-content #mc_signup label {
	padding-bottom: 0 !important;
}
.entry-content #mc_signup .mc-field-group {
	width: 99% !important;
}

.widget #mc_signup form {
	text-align: center !important;
	font-family: "Myriad Pro", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
}
.widget #mc_signup input.email {
	width: 100% !important;
	text-align: center;
}
.widget #mc_signup input.button {
	width: 100% !important;
}

screen shot 2014-01-28 at 4 53 37 pm

How do I add an Archive page?

The Independent Publisher theme includes a Page Template called "Archive Page" that you can use to create an Archive page. Simply create a new Page (Pages -> Add New), give it a title (e.g., "Archives"), then select the "Archive Page" template from the Template section in the Page Attributes meta box:

screen shot 2014-04-28 at 3 51 36 pm

By default, the Archives Page Template will load the following:

  • Recent Posts
  • Most Used Categories
  • Yearly Archives
  • Monthly Archives
  • Search
  • Explore by Tag

If you'd like to use your own custom set of widgets, you can simply add widgets to the Archive Page widget area (Appearance -> Widgets):

screen shot 2014-04-28 at 3 55 48 pm

To get the default set of widgets back, simply remove all widgets from the Archive Page widget area.

How do I show a menu on the Single Post pages?

By default, the main navigation menu (Primary Menu) only appears on non-Single pages. This is meant to keep the Single Post pages clean and simple. You can change this default behavior by enabling "Show Nav Menu on Single Posts" in Appearance -> Customize -> General Options.

If you want your Single Posts menu to be differnet than your Primary Navigation menu, you can select a different menu for Single Posts in Apperanace -> Menus -> Manage Locations -> Single Posts Menu.

How do I change the footer credits?

You can change the footer credits by overriding the function that displays them (independent_publisher_footer_credits()) and making that function return something else (or return blank to remove footer content entirely).

Before making such a change, you'll want make sure you're using a Child Theme so that future theme updates don't override your modifications. The functions.php file that comes with the Independent Publisher Child Theme includes an example for overriding the footer credits function.

How do I add my own Social Icons to the Social Menu?

The Social Menu works by detecting the social media URL you're using and matching that URL to an icon. If you want to add a new social media icon to use on the Social Menu, you can do so by adding the following block of code to your child theme's style.css file:

#menu-social li a[href*="example.com"]::before {
	content: url('http://example.com/logo.png');
	opacity: 0.5;
}

#menu-social li a[href*="example.com"]:hover::before {
	opacity: 1;
}

You'll simply need to replace example.com and http://example.com/logo.png in the code with the domain for the new social media site and the URL to the logo you want to appear on the social menu.

How can I enable "Single-Column Layout" on only the home page?

Add the following code to child theme's functions.php file to enable the Single-Column layout for only the home page:

/**
 * Add single-column-layout to body class when on home page
 */
function __custom_independent_publisher_single_column_layout_body_class( $classes ) {
	if ( is_home() || is_front_page() ) {
		$classes[] = 'single-column-layout';
	}

	return $classes;
}

add_filter( 'body_class', '__custom_independent_publisher_single_column_layout_body_class' );

Why is the Navigation Menu and/or Widgets not appearing on Single Post pages?

By default, the main navigation menu and all widges are hidden from the Single Post pages to keep things clean and simple, however, if you prefer to show these there, you can enable Show Nav Menu on Single Posts and Show Widgets on Single Posts in Dashboard → Apperance → Customize → General Options:

2014-09-02_16-00-24

How can I obfuscate my email address in the Social Menu?

The Social Menu uses the WordPress menu system and most email obfuscation plugins don't filter those for email addresses.

I've written a special filter that will tell the Email Address Encoder plugin to encode any navigation menu items in the Social menu that contain mailto:<email-address> or <email-address>.

Add the following to a Child Theme functions.php file:

add_filter( 'wp_nav_menu_objects', '__social_menu_eae_encode_emails', 10, 2 );
/**
 * Filters the Social Menu navigation items looking for email addresses and
 * filters those email addresses through the Email Address Encoder plugin.
 *
 * @since 1.0.0
 *
 * @param object $objects An array of nav menu objects
 * @param object $args    Nav menu object args
 *
 * @return object $objects Amended array of nav menu objects with items containing email addresses filtered through Email Address Encoder plugin
 */
function __social_menu_eae_encode_emails( $objects, $args ) {

	// Only apply the social navigation menu
	if ( isset( $args->theme_location ) ) {
		if ( 'social' !== $args->theme_location || ! function_exists( 'eae_encode_emails' ) ) {
			return $objects;
		}
	}

	// Find any menu items with an email address and run them through the Email Address Encoder plugin
	foreach ( $objects as $object ) {
		if ( is_email( $object->url ) ) {
			$object->url = eae_encode_emails( $object->url );
		}
		if ( stristr( $object->url, 'mailto:' ) ) {
			$email = substr( $object->url, 7 );
			if ( is_email( $email ) ) {
				$object->url = 'mailto:' . eae_encode_emails( $email );
			}
		}
	}

	// Return the modified objects
	return $objects;

How can I use a Full Size Image for the Post Cover?

By default, the theme will use a maximum of 700x700 pixels for the Post Cover image. You can override this and use the full image size by adding the following to your Child Theme's functions.php file:

function __custom_independent_publisher_full_width_featured_image_size() {
    return "full";
}

add_filter( 'independent_publisher_full_width_featured_image_size', '__custom_independent_publisher_full_width_featured_image_size' );

How can I use a Full Size Image for Featured Images?

The theme uses the default of 700px for various reasons, including bandwidth considerations. However, you can easily override the default featured image width and show the full width (or any of the WordPress thumbnail sizes).

First, you'll need to update the CSS. By default, the theme CSS will use a 100% width for featured images (which means 700px wide by default). You can override this and use whatever the full image size is by adding the following to your Child Theme's style.css file:

.single .wp-post-image,
.page .wp-post-image,
.blog .wp-post-image,
.archive .wp-post-image {
	width: auto;
}

You'll also need to add the following code to a Child Theme's functions.php file (instead of full, you can use any of the WordPress thumbnail sizes):

function __custom_independent_publisher_full_width_featured_image_size() {
    return "full";
}

add_filter( 'independent_publisher_full_width_featured_image_size', '__custom_independent_publisher_full_width_featured_image_size' );

If you add the above PHP code and discover that your post Featured Images are too big, try removing the CSS that you added above so that images get a 100% width.

Color Schemes

You can modify the color scheme in Appearance → Customize → Colors. Here are a few recommended color schemes:

Blue

  • Set Link Color to #26759e

Black

  • Set Text color to #f7f7f7
  • Set Background Color to #000000
  • Set Link Color to #1a609e
  • Set Title and Header Text Color to #d1d1d1
  • Set Primary Meta Text Color to #8e8e8e
  • Set Secondary Meta Text color to #666666

Theme Filters and Actions

WordPress Filters and Actions allow you to modify the theme without actually modifying any theme code. To use any of these filters or actions, start by creating a Child Theme and then adding the relevant function to the functions.php file. See also add_filter() and add_action() on the WordPress Codex.

Filters

  • independent_publisher_taxonomy_category_stats - Allows you to override the Category Archive stats that are appended to the category archive description.
  • independent_publisher_taxonomy_tag_stats - Allows you to override the Tag Archive stats that are appended to the Tag Archive description.
  • independent_publisher_entry_meta_separator - Allows you to override the default separator character that is used in the Entry Title Meta and Entry Post Meta (default is '|').
  • independent_publisher_entry_meta_category_prefix - Allows you to override the default Category prefix (default is 'in'; e.g., " in ").
  • independent_publisher_entry_meta_author_prefix - Allows you to override the default Author prefix (default is 'by'; e.g., "by ").
  • independent_publisher_search_stats - Allows you to override the Search stats shown on Search pages.
  • independent_publisher_tag_list_title - Allows you to override the default Tag List Title of 'Related Content by Tag' at the bottom of Single posts.
  • independent_publisher_webmentions_title - Allows you to override the default Webmentions title of 'Webmentions' at the bottom of Single posts.

Action Hooks

  • independent_publisher_entry_meta_top - Located at the top of post Entry Meta, just before the 'Write a Comment' button.
  • independent_publisher_before_bottom_comment_button - Located just before the second 'Write a Comment' button that shows up underneath post comments when there are more than 4 comments visible.
  • independent_publisher_before_post_bottom_tag_list - Located before the bottom 'Related Content by Tag' tag list on Single posts.

Functions you can Override in a Child Theme

Functions in inc/template-tags.php:

  • independent_publisher_content_nav() - Display navigation to next/previous pages when applicable
  • independent_publisher_comment() - Template for comments and pingbacks.
  • independent_publisher_mentions() - Creates a custom query for webmentions, pings, and trackbacks and displays them. Using this custom query instead of wp_list_comments() allows us to always show all mentions, even when we're showing paginated comments.
  • independent_publisher_posted_author() - Prints HTML with meta information for the current author.
  • independent_publisher_posted_author_cats() - Prints HTML with meta information for the current author and post categories. Only prints author name when Multi-Author Mode is enabled.
  • independent_publisher_posted_on_date() - Prints HTML with meta information for the current post-date/time.
  • independent_publisher_post_updated_date() - Prints HTML with meta information for the current post's last updated date/time.
  • independent_publisher_continue_reading_link() - Prints HTML with Continue Reading link
  • independent_publisher_continue_reading_text() - Returns Continue Reading text for usage in the_content()
  • independent_publisher_categorized_blog() - Returns true if a blog has more than 1 category
  • independent_publisher_wp_title() - Filters wp_title to print a neat <title> tag based on what is being viewed.
  • independent_publisher_post_categories() - Returns categories for current post with separator. Optionally returns only a single category.
  • independent_publisher_site_info() - Outputs site info for display on non-single pages
  • independent_publisher_posted_author_card() - Outputs post author info for display on single posts
  • independent_publisher_posted_author_bottom_card() - Outputs post author info for display on bottom of single posts
  • independent_publisher_get_post_word_count() - Returns number of words in a post formatted for display in theme
  • independent_publisher_full_width_featured_image() - Show Full Width Featured Image on single pages if post has full width featured image selected
  • independent_publisher_search_stats() - Returns stats for search results
  • independent_publisher_taxonomy_archive_stats() - Returns taxonomy archive stats and current page info for use in taxonomy archive descriptions
  • independent_publisher_date_archive_description() - Returns the Date Archive description
  • independent_publisher_min_comments_bottom_comment_button() - Returns the minimum number of comments that must exist for the bottom 'Write a Comment' button to appear
  • independent_publisher_min_comments_comment_title() - Returns the minimum number of comments that must exist for the comments title to appear
  • independent_publisher_hide_comments() - Determines if the comments and comment form should be hidden altogether. This differs from disabling the comments by also hiding the "Comments are closed." message and allows for easily overriding this function in a Child Theme.
  • independent_publisher_footer_credits() - Echoes the theme footer credits. Overriding this function in a Child Theme also applies the changes to Jetpack's Infinite Scroll footer.

Functions in functions.php:

  • independent_publisher_setup() - Sets up theme defaults and registers support for various WordPress features.
  • independent_publisher_stylesheet() - Enqueue the main stylesheet.
  • independent_publisher_wp_fullscreen_title_editor_style() - Enqueue the stylesheet for styling the full-screen visual editor post title so that it closely matches the front-end theme design. To disable, simply override this function in a Child Theme and return nothing.
  • independent_publisher_author_comment_reply_link() - Change the comment reply link to use 'Reply to [Author First Name]'
  • independent_publisher_comment_form_args() - Arguments for comment_form()
  • independent_publisher_remove_textarea() - Move the comment form textarea above the comment fields
  • independent_publisher_add_textarea() - Recreates the comment form textarea HTML for reinclusion in comment form
  • independent_publisher_enhanced_comment_form() - Enqueue enhanced comment form JavaScript
  • independent_publisher_site_logo_icon_js() - Enqueue Site Logo Icon JavaScript if Multi-Author Site enabled
  • independent_publisher_is_multi_author_mode() - Returns true if Multi-Author Mode is enabled
  • independent_publisher_single_author_link() - Returns the author link; defaults to home page when not using multi-author mode
  • independent_publisher_post_word_count() - Returns number of words in a post
  • independent_publisher_first_sentence_excerpt() - Return the post excerpt. If no excerpt set, generates an excerpt using the first sentence.
  • independent_publisher_clean_content() - Cleans the content for display as a Quote or Aside by stripping anything that might screw up formatting
  • independent_publisher_maybe_linkify_the_content() - Returns the post content for Asides and Quotes with the content linked to the permalink, for display on non-Single pages
  • independent_publisher_maybe_linkify_the_excerpt() - Returns the excerpt with the excerpt linked to the permalink, for display on non-Single pages
  • independent_publisher_html_tag_schema() - Returns the proper schema type
  • independent_publisher_show_page_load_progress_bar() - Echos the HTML and JavScript necessary to enable page load progress bar

independent-publisher's People

Contributors

bitzl avatar chrisaldrich avatar davidgnavas avatar dshanske avatar eddylb avatar ekajogja avatar fokkezb avatar foorasteroo avatar hanumanum avatar henryk avatar iwillhappy1314 avatar jeherve avatar joch avatar johlym avatar manishsuwal avatar peterk avatar prcutler avatar raamdev avatar ricmmartins avatar rmmartins avatar ryanmarkel avatar spacek33z avatar stevenatwork avatar tlongren avatar vskjefst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

independent-publisher's Issues

Theme Customizer: Typography and Layout Scheme Selector

Commit 8297167 includes a new Theme Customizer option called "Typography and Layout" that allows you to select a scheme, which is basically just a CSS file inside the css/ directory:

screen shot 2013-12-16 at 5 40 45 pm

I've included three schemes, all of which I'm still tweaking (for example, I'll be moving link color options out of these CSS files and into the Colors section of the Theme Customizer so that you can easily change various colors). For now, these three schemes should give an idea of what's possible.

serif-700px.css is the default scheme, but this could change if everyone thinks a different scheme should be the default.


serif-700px.css

screen shot 2013-12-16 at 5 38 45 pm

sans-serif-700px.css

screen shot 2013-12-16 at 5 38 43 pm

sans-serif-550px.css

screen shot 2013-12-16 at 5 38 38 pm

What's the Best Way to keep Subscription Form Below Single Post Page

I want to keep subscription form after every article ends, above the 'Share a Comment' button.

I am thinking what's the best way to accomplish this. I saw that you have IndiePub plugin called 'indiepub-subscribe-form'
Does that plugin serve this purpose? Even though I know you haven't worked on plugins. I just wanted to know if that's what you want to do with that plugin.

If I don't have plugins to accomplish this, I guess the only way to make this happen is by hard coding it into the theme.

Or is there any easy way to accomplish this?

Supporting child themes

This works beautifully - I set up a child theme and that works fine too.

I wanted to use a Google Web Font in place of Myriad Pro for more reliable display across browsers, but I noticed that overriding the serif-700px.css file in the child wasn't being honoured.

My workaround was to hack functions.php to change the path to the typographic stylesheets to point to child theme directories where used:

Changed:

function register_typography_layout_scheme() {
$typography_layout_scheme = independent_publisher_typography_layout_scheme();
wp_register_style( 'typography-layout-scheme', get_template_directory_uri() . '/css/' . $typography_layout_scheme, array(), '1.0' );
wp_enqueue_style( 'typography-layout-scheme' );
}

to:

function register_typography_layout_scheme() {
$typography_layout_scheme = independent_publisher_typography_layout_scheme();
wp_register_style( 'typography-layout-scheme', get_stylesheet_directory_uri() . '/css/' . $typography_layout_scheme, array(), '1.0' );
wp_enqueue_style( 'typography-layout-scheme' );
}

Works nicely now: http://postbureaucrat.com

Share Buttons

When I first started using Independent Publisher theme, I remember that there was three sharing buttons below the blog post which was floated at the right side. It was minimal and light grey in color.

Since the sharing buttons were there, there is this code in the child theme which lets us add our twitter username at the end of the tweet text when sharing via twitter:

screen shot 2014-02-01 at 6 12 37 pm

What happened to it? Since the sharing buttons aren't there in the new update, I'm using Jetpack sharing buttons, which I don't like. It's too distracting.

Quote Format

I'm still having issues with this. I cleared my cache, tried on my other computer, and stared at the code until I died.

Here's the code I used:

<blockquote>We Greeks are a moody people. Suicide makes sense to us. Putting up Christmas lights after your own daughter does it--that makes no sense. What my <em>yia yia</em> could never understand about America was why everyone pretended to be happy all the time. <cite><a
href="http://www.amazon.com/gp/product/0312428812/ref=as_li_tf_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0312428812&linkCode=as2&tag=radhimorab0c-20">The Virgin Suicides</a></cite></blockquote>

Here's the result:
radhika morabia - opera_2013-10-19_18-51-15

And here's how my Wordpress Dashboard looks (just in case I selected something wrong):
_2013-10-19_18-50-42

@manishsuwal Could you try previewing a quote and posting that here, too? I'm really not sure if it's just me or the theme.

(Disregard the child theme issue, @raamdev. I'm trying to make it work with the normal theme first, then I'm going to add on the child theme.)

How to display comment box like in demo ?

In single posts comment form button is not displayed like in demo, Is there any special settings to be enabled for that ?

UPDATE : actually the comments are set to be closed for old articles. Sorry for the trouble, Please tag this issue as solved.

Social Links

Can you explain how you did the social buttons at the footer of posts? ( I know how to install some plugin or add html to that ).

Trying to understand your line of thinking.

Nice work!!!

Getting our blog up at http://go.iugu.com

Formatting Standard Posts for the Blog, Archive, and Search Pages

I'm forking discussion to here from #12 about how to show Standard Posts on the Blog, Archive, and Search pages. I'd love for you to tell me which of the images below you like best.

I'm working on creating a compact version of the standard posts to show on the Blog, Archive, and Search pages. Right now the Blog and Archive pages show the full post content instead of a short excerpt with a link to the longer version.

I agree that including the featured image (or any image for that matter) on these pages doesn't make sense, as mixing those with posts that don't have any images won't look very nice. The goal is always simplicity and readability. We want the Blog, Archive, and Search pages to be easy to scan through.

As a base point for designing, I started thinking about the way Medium does it:

screen shot 2013-10-15 at 5 23 27 pm

It looks nice, but keep in mind Medium is geared for multiple authors. The primary focus for Independent Publisher will be single-author mode (I do, however, eventually want to fully support multi-author mode). With single-author mode, the author photo on the right of each post title doesn't really make sense.

Here's my first iteration. Clicking on the post title or the post excerpt will lead to the full post:

screen shot 2013-10-15 at 5 20 31 pm

However, it's important to remember that other post formats might be mixed in here, such as posts with the Aside format:

screen shot 2013-10-15 at 5 32 54 pm

I feel that lessens the prominence of the Standard Post Format, making them feel less important and seemingly contain less "stuff" than the really do. What if we added a green button with "Continue Reading → " or, even indicated the number of words the post contains on the green button, bringing further attention to the fact that there's more to this post:

screen shot 2013-10-15 at 5 30 09 pm

And here's what that might look like if the site did not have any posts with the Aside format:

screen shot 2013-10-15 at 5 20 17 pm

Another option is to change the background on Standard Format Posts to make them stand out more from Asides:

screen shot 2013-10-15 at 5 46 26 pm

At first I liked this, but after giving some thought for a few minutes I realized that it makes the page feel unnecessarily busy. Again, reader-focused and simple is what we're aiming for here. I think the green button is more than enough to indicate "this post is different and there's more to it!".

@rmorabia @manishsuwal What do you think?

Excerpt Shows Image Caption

I usually post an image before writing blog post. The 'one-line excerpt' and 'default excerpt' both displayed my image caption before displaying the blog post excerpt.

For example: I have 'Time Boxing' blog post with a captioned image -> 'Time Boxing Clock that I use on Kitchen'
screen shot 2014-01-02 at 9 34 03 am

The one-line excerpt displays the caption
screen shot 2014-01-02 at 9 32 20 am

@raamdev

Improve Theme Option Intelligence

We need to Improve theme option intelligence. For example, "Use Enhanced Post Excerpts" and "Show Full Content for First Post" should only show up when "Use Excerpts" is enabled, as those options are irrelevant when not using excerpts.

How to remove hyphenation?

I'm using Child Theme for a website.

There's some CSS in the parent theme that hyphenates words. I don't like that. I want words to fully appear on one line or the next, not be split between both.

You can see an example of what I don't want happening in the title and contents here:
screen-shot-2013-10-21-at-8 20 09-pmred

You can see how the word entrepreneurship is hyphenated there, as well as some of the words at the end of lines in the second paragraph. Might not appear in all browsers, but there's some CSS there in the theme that's causing it.

Any chance you know what's causing it? I tried to figure it out but couldn't.

MailChimp Subscribe Form Doesn't Display Properly. Have to Change CSS Every Time.

Subscribe button from Mailchimp display's poorly in Independent Publisher.

I use the code for 'super slim form' from MailChimp:
screen shot 2014-01-26 at 11 34 38 am

Everytime I use it, I have to change the CSS to make it look proper. I always waste around half hour changing the CSS.

It looks like this:
screen shot 2014-01-26 at 11 49 03 am
screen shot 2014-01-26 at 11 49 18 am

Just wondering if you could keep support for MailChimp like that of JetPack social sharing buttons.

And it would be great if you could provide me the code that you used to keep MailChimp subscription form for IndependentPublisher.me sidebar:
screen shot 2014-01-26 at 11 50 23 am

And also code for MailChimp form in the About page:
screen shot 2014-01-26 at 11 50 36 am

Tables Are Not Responsive

I created a table through 'Text' editor. And figured it isn't responsive in mobile device. We need to scroll right and left to view tables.
screen shot 2014-01-24 at 9 33 34 pm

You can replicate this on your localhost by using the following code on the 'Text' editor:

<h1 style="text-align: center;">Tags</h1>
<table>
<tbody>
<tr>
<td>
<ul>
    <li>Custom Header</li>
    <li>Custom Background</li>
    <li>Custom Color</li>
    <li>Custom Menu</li>
    <li>RTL Language Support</li>
    <li>Translation Ready</li>
</ul>
</td>
<td>
<ul>
    <li>Three Column</li>
    <li>Two Column</li>
    <li>Single Column</li>
    <li>Featured Images</li>
    <li>Editor Style</li>
</ul>
</td>
<td>
<ul>
    <li>Left Sidebar</li>
    <li>Right Sidebar</li>
    <li>Light</li>
    <li>Holiday</li>
    <li>Photoblogging</li>
</ul>
</td>
<td>
<ul>
    <li>Seasonal</li>
    <li>Sticky Post</li>
    <li>Theme Options</li>
    <li>Customizer</li>
    <li>Threaded Comments</li>
</ul>
</td>
</tr>
</tbody>
</table>

I tried to see if I could fix it, but couldn't.

Maybe bring down the tables when viewing it in a mobile device?

What do you think @raamdev ?

Improve Theme Option Organization

Right now theme options show up as a list of checkboxes in Appearance → Customize → Theme Options. They should probably be better organized, either in different sections within the Customizer or by placing the options in the relevant sections in the Settings (post excerpt related options could go in Settings → Reading).

New CSS class for Post Subtitles

@manishsuwal @rmorabia I've added a new CSS class called subtitle that can be used to create a subtitle underneath a post title:

<h2 class="subtitle">Do what you love and do it often.</h2>

And here's how it shows up when viewing the post:

screen shot 2013-10-24 at 4 17 57 pm

Full-Width Featured Images

As of 36bc0fe, full-width featured images are supported:

screen shot 2013-10-09 at 3 01 54 pm

You can enable this feature by selecting a Featured Image for a post and then adding a new Custom Field to the post with the name full_width_featured_image and a value of true:

screen shot 2013-10-09 at 3 03 17 pm

You'll want to crop your Featured Image to something applicable for a full-width image (i.e., something more rectangle than square).

Eventually I want to make enabling this easier to enable, probably by adding a checkbox to the Featured Image Meta Box that says "Use as Full-Width Image".

@rmorabia @manishsuwal If you could test this for me and give any feedback, I would appreciate it!

Archives Page

Is there a way to get the archives from the 404 page without someone 404'ing?

Category RSS Error

I just created a category named 'Journal' and I want to make it possible for people to subscribe it through RSS feed. I'm thinking of setting up MailChimp Campaign for it.

But the feed ( http://enwil.com/category/journals/feed/ ) shows this error:

screen shot 2014-01-02 at 6 37 05 pm

Is it to do with the theme or something else? I can replicate the same problem with all other categories as well.

Header image doesn't appear on single pages

When a Header Image is selected in the Customizer, that image only appears on the home page and archive pages, not on single pages. Instead, the single pages show the author's image (pulled from Gravatar).

This causes confusion when someone sets the header image and expects it to be used everywhere.

The solution is to detect if there is a header image selected and show it on all pages, but only if Multi Author Mode is disabled. When Multi Author Mode is enabled, the header image acts as the site's logo and therefore should not show in place of the author's image on single posts.

Centered blog info on browsers < 1200px

@rmorabia @manishsuwal My latest commit centers the blog info on browsers < 1200px at the top and puts the nav bar right underneath that, also centered:

screen shot 2013-10-04 at 1 06 15 pm

This actually looks really nice on mobile browsers:

centered-ip

But I'm curious what you think about it for browsers between 500px and 1200px wide. Keep in mind that single pages still don't have the header at the top; they're still clean with the author info underneath the post.

Would you prefer less whitespace at the top and a more compact blog info section, all left-aligned?

For example:

screen shot 2013-10-04 at 1 10 47 pm

Or do you like the new header?

Further Reading (Efficient Related Post)

I have been using the Efficient Related Posts plugin and it used to show under 'Further Reading' section below the 'Share a Comments' button after every blog posts.

But after the new update, it isn't there anymore. There is no 'Further Reading' section where 'Efficient Related Posts' shows up.

One line summary option disappeared?

I just uploaded the files from the latest commit from Dec 31 and my blog is showing full articles on the home and I can't find the theme options to use just one line summaries,

Preparing for Official Release

I'd like to get ready for an official release of the Independent Publisher theme to the WordPress.org Themes Directory.

@manishsuwal @rmorabia Are there any issues or areas in the theme that you feel still need work? If so, please reply here and I'll open issues for each item and start working towards an official release. Thanks so much for your help, both of you. It is SO appreciated! :)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.