Support Forum

Adding or Editing a post causes the forum to disappear

KV kvr28
kvr28
Member

So I’m finishing up testing a new theme, everything works perfect until I tried adding or editing a post, normally when you click add topic, a text area drops down at the bottom of the forum, this theme, the text area drops down from the main menu, I’m not getting any javascript errors, nothing I can see in the error log, any suggestions?

10 Answers

New Answer

KV kvr28
kvr28
Member

After testing some more, it seems what is happening is the forum is scrolling upwards behind the menu and header instead of the text area opening and scrolling downwards, it’s a theme issue for sure, any suggestions what to look for?

YS Yellow Swordfish
Yellow Swordfish
Member

We do use an anchor at the editor start point with the name of ‘dataform’ – perhaps not a great name but over all these years it has never been an issue. The routine scrolls to that anchor in the HTML and then a small script is called to open the hidden form. Now in my experience that will open the editor section somewhere in the current viewport but not usually at the very top.

I would be tempted to ask the theme authors why it is scrolling to the very top.

KV kvr28
kvr28
Member

they were able to help resolve, I had to add this to my custom css

.td-pb-row [class*=”td-pb-span”] {
margin-bottom: auto !important;
padding-bottom: 0;
}

thanks for the help gents

KV kvr28
kvr28
Member

not sure if this is part of the same issue or not, if not I will make another thread

what controls viewing the newest post? What I mean by that, is when you click a link to a post, the top of the forum shows, then it snaps right to the new post, this new theme, you click a link to a new post and it goes to the top of the forum and then it visually scrolls down the forum to the new post, I made a thread about it on the themes support forum, but they are in Romania and I think it’s past their hours of support, so I figured I would ask if you guys have seen anything like that

MP Mr Papa
Mr Papa
Member

the link is to an anchor… that is a spot directly on the page…  there is no scrolling to the new post…  it just goes directly to it…

so sounds like a plugin or theme doing it…

see:  https://www.google.com/search?q=wordperss+plugin+scorll+to+anchor&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb for some examples…

KV kvr28
kvr28
Member

hmm, I think the issue then would be the theme, it has a smart sidebar that scrolls with the blog posts, but it disables on mobile devices, I just tested the forum on a tablet and a phone and when I click a post link it just goes right to the top of the topic and not to the linked post, thanks for the direction to look in!