• Andrew Tibbetts

    (@andrewgtibbetts)


    I want to get rid of the square brackets [] and pipes | surrounding the attachment actions / links. I would simply trim this line in code/attachments/front.php:

    $actions = ' ['.join(' | ', $actions).']';

    to

    $actions = join('', $actions);

    or

    $actions = '<ul>'.join( '\n', array_map( function($a) { return "<li>$a</li>"; }, $actions ) ).'</ul>';

    Or maybe provide us with a hook to filter?

    https://wordpress.org/plugins/gd-bbpress-attachments/

Viewing 1 replies (of 1 total)
  • Thread Starter Andrew Tibbetts

    (@andrewgtibbetts)

    In case this never goes anywhere, here is my js-/jquery-based hack:

    $('.d4p-bbp-attachment').html(function(index,html){
    
    	html = html.replace('[', '<ul><li>');
    	html = html.replace('|', '</li><li>');
    	html = html.replace(']', '</li></ul>');
    
    	return html;
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Template Tweak or Filter Request’ is closed to new replies.