Thanks for your post,
Can you please send me you website link ?
Please note, you will have to change the class site-main
with your theme content class,
add_action('qa_action_before_single_question', 'qa_action_before_single_question', 10);
add_action('qa_action_after_single_question', 'qa_action_after_single_question', 10);
function qa_action_before_single_question() {
echo '<div id="main" class="site-main">';
}
function qa_action_after_single_question() {
echo '</div>';
}
Thanks for reply, I put just put the above code into child funthion file.
But not really catch what you mean by “site-main”, I am not good at theme practice, does that mean theme CSS style file name?
Here is parent theme file screenshot:http://prntscr.com/egkkh9
and child theme file screenshot:http://prntscr.com/egkl4k
Would you let me know how to handle next? thanks so much.
Alex
Please try following code, don’t forget to delete if you already added.
add_action('qa_action_before_single_question', 'qa_action_before_single_question', 10);
add_action('qa_action_after_single_question', 'qa_action_after_single_question', 10);
function qa_action_before_single_question() {
echo '<div id="main-container" class="container">';
}
function qa_action_after_single_question() {
echo '</div>';
}
Please see the screenshot how to find class for content container
View post on imgur.com
the tile of single question is quite too large.
seems that question title is out of theme CSS control, please check here:
http://prntscr.com/egohcg
and for caparison purpose, here is other post type title:
http://prntscr.com/egohtr
it is same both in Pc mode and mobile mode, I guess the reason that the above code dose not work, if not, please let me how to custom that title size, thanks a lot.
Alex
-
This reply was modified 7 years, 1 month ago by alexlii.
the tile of single question is quite too large.
seems that question title is out of theme CSS control, please check here:
http://prntscr.com/egohcg
and for caparison purpose, here is other post type title:
http://prntscr.com/egohtr
it is same both in Pc mode and mobile mode, I guess the reason that the above code dose not work, if not, please let me how to custom that title size, thanks a lot.
Alex
Sorry, that code does not work, any further suggestion would be great thanks!
Alex
Really Sorry, I just found I used the older version, and Just update to latest version, and then apply the code above, it works.
Sorry again, and thanks again:)
Alex