XF 2.1 How to remove align="left" in attachment

ShinLim

Active member
Hi, I notice that if in a thread, a video attachment will be like

Code:
[ATTACH type="full" align="left"]123456[/ATTACH]

I need to remove align="left", so it would become
Code:
[ATTACH type="full"]123456[/ATTACH]

Is it possible ? How to do it
Thank you
 
I've gone through loads of templates and can't find anything the relates to align="left" so it must be something in a system file, if it is then you don't want to mess with that as it could cause errors. It's possible this is the reason no one else has come along with a solution.
 
I've gone through loads of templates and can't find anything the relates to align="left" so it must be something in a system file, if it is then you don't want to mess with that as it could cause errors. It's possible this is the reason no one else has come along with a solution.
Yes it's not in template of xenforo, it's in file system and I have no clue to edit it, I don't even know where it is
 
But even without deleting align="left" you can actually stop an attachment from floating left, in extra.less:

Code:
.bbImage.bbImageAligned--left, .bbImageWrapper.bbImageAligned--left {
    float: none;
}

You may want to also change the margin maybe.
 
But even without deleting align="left" you can actually stop an attachment from floating left, in extra.less:

Code:
.bbImage.bbImageAligned--left, .bbImageWrapper.bbImageAligned--left {
    float: none;
}

You may want to also change the margin maybe.
Great idea
But that's code not working, this is working for me because I need video only
Code:
.bbMediaWrapper.bbImageAligned--left, .bbMediaJustifier.bbImageAligned--left
Thank you
 
Top Bottom