Viewing 1 replies (of 1 total)
  • Plugin Author natekinkead

    (@natekinkead)

    @smusman98 , since my plugin is hooking into bbPress, my layout integration options were kind of limited. The voting buttons are added just before the text of the topic or reply, but given float: left; style to move the voting buttons over to the left, pushing the text to the right. You could fix it by adding some CSS to give all the child elements of the .bbp-reply-content an appropriate amount of left-margin.

    Besides, that you could probably figure out some advanced CSS magic using flex or grid to manipulate the layout to be the way you want it. I tried putting together a proof of concept solution using flex, but I ran into the problem that you can’t use flex-direction: column without having a specified height or being inside parent elements with unspecified height.

    You could also move the hook for the voting buttons using remove_action() and add_action().

Viewing 1 replies (of 1 total)
  • The topic ‘Broken Layout’ is closed to new replies.