Skip to content
Victor Jonsson edited this page Mar 2, 2015 · 9 revisions

Copy the CSS in /css/template.css located in the Arlima plugin directory to a CSS-file of your own. You can for example add the template CSS to the end of the file style.css located in your theme directory.

For Arlima to know which CSS-files that should be loaded in the article preview you must hook into the filter arlima_template_stylesheets. The filter should return an array with CSS-files, the first file in the array will also be loaded into the text editor in the list manager.

<?php
function my_arlima_css($files) {
    $files[] = get_stylesheet_directory_uri() . '/style.css';
    return $files;
}
add_filter('arlima_template_stylesheets', 'my_arlima_css');

As of version 3.1.* (3.1.beta.35)

The CSS-files declared using this filter will become enqueued on front end by Arlima. To prevent this you can return false from the filter callback. Example:

add_filter('arlima_template_stylesheets', function($files) {
    if( !is_admin() )
        return false; // don't let arlima enqueue any styles on front end

    $files[] = get_stylesheet_directory_uri() . '/arlima-styles.css';
    return $files;
});

This Wordpress plugin was created by Swedish newspaper Västerbottens-Kuriren to give its editorial staff an easy to use tool for customizing the front pages of their online magazines.

Installing Arlima

  1. Download the latest release from github and unzip the folder in your plugin directory.
  2. Open up wp-admin and activate the plugin.
  3. Go to "Article lists" -> "Edit lists" in wp-admin and create your first article list.
  4. Open up a page (or create it) in wp-admin. Down to the right you will see a meta box labeled "Arlima" where you choose the list that you created on step 2.
  5. Go to "Article lists" -> "Manage lists" and start stuffing your article list with interesting content.

Top links

Clone this wiki locally