FAQ
Questions about the Secondary Title plugin? Our FAQ has the answers on setup, customization, and troubleshooting. For developers or WordPress newbies, get the most out of the plugin here.
1. How do I install the plugin?
Answer: Download the plugin, upload it to your WordPress plugin directory, and activate it. You can also install it directly from the WordPress Plugin Directory.
2. How do I add a secondary title?
Answer: Go to the post/page edit screen and look for the "Secondary Title" metabox. Enter your secondary title there.
3. Can I customize the secondary title output?
Answer: Yes, you can use the the_secondary_title
filter to customize the output. Here's an example of how to use the filter:
/**
* Customize the secondary title output.
*
* @param string $title The secondary title.
* @return string The customized secondary title.
*/
function custom_secondary_title_output( $title ) {
return '<span style="color: red;">' . $title . '</span>';
}
add_filter( 'the_secondary_title', 'custom_secondary_title_output' );
For more information on using filters, check out the WordPress Filter Reference.
4. Can I use this plugin with custom post types?
Answer: Yes, the plugin supports custom post types. You can use the secondary_title_post_types
filter to specify which post types to support. Here's an example:
/**
* Add custom post-type support.
*
* @param array $post_types The supported post types.
* @return array The updated post types.
*/
function custom_secondary_title_post_types( $post_types ) {
$post_types[] = 'my_custom_post_type';
return $post_types;
}
add_filter( 'secondary_title_post_types', 'custom_secondary_title_post_types' );
For more information on custom post types, check out the WordPress Codex.
5. Is the plugin compatible with WordPress Multisite?
Answer: Yes, the plugin is compatible with WordPress Multisite.
6. How do I style the secondary title?
Answer: You can use CSS to style the secondary title. The plugin adds a secondary-title
class to the title element, which you can target in your stylesheet. For example:
.secondary-title {
font-size: 18px;
font-weight: bold;
}
For more information on styling, check out the WordPress CSS documentation.
7. Can I use this plugin with page builders like Elementor or Beaver Builder?
Answer: Yes, the plugin is compatible with popular page builders. You may need to use a custom module or widget to display the secondary title. Check out the Elementor documentation and Beaver Builder documentation for more information.
8. How do I translate the secondary title?
Answer: The plugin is translation-ready. You can use a translation plugin like WPML or Polylang to translate the secondary title. For more information on translating plugins, check out the WordPress Translation documentation.
9. Can I use this plugin with other title-related plugins?
Answer: The plugin should work with other title-related plugins, but there may be conflicts. Please test the plugins together before using them on a live site.
10. How do I get support for the plugin?
Answer: You can get support for the plugin by opening a ticket on the WordPress.org support forum or by contacting the plugin author directly.
11. Can I contribute to the plugin development?
Answer: Yes, the plugin is open-source. You can contribute to the plugin development by submitting pull requests on GitHub or by reporting issues on the WordPress.org support forum. For more information on contributing to open-source plugins, check out the WordPress Plugin Development documentation.
12. How do I display the secondary title on a specific page?
Answer: You can use the secondary_title_display
filter to specify which pages to display the secondary title on. For example:
/**
* Customize the secondary title display.
*
* @param bool $display Whether to display the secondary title.
* @return bool The updated display value.
*/
function custom_secondary_title_display( $display ) {
if ( is_page( 'my-page' ) ) {
$display = true;
}
return $display;
}
add_filter( 'secondary_title_display', 'custom_secondary_title_display' );
13. Can I use shortcodes to display the secondary title?
Answer: Yes, you can use the [secondary_title]
shortcode to display the secondary title in your content. For example:
[secondary_title]
14. How do I add a secondary title to a custom post type?
Answer: You can use the secondary_title_post_type_support
filter to add support for custom post types. For example:
/**
* Add custom post-type support.
*
* @param array $support The supported post types.
* @return array The updated post types.
*/
function custom_secondary_title_post_type_support( $support ) {
$support[] = 'my_custom_post_type';
return $support;
}
add_filter( 'secondary_title_post_type_support', 'custom_secondary_title_post_type_support' );