• Resolved Helison Santos

    (@agenciahouse)


    In trying to customize the default plugin for my layout, I noticed that the title H3, is outside the html block related to the list, is there a way for it to stay inside the .crp-list class?

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

    (@brechtvds)

    I agree that a wrapper div would make sense. It’s on the todo list. For now the crp_output_list hook could be used to add it.

    Thread Starter Helison Santos

    (@agenciahouse)

    Thanks for the reply. It worked very well. I will leave below how the hook looks like.

    function add_wrapper_list( $output ) {
    	return '<div class="related-single">' . $output . '</div>';
    }
    
    add_action( 'crp_output_list', 'add_wrapper_list' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Title inside the HTML block’ is closed to new replies.