Viewing 1 replies (of 1 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,

    This uses the standard wp_list_pages filter so you may tap into that at will.

    For instance if you want to wrap the in span you could add this to the top of the overridden page_list.php file

    if( !function_exists( 'asm_span' ) ){
    	function asm_span( $output ){
    		$output = str_replace( '<a', '<span><a', $output );
    		$output = str_replace( '/a>', '/a></span>', $output );
    
    		return $output;
    	}
    }
    add_filter( 'wp_list_pages', 'asm_span' );

    Then at the bottom you would add this to prevent the filter from the effecting other items.

    remove_filter( 'wp_list_pages', 'asm_span' );

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a extra tag’ is closed to new replies.