Radio Station Plugin Displays

← Back to Documentation Index

For live display examples see Radio Station Demo Site.

Styling

Default Styles

You can find the base styles in the /css directory of the plugin, prefixed with rs-. There is a CSS file for Schedule Views, Shortcodes (also used for Widgets) and Page Templates. The default styles have intionally kept fairly minimal so as to be compatible with most themes.

Custom Styling

You may wish to add your own styles to suit your site's look and feel. One easy way to do this is to add your own rs-custom.css to your Child Theme's directory, and add more specific style rules that modify or override the existing styles. Radio Station will automatically detect the presence of this file and enqueue it. This is preferable to modifying the base style files, as your changes will be overwritten in a plugin update.

Automatic Pages

Master Schedule Page

Since one of the main purposes of this plugin is to provide your listeners with a useable Schedule for your Shows, having the ability to easily assign a page and display a selected schedule view on it is a natural option to have. To do this, simply create a new WordPress Page and title it as desired, then go to the Radio Station Plugin Settings page and select that Page for this Option and Save. This will also make your Schedule page discoverable via the plugin's Data Endpoints.

By enabling the "Automatic Display" option for this page, the Master Schedule view with default attributes will automatically replace the content of that page when displayed. If you want to use other display options to customize what displays in the Schedule - or wish to combine it with other content on that page - then disable this option and instead use the Master Schedule Shortcode [master-schedule] in the page content instead.

Archive Pages

Since Shows, Playlists and Genre Archives are automatically generated via the WordPress archive template specific to a Theme, this makes modifying them consistently an impossible task. Instead, the option has been creating to assign Archive Pages for these that can then use plugin shortcodes to display these Archives in a different and more meaningful way. Of course doing this is entirely optional, and not always a priority, but at least the option is there for when it is needed.

Page Templates

If you are have upgraded to 2.3.0, it is recommended you read this section carefully in case you need to take action! (New users to the plugin on the other hand probably do not need to know these details unless wanting to customize something with the way the templates operate.)

Since 2.3.0, Radio Station now uses a content filter method instead of single page templates to display the content for it's Post Types. This is because the page templates used previously were based on the default twenty-something series of WordPress themes, and so unfortunately these templates do not always play well with other themes. So to become theme-agnostic - to have a stable display output independent of the active theme - the content filtering method is now used instead.

Page Template Selection

In order to do this though, a standard page template (such as page.php, single.php or singular.php) still needs to be used, and the content is displayed within it. You can choose which template to use for a Post Type in the Plugin Options page. The main reason this option has been made available is that it is just not possible to determine whether a Theme displays the Featured Image for a Show in the standard template or not. So having this as an option solves that problem. See Images below for more details on this.

WordPress Template Hierarchy

Obviously, Radio Station still has to honour the WordPress Template Hierarchy. So for example, if you create your own custom single-show.php template for Shows and place it in your Child Theme, as expected it will be used instead of the standard page template selected. Additionally, to ensure this override really takes precedence, it should be noted that the content will not be filtered by default when a custom template is found and used (read on...)

Important Note on Legacy Templates!

What this means is also that if you have previously copied a legacy template into your Child Theme, you will need to take action to see the updated display. And since it is indicated you might want to do this previous version's documentation, it is quite possible that you have! In this case, there are two main options. If you have already customized a template to match your Theme, you can enable the "Combined Method" for that template on the Plugin Settings page, which will then use both the page template and the content filtering method together.

If you have not customized templates to match your Theme, and yet they are present, then it is recommended that you remove the old templates from your Child Theme entirely. This will allow the plugin to work via the new content filter method with the standard template within your theme. The Legacy templates names that you should look for and remove are: single-show.php, single-playlist.php, archive-playlist.php, playlist-archive-template.php, show-blog-archive-template.php

We recognize this is may be a rather confusing and complex situation for existing users transitioning to 2.3.0, and if this is the case suggest rereading these section until it becomes clear. We are however confident that our solution going forward here is the best one, as it maintains backwards compatibility, honours the WordPress Template Hierarchy and enables implementing the revamped content displays. Fortunately, the majority of users will not be affected by these changes at all, but if you are the above options should easily resolve this.

Show Page Content

The Show Page Content display has undergone the biggest of changes so far within the plugin, with an entirely new responsive layout for Shows that is displayed within the content area. This has required a lot of thought to allow for in-built flexibility, because it has to account for variations of what information is supplied for a Show and what is not. In other words, whether it is bare or full it, still needs to look good! Note also that there are some Plugin Options relating to this layout, namely where the info blocks are floated, and whether the content sections below are tabbed or display in full in a series.

Override Page Content

Previous to 2.3.0, Schedule Overrides did not have their own page display enabled. We decided to change this, so in most ways they are now closer to Shows and handled in the same way. The main difference being that they have a single specific date and time block for the scheduled override timeslot instead of Shifts.

Playlist Page Content

Currently this is a simple table of Tracks for the specified Playlist, taken from the Legacy template. This will receive further attention in the future to allow for a more customizable display.

Images

Show Images

Since 2.3.0, Featured Images and Show Avatars have been split into two different images. This was done so the Featured Image could be treated in a more standard way like in a WordPress post or page - as the wide image at the top of a post. Whereas, a Show Avatar is more likely to be smaller and square like a logo. Note than existing Show Featured Images prior to 2.3.0 are automatically transferred to Show Avatars as that was their only usage in previous versions, allowing for the new dual usage, so there is no need manually make any changes to those.

Show Featured Image

A Show Featured Image is intended to display at the top of a single Show Page, just as it might on a standard post or page. However, depending on the page template you are using for Shows, it might not automatically display there if the template does not include it. This is one reason why there is an option to choose between the page.php, single.php and singular.php templates for the Show Page Template on the Plugin Settings Page. And if for some reason your chosen template does not display the Featured Image, you can use the Show Content Header option below.

Show Avatar

Primarily displayed on the single Show Page content layout in the first information box. Also may be displayed in the Current Show and Upcoming Show Widgets when that widget option is checked (or in the corresponding Widget Shortcodes) - with an optional display width option. There are also contextual filters available throughout the plugin which enable adjusting the image size of the Show Avatar display. Show Avatars also display (by default) in the Show Archive Shortcode and Genre Archive Shortcode. They can also be shown in the Master Schedule Shortcode if desired (the default there is to display for the Tabbed and List Views only.)

Show Content Header

If your chosen Show template (eg. page.php) does not display the Featured Image above the Show title automatically, you can enable this option via Plugin Settings Page. This will provide an additional Content Header Image selection on the Show edit screen image box (below the Show Avatar.) Adding this image to a Show will mean it is displayed as a Header on the Show page - the only difference being it will be below the Show title and not above it like a Featured Image would.

Schedule Override Images

Since 2.3.0, image support has been added to Schedule Overrides so that they behave just like Shows in this respect. So the above sections on Show Images also now apply to Schedule Overrides.

[Pro] Genre Images

In Radio Station Pro, images can also be assigned to Genre taxonomy terms via the WordPress Admin Taxonomy Editing interface. These may then optionally be displayed in the Genre Archive Shortcode to provide another visual level to that Show list display.

← Back to Documentation Index