Support » Plugin: Subtitles » Subtitles don’t show up at pages

  • Resolved Marc Bijl

    (@newoceans)


    Hi, I’m using subtitles with OceanWP Theme (https://nl.wordpress.org/themes/oceanwp) and Elementor (https://nl.wordpress.org/plugins/elementor).

    The subtitles show up at the blog page, and the blog post, where OceanWP/Elementor handles them together as a H1 title split up in 2 classes:

    – entry-title-primary
    – entry-subtitle

    I can even turn them on and off, which is great!

    However, at my pages they don’t show up, or just the first part only, as a ‘page header’ class:

    – page-header-title clr

    I’ve read the FAQ, which says something like:

    Subtitles relies on two things to work properly: 1) the_title being present in your theme and 2) the WordPress Loop. This plugin works by automatically filtering all appropriate post titles so that you are not put in the position of needing to open your theme files manually and using the custom template tags that are available in this plugin.

    Some themes use titles outside of the standard WordPress Loop, which means that Subtitles won’t touch those. If you would like to use subtitles in a non-standard area of your site, outside of the Loop, then you can either change the views that are supported by the plugin or manually use the template tags that are available to you in this plugin.

    Is there a way I can add title AND subtitle to my pages?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mrinal Kanti Roy

    (@mkrdip)

    Hi there,

    Right now, I can see the OceanWP theme uses different title call for single post and page, single page different than the standard WordPress, this is why Subtitles do not work there, see: https://themes.svn.wordpress.org/oceanwp/1.5.5/partials/page-header.php

    This line: <<?php echo esc_attr( $heading ); ?> class="page-header-title clr"<?php oceanwp_schema_markup( 'headline' ); ?>><?php echo wp_kses_post( oceanwp_title() ); ?></<?php echo esc_attr( $heading ); ?>>

    I think you should use Custom Template tags for the page. Afte the above line.
    https://github.com/wecobble/Subtitles#using-template-tags

    Hope this helps.

    Cheers.

    Hi, thnx very much for taking time to dive into this question!

    For now I’ve kind of solved it through CSS; in OceanWP I can enter a custom page header title and subheading per page, and with CSS I can turn these into the exact same font properties as the title and subtitle of the posts.

    But I’ll certainly take a look at your suggestion. Do you know if there’s a way to do this through the child themes function.php?

    Plugin Support Mrinal Kanti Roy

    (@mkrdip)

    Hi Marc,

    Glad that you found a way to resolve it.

    The OceanWP file that I have mentioned above can be overridden using a child theme, having same file/folder structure. You can’t override that file’s code using functions.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.