And ... that worked! Thanks so much.
For those that are trying to get slightly nicer styling, I followed clarkwinkelmann's suggestion and added:
(new Extend\Frontend('embed'))
->css(__DIR__.'/path/to/custom.less')
to extend.php
.
My custom.less
file had something like this, which hides the back button and gets everything inline when embedded on my site (I'm sure it's hack-is, but it does work):
@media (max-width: 767px) {
.DiscussionPage-nav>ul>li.item-controls,
.DiscussionPage-nav>ul>li.item-scrubber {
margin: 0;
display: inline;
}
.DiscussionPage-nav>ul .item-replies {
display: inline;
margin-bottom: 10px;
margin-left: 25px;
}
div#app-navigation {
visibility: hidden;
display: none;
}
h3{
display:inline;
}
ul{
padding-left:25px;
}
}
I used the media@
because the Flarum forum width isn't fullscreen when embedded in my site and it was only having problems at the reduced size. When I viewed the post directly in full screen width, the reply box looked quite nice.
The end result looks something like:
Thanks again!