Skip to content
RT-Theme 20 WordPress Theme

Miscellaneous

A one-page design, like the one-page demo, takes two steps:

  1. Create a page whose content rows have unique IDs.
  2. Create a navigation menu whose items point at those IDs.

We recommend WPBakery Page Builder for this, because it makes the page much easier to manage.

  1. Split your content into several rows. Give every row that the menu should scroll to its own row ID in the row settings.

    The WPBakery Page Builder row settings with the Row ID field filled in

  2. Create your menu and add a Custom Links item that points at the row ID, for example #about.

    A Custom Links menu item whose URL points at a row ID on the one-page design

RT-Theme 20 comes with a large number of shortcodes. They add pre-designed content blocks to the content area of any page. You can also use some of them in a text widget or any other text area. WordPress runs a shortcode when the page is viewed on your site: a contact form shortcode, for example, shows a contact form where you placed it.

We built all the complex pages of the demo sites with RT-Theme 20 shortcodes. Complex shortcodes are hard to manage by hand, so the theme includes WPBakery Page Builder, which lets you change them with a drag-and-drop interface. Most of the shortcodes are also available as WPBakery Page Builder elements.

In the Classic Editor, the editor has two modes: Visual and Text (called HTML in some languages). To insert shortcodes automatically, use the Visual mode.

There are two ways to open the shortcode generator and insert a shortcode:

  1. In the Classic Editor, click the [</>] button above the editor (in Visual mode).
  2. Click </> Shortcodes in the WordPress admin bar.

Either one opens a pop-up with a list of the available shortcodes. The shortcode you select shows two or three sections:

The shortcode button above the Classic Editor and the Shortcodes menu in the admin bar that open the shortcode generator

The shortcode generator window: the shortcode list (1), the explanation (2), the generated shortcode (3) and the parameter options (4)

When you click the shortcodes button, a pop-up opens with:

  1. A list of the available shortcodes.
  2. A section on the left that explains the shortcode and its parameters.
  3. A section on the right with a ready-made shortcode. Adjust it with the parameters explained on the left. When you are done, select the shortcode, copy it and paste it into the page content, a text area or a text widget.
  4. Each parameter and its options. This list can be very long, depending on the shortcode you chose.

Adjust the parameters while the window is open, before you insert the shortcode (see also the icon help below). Once you copy the shortcode and close the window, paste it where you want it to run.

RT-Theme 20 uses font icons. You call an icon by its CSS class name. Some shortcodes have a parameter such as icon="": put the icon’s class name between the quotes.

To find the right name and see what an icon looks like, click Icons in the WordPress admin bar. A preview list of all available icons opens. Narrow the list with its search field. When you find your icon, select its class name, copy it and paste it between the quotes of the icon="" parameter. The result is part of the shortcode, for example icon="icon-rocket".

The Icons window from the admin bar with the icon list, the search field and the CSS class names

The theme’s icons are font based. We hand-picked them on the free Fontello service. With Fontello you can build your own icon set and use it with RT-Theme 20:

  1. Create a child theme first (highly recommended). The package includes one, rt-theme-20-child.zip.

  2. Go to the Fontello website and click the Import button.

    The Fontello website with the Import button in the toolbar

  3. Select the config.json file from the theme’s rt-theme-20/css/fontello/ folder.

  4. After the import, some icons are highlighted. Click other icons to add them, or add your own SVG files with the Custom Icons bar.

  5. When you are ready, download the generated package and unzip it on your computer. Upload the fontello folder into the css folder of your child theme. Create the css folder if you do not have one.

Reload your admin and the new icons appear. A general guide is in Adding custom font icons.

Add your social profiles in the Customizer, under the global Social Media Options.

The Social Media Options panel in the Customizer with the text, link and link target fields of each social icon

For every social icon you can set:

  • Text: the text that appears when visitors hover over the icon.
  • Link: the address the icon opens.
  • Link Target: whether the link opens in the same window or a new tab.

To show the icons at the top of the page and in the footer, turn on the position toggles in the RT-Theme 20 Social Media Options. To show the icons anywhere else, add the social icons shortcode to any content area.

Every icon needs a valid link. The email and Skype icons take a special format, explained in Social Media on the Customizer page.

  1. Go to Appearance › Menus. Create a new menu, or use the default footer menu, and add your menu items as described in Navigations.
  2. Save the menu and assign it to the Footer Navigation location.
  3. View your site. The menu appears in the footer.

General help is in Creating menus.

Set the copyright text in the Customizer. See Copyrights.

The footer can hold widgets. Add them in the Customizer or under Appearance › Widgets, where you add a widget block to one of the footer widget areas. Widgets in the footer areas show in the footer columns on your site. The widget areas are explained in Widgets.

By default, WordPress search does not look into the custom fields of the custom post types. The search results do not include any text you entered in those fields. To include them, use a plugin from wordpress.org, for example Custom Search Plugin or Custom Fields Search.

A few things you may run into, or have a question about.

When you choose different colour sets for nested rows and columns, the result may not be what you expect. This is because of the order in which the sets load in the CSS files: each set overrides the one before it, in the order of the set list. So Color Set 1 inside Color Set 3 may not work, because Color Set 1 loads before Color Set 3.

Tables use the Bootstrap CSS. A table without the table class is not styled. You can copy example code from the Bootstrap table examples.

The theme’s WPBakery Page Builder configuration file decides which WPBakery elements are available. Where it is and how to change it is explained in WPBakery Page Builder.

We turned off some parts of the Bootstrap library. You can turn them on again by changing the SASS files that come with the theme, in the css/sass folder.

Turning off the theme’s custom post types

Section titled “Turning off the theme’s custom post types”

You can turn off each custom post type of the theme with a filter. Add the code to the functions.php file of your child theme, so that a theme update does not remove it. Keep only the lines of the post types you want to turn off:

function rt_active() {
return false;
}
add_filter( 'product_showcase_active', 'rt_active', 0 );
add_filter( 'testimonials_active', 'rt_active', 0 );
add_filter( 'team_active', 'rt_active', 0 );

When the blog list uses the masonry layout, slideshow images are always cropped.

A blank screen after activating WPBakery Page Builder, or a Customizer that does not load, usually means the server runs out of PHP memory. See Raising the PHP memory limit.

A child theme has its own Customizer settings. After you activate it, set the Customizer up again or import the settings you exported from the parent theme. See Child themes and Customizer settings.