• Resolved alexlii

    (@alexlii)


    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

    (@pickplugins)

    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

    (@alexlii)

    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

    Thread Starter alexlii

    (@alexlii)

    oh, forget send you our site URL: http://magazine.lovcour.com/lquestion-archive

    Thanks

    Plugin Author PickPlugins

    (@pickplugins)

    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

    Thread Starter alexlii

    (@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

    • This reply was modified 7 years, 1 month ago by alexlii.
    Thread Starter alexlii

    (@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

    Thread Starter alexlii

    (@alexlii)

    Sorry, that code does not work, any further suggestion would be great thanks!

    Alex

    Thread Starter alexlii

    (@alexlii)

    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.