Closed q2apro closed 9 years ago
Can't you add it at the end of page_title_error()
? So you can have
function page_title_error()
{
parent::page_title_error();
// insert your code here
}
@q2apro does my suggestion above solve your issue?
Yes, I did so. Before I thought there is even more html output in the page_title_error()
function. The name is still confusing to me...
Just then I have seen that I can call it first and then add my plugin's html.
function page_title_error() {
qa_html_theme_base::page_title_error();
// my code
}
Thanks.
I run into the problem of how to insert a DOM element directly after the h1.
Currently in
public function main()
you find:Where page_title_error() creates the h1:
I could override
title()
orfavorite()
but this would inject the element within the h1 tag.I could also override the
main_parts()
, however it gives me a "bad feeling".For now, I see now way of how to change this.
PS: How I came to this issue: http://www.question2answer.org/qa/44681/new-free-plugin-ajax-user-search-finally?show=44855#a44855