This topic has 14 replies, 2 voices, and was last updated 6 years by Laura.

  • Author
  • #186106
     WinDroidAnswers
    Participant

    Hi there,

    we just want to set the forum page as the default homepage of our community site, may you help us?

    we do not find a solution

    #186139
     Laura
    Moderator

    Hello, please try by adding this to functions.php of child theme

    COPY CODE
    
    function redirect_homepage() {
        if( ! is_home() && ! is_front_page() )
            return;
    
        wp_redirect( 'http://yourwebsite.com/forums', 301 );
        exit;
    }
    
    add_action( 'template_redirect', 'redirect_homepage' );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #186169
     WinDroidAnswers
    Participant
    This reply has been set as private.
    #186245
     Laura
    Moderator

    Hello, please share admin access so i can see it 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #186422
     WinDroidAnswers
    Participant
    This reply has been set as private.
    #186564
     Laura
    Moderator

    Hello, please try by adding this to style.css of child theme

    COPY CODE
    
    #bbpress-forums .bbp-search-form {
        top: -120% !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #186914
     WinDroidAnswers
    Participant

    now it works perfectly,
    thanks a lot!
    but we have another problem, we can’t see what we’re typing.
    How to solve this?
    http://prntscr.com/i5ybel

    #186915
     WinDroidAnswers
    Participant

    so now this page is the new homepage with the forum inside and some other things we decide to add via Visual Composer,
    am I right?
    http://www.windroidanswers.com/

    #187113
     Laura
    Moderator

    Hello, it works for me, is it resolved?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #187651
     WinDroidAnswers
    Participant

    mmm, i don’t think so.
    we already can’t change the forum layout.
    but we have talked about another ticket yet, so we wait for the answer,
    but by the way, what the first code is for?
    the one you suggest to add in functions.php?

    #187803
     Laura
    Moderator

    Hello, the code was to move the search form as the screenshot you sent me 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #187819
     WinDroidAnswers
    Participant

    nope, i mean this:

    COPY CODE
    
    function redirect_homepage() {
        if( ! is_home() && ! is_front_page() )
            return;
    
        wp_redirect( 'http://yourwebsite.com/forums', 301 );
        exit;
    }
    
    add_action( 'template_redirect', 'redirect_homepage' );

    Is it for the community and homepage forum layout?
    we solve this and answer in this ticket: https://archived.seventhqueen.com/forums/topic/start-a-new-topic-button

    thanks a lot for your precious help.
    have a wonderful day

    #187926
     Laura
    Moderator

    Hello, that code redirects from home to forum but you need to change the url “yourwebsite.com”

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #188768
     WinDroidAnswers
    Participant

    thanks a lot, we think this code is no use anymore.
    we write it down in a note, just in further case.
    thanks for your help, we really appreciate it!

    #188819
     Laura
    Moderator

    No problem 🙂 I’m here if you need me

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?