[Resolved] Support on summary and entry-title

Home Forums Support [Resolved] Support on summary and entry-title

Home Forums Support Support on summary and entry-title

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1042849
    An Nguyen

    Hi,

    I wanna customise after summary and entry-title by using some shortcode.

    1/ I wanna replace “…” after summary with useful meaning word with my shortcode.

    2/In entry-title, HTML markup including shortcode that I’m expecting that is

    <entry-header>
            <entry-title>
                   <h>The market <span class=“title-custom”>[shortcode]</span></h>

    I tried with after-entry-title but the [scode] adding below <h>. I want it inside <h> and after title-text.

    Can we add these shortcodes via using php snippet?

    #1042934
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Unfortunately, it’s not really possible to append something to the content title by default. This is being WordPress uses the same filter (the_title) in multiple places (menus, widget titles, content title), and it’s not possible to target the content title specifically.

    If you needed to do this, you would have to create a custom page template and manually insert your shortcode into it: https://developer.wordpress.org/themes/template-files-section/page-template-files/

    #1043913
    An Nguyen

    Thanks Tom

    #1044476
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

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