Support » Plugin: Secondary Title » Putting secondary title underneath main title

  • Resolved philsimon

    (@philsimon)


    Hello

    The recent change put the secondary title on top:

    This is so counterintuitive to me.

    Maybe I’m missing something, but is there any way to change this? Thanks.

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

    (@thaikolja)

    Have you tried entering a <br> between both titles in the title format section on the plugin’s options page?

    Thread Starter philsimon

    (@philsimon)

    I have not. Got a screen grab so I know exactly where?

    Thanks!

    Plugin Author thaikolja

    (@thaikolja)

    If you mean on the dashboard, then please add this filter function to your functions.php:

    /**
     * This script will put the secondary title input field
     * below the primary title in classic editors.
     *
     * @param array $default_options
     *
     * @return array
     */
    function secondary_title_swap_input_location( array $default_options ) {
    	$default_options['secondary_title_input_field_position'] = "below";
    
    	return $default_options;
    }
    
    add_filter( 'secondary_title_get_default_settings', 'secondary_title_swap_input_location' );

    If it doesn’t work right away, please head to the Secondary Title settings page and hit “Reset”.

    And please let me know if it worked.

    • This reply was modified 4 months, 3 weeks ago by thaikolja.
    • This reply was modified 4 months, 3 weeks ago by thaikolja.
    • This reply was modified 4 months, 3 weeks ago by thaikolja.
    Thread Starter philsimon

    (@philsimon)

    No, not on the dashboard. I’d love for it to appear below the title in the editor view. Yes, I’m using the classic one.

    Thanks!

    Thread Starter philsimon

    (@philsimon)

    Never mind. I misunderstood.

    Yes, this works. Thanks.

    Plugin Author thaikolja

    (@thaikolja)

    Great to hear that. If you want to support my work, please leave a review.

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