[Resolved] Secondary title and read bar

Home Forums Support [Resolved] Secondary title and read bar

Home Forums Support Secondary title and read bar

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1470142
    Matia

    Hello everybody,

    1- I’d like to view, in all my website, the secondary title and not the excerpt for my posts. Is it possible? Is there some featuring in the theme or some external plugins will work?

    2- Is it possible have a reading bar when scroll down the single post?

    Thanks a lot,
    Matia

    #1470382
    David
    Staff
    Customer Support

    Hi there,

    1. How is the secondary title being added to the post?

    2. It would require a plugin – if you search the WordPress repository for Reading Bar – theres a few options available.

    #1470829
    Matia

    Hi David, thanks for your reply.

    I tried to add a a subheading with the summary of the article and that works in the homepage but not in the single post. I used, in the past, some plugins and was ok. Right now, I think that plugin “WP subtitle” doesn’t work.

    Thanks for the 2nd answer!

    Matia

    #1470924
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    If you’re using WP Subtitle (https://wordpress.org/plugins/wp-subtitle/), it looks like you need to hook it into the theme.

    1. Create a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
    2. Add the content according to them:

    <?php
    do_action( 'plugins/wp_subtitle/the_subtitle', array(
        'before'        => '<p class="subtitle">',
        'after'         => '</p>',
        'post_id'       => get_the_ID(),
        'default_value' => ''
    ) );
    ?>

    3. Set the hook to generate_after_entry_title (or anywhere you like).
    4. Check the “Execute PHP” option.
    5. Set your Display Rules.

    Let us know if you need more info ๐Ÿ™‚

    #1471174
    Matia

    Thanks for your reply!

    #1471934
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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