The Dottoro Theme provides an extremely flexible support for creating subheaders. There are a couple of ready-made subheaders you can choose from and you can also create custom ones. The contents of custom subheaders can be edited the same way as the contents of pages and posts. You can also use shortcodes in them.
This is in fact only a frame for displaying the title. You can have an optional HTML content inside the shortcode in which you can use 3 other shortcodes along the usual ones.
Displays the subheader title of the page (see Subheader Title option). If no subheader title is specified, the page title will be displayed.
Displays the name of the category assigned to the page. This shortcode can be used in the subheaders on single post pages.
Displays the subheader title of the closest matching blog, news or portfolio page. If the matching page has no subheader title, its page title will be displayed. This shortcode can be used in the subheaders on single post pages and also on category, tag and date archive pages. The closest matching page will be selected according to criteria set in Page Priority options.
Similarly to the previous shortcode this, too, is only a frame for displaying the title. You can have an optional HTML content inside the shortcode in which you can use 3 other shortcodes along the usual ones:
Displays the subheader teaser of the page (see Subheader Teaser option). The subheader teaser of category and tag pages is the description of categories and tags assigned in WordPress. The theme will create the teasers of date and other special pages automatically. If you want to change them, you have to edit the language files. The teaser is always empty for single post pages.
Displays the description of the category assigned to the page. This shortcode can be used in the subheaders on single post pages.
Displays the subheader teaser of the closest matching blog, news or portfolio page. This shortcode can be used in the subheaders on single post pages and also on category, tag and date archive pages. The closest matching page will be selected according to criteria set in Page Priority options.
Boolean that sets whether the title or teaser should appear as a plain text or a link. The link always points to the proper page; to itself in case of using the [own_title] and [own_teaser] shortcodes, to the category page in case of using the [category_title] and [category_teaser] shortcodes and to the matching page in case of using the [matching_title] and [matching_teaser] shortcodes.
Dottoro Theme comes with a number of predefined subheaders designed to meet the most frequent needs. Predefined subheaders contain subheader specific shortcodes introduced in the previous section. To fully understand predefined subheaders we recommend you reading the previous section as well.
In that case if predefined subheaders don't meet your expectations, you can always create custom subheaders. The predefined subheaders give you a good basis to create your own subheaders. For further details, please see the Creating Subheaders section.
Details of predefined subheaders:Name | Source |
---|---|
Own |
This subheader displays the page title and teaser under each other on the left.
|
Own 2 Cols |
The subheader displays the page title and teaser side by side; the title on the left, the teaser on the right.
|
Category |
This subheader displays the title (category name) and teaser (category description) of the category page assigned to the page under each other on the left.
You can use this subheader on single post pages to display information about the category the post belongs to in the subheader.
|
Category 2 Cols |
Similarly to the 'category' subheader it displays the category page title and teaser, but the title and teaser appear side by side; the title on the left, the teaser on the right.
|
Matching Page |
This subheader displays the title of the closest matching post list page.
You can use this shortcode on single post pages and also on category, tag and date archive pages.
The closest matching page will be selected according to criteria set in Page Priority options.
Use this subheader if your website contains multiple list pages in the same post type and you would like the subheaders of single post pages to correspond to the subheader of the list pages the post is displayed on.
|
Matching Page 2 Cols |
Similarly to the 'matching page' subheader it displays the closest matching page title and teaser, but the title and teaser appear side by side; the title on the left, the teaser on the right.
|
To create a custom subheader:
1 | Click 'Add New' at the top of the page. |
2 | Enter the name of the subheader. Always use a unique name for each subheader, so you can identify it later. |
3 |
Create the content of the subheader.
The contents of the subheaders can be edited the same way as the contents of your pages and posts.
Subheaders can contain shortcodes; e.g. with the [widget_area] shortcode you can place widgets inside the content of subheaders.
Subheaders often contain information about the page (title, teaser).
You can display this information with the [subheader_title] and [subheader_teaser] shortcodes.
|
4 | After creating the content, click 'Publish'. |
Additional steps:
The only thing you should pay attention to is if you want to display a gallery of a subheader, then both the post id of the subheader and the name of the gallery must be specified (such as "23:gallery1").
For further details, please see the Galleries section.