Title: Codes for single question full width
Last modified: March 6, 2017

---

# Codes for single question full width

 *  Resolved [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/)
 * Hello,
 * Great work, thanks!
 * I put the codes for sing question full width in my child theme function file,
   but it does not work, any suggestion?
 * Thanks in advance!
 * Alex

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8877793)
 * 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>';
       }
       ```
   
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8878007)
 * 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](http://prntscr.com/egkkh9)
   
   and child theme file screenshot:[http://prntscr.com/egkl4k](http://prntscr.com/egkl4k)
 * Would you let me know how to handle next? thanks so much.
 * Alex
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8878014)
 * oh, forget send you our site URL: [http://magazine.lovcour.com/lquestion-archive](http://magazine.lovcour.com/lquestion-archive)
 * Thanks
 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8878366)
 * 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](https://imgur.com/a/iYXNz)
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8879291)
 * 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](http://prntscr.com/egohcg)
 * and for caparison purpose, here is other post type title:
    [http://prntscr.com/egohtr](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 9 years, 2 months ago by [alexlii](https://wordpress.org/support/users/alexlii/).
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8879293)
 * 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](http://prntscr.com/egohcg)
 * and for caparison purpose, here is other post type title:
    [http://prntscr.com/egohtr](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
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8880427)
 * Sorry, that code does not work, any further suggestion would be great thanks!
 * Alex
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8882708)
 * 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

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Codes for single question full width’ is closed to new replies.

 * ![](https://ps.w.org/question-answer/assets/icon-128x128.png?rev=3126673)
 * [PickPlugins Question Answer](https://wordpress.org/plugins/question-answer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/question-answer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/question-answer/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [alexlii](https://wordpress.org/support/users/alexlii/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/codes-for-single-question-full-width/#post-8882708)
 * Status: resolved