Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi @dzire2dzine,

    If I understood you correctly, then you have two options:

    1. Use CSS to hide and display the title
    2. Use Secondary Title’s filter hook to prevent it from being displayed in certain conditions.

    The first one would be wrapping the part of the title that you’d like to have disappeared everywhere except for the ones you don’t want that. It might look like this in Secondary Title’s “Format” setting:

    
    <span class="secondary-title">%secondary_title%</span><span class="original-title">%title%</span>
    

    Then, in CSS (you can use WP’s Customizer), you can disable it globally by using

    
    .secondary-title {
       display: none;
    }
    

    and then enable it for the pages where you want to show it:

    
    .archive .secondary-title {
       display: block;
    }
    

    display can also be inline, depending on your format.

    Try out and play around with this method and get back to me if it doesn’t work.

    Thread Starter Saket Jajodia

    (@dzire2dzine)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Secondary Title for products archive only’ is closed to new replies.