This topic has 3 replies, 2 voices, and was last updated 11 years by zivix.

  • Author
  • #6847
     zivix
    Participant

    Hi
    I know can use the theme option “No sidebar” to make it happen ,but it remove all the widgets of my posts too..
    I have a widgets display plugin can remove widgets for bbpress, but not work,bbpress still keep the old width and left the widgets area for nothing …can I know how to just make the bbpress full width for my website?
    Thanks!

    #6848
     zivix
    Participant

    Oh,there is an other information: I have used the default bbpress CSS files by copy in to sweetdate\bbpress\css

    #6901
     SQadmin
    Keymaster

    Hi, You shouldn’t have replaced the customized CSS with the default one.

    This code added to sweetdate-child/functions.php will make the bbPress pages full width:

    COPY CODE
    
    add_action('wp_head', 'kleo_bbpress_tpl', 11);
    function kleo_bbpress_tpl() 
    {
    	//user is viewing a forum page
    	if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') {
    	//set to full width
    	remove_action('kleo_before_content', 'kleo_sidebar');
    	remove_action('kleo_after_content', 'kleo_sidebar');
    	remove_action('kleo_before_content', 'kleo_extra_sidebar');
    	remove_action('kleo_after_content', 'kleo_extra_sidebar');
    	add_filter('kleo_content_class', create_function(null, 'return "twelve";'));
    		
    	}
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6927
     zivix
    Participant

    cool!!worked perfectly!!thank you so much!

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?