Skip to content
This repository was archived by the owner on Sep 17, 2026. It is now read-only.

Theme set up

SilentComics edited this page Oct 8, 2016 · 26 revisions

Installation

  1. Download Strip theme

  2. Upload Strip directory into your WordPress installation’s theme folder (wp-content/themes).

  3. In the WordPress backend, find and activate the theme under Appearance —> Themes.

Setup

  1. Create your menu and submenus. You can add a header image, a background image and change the background colour.

  2. To use your own logo in svg format, you need to edit header.php. Replace the Base64 code found in assets/inline-logo.svg.php with your own logo. You can then call your logo in header.php replacing this line: <?php get_template_part('library/inline', 'logo.svg'); ?>. Or remove that line if you don’t bother about a svg logo. You can also add a custom image logo from the customizer → site identity → logo, just use the site text title or both.

  3. To publish a comic you can post under “comic” or “add a new comic”. Add a story name to sort comics by titles for multiple stories. Each series will live in a loop of its own. The default for unclassified comic stories is “draft”. There is an archive page template for all comic stories taxonomies: archive-comic.php. Since the theme has archive ordered by term, you can have any comics story archive on its own page. You need to write your own taxonomy-$taxonomy-$term.php for each story, after taxonomy-story-draft.php. e.g. if you created a story called “name”, you must add a file taxonomy-story-new.php. A “new” title link will show in the left hand side above each individual “name” comic posts. This will take you to page displaying all “name” comics in ascendant order. You can change the order in the template. The url will be http://yoururl/story/name

  4. Post each comic episode as a single image or several images to form one comic. The theme allows for high resolution pictures. For large images, the recommended width is 1920px. The theme uses native WordPress galleries for galleries posted in comics and regular posts. Clicking on one image will take the user to a single image page. So a comics can read panel by panel. You can go to the next single panel by click or keyboard navigation (left and right arrows). For galleries, you can use an image slider plugin instead of the single image page template. These plugins work well with the theme: RoyalSlider, Photoswipe Masonry Gallery or Portfolio Slideshow.

Managing comics

Archive by terms -> see above

Templates: archive.php This is the archive for your regular blog posts, unless you play with functions.php to change this behaviour, the comics won’t be archived in this page.

Comics specific archive templates: archive-comic.php This is where all your comics are archived in ascending order, by title. Pagination is set by default to the default posts per page set in WordPress dashboard > Settings > Reading Blog pages show at most number. You can change the 'posts_per_page' number.

Archive page Story Archive page sample

archive-story.php This is a template you can use to archive your comics in a four columns grids. Archived by title in descending order by default. You can add a story term (your story name) to 'story' You can change 'posts_per_page' number, use -1 to retrieve all the comics. Change 'DESC' to 'ASC' if you want the comics to appear in chronological order, starting from the first.

Archive page Story Archive page sample

archive-titles.php This template call all comics episodes but will only display their titles, in ascending order. It’s basically a single row of titles, grouped by stories.

taxonomy-story-draft.php The fallback for all uncategorized stories — no pagination. You should have a category It’s a good reminder for your unpublished stories

taxonomy-story-name.php A sample template — replace “name” by your own story title and duplicate this template with new details for each new story

A word about pagination.

Pagination behaviour in WordPress is a fragile thing. As in, some changes can result in unpredictable behaviour. I have tried to comment the templates to avoid unexpected results such as breaking pagination or not displaying admin dashboard as expected.

A two columns comic post Example, a two columns comic post

Clicking on one image will take the user to one single image so the story can read panel by panel. Navigate by click or keyboard arrows.

Single panel / image view Single panel/image view

For galleries, you can use an image slider plugin instead of the single image page. Based on tests, I would recommend RoyalSlider or Portfolio Slideshow Pro.

RoyalSlider panel view RoyalSlider panel view

RoyalSlider panel view RoyalSlider panel view — transition

You can use the widget to display four columns above the footer.

customise dashboard Customise

Do you know how this theme can be improved?

Don’t hesitate to contribute or review the theme. PRs Welcome

Want to help in any other way? You are more than welcome to support this project ♥. Thank you!

See you again!visit the Silent Comics site

Clone this wiki locally