Forums

Making a Link on my WP Page to my PHPBB Forum (7 posts)

  1. doofalot
    Member
    Posted 1 year ago #

    I have a Wordpress Theme installed, called Stylevantage.

    It has a top navigation bar where you can create Pages but I don't know how to make a "Page" link in the top bar (FORUM) go directly to my PHPBB forum instead of just creating a page called Forum and having a text/html link to the real forum from that next page.

    I'm not even sure what file I should be editing.

    Also, on the Forum itself, I'd like to (somewhere around the top) have a link back to the main site, but not sure how to do that either.

    Thanks for your help.

  2. samboll
    moderator
    Posted 1 year ago #

  3. doofalot
    Member
    Posted 1 year ago #

    Thanks for the link. That will be very helpful once I figure out what file I need to edit in order to change a given post / page. I'm in my FTP for the site and I don't know what file or directory I am looking for to get at where the posts / pages are located. I can't find them in "content" where I thought they would be.

    Any further advice is appreciated.

  4. doofalot
    Member
    Posted 1 year ago #

    Okay, I realized I had misread the directions slightly. I followed the instructions and it does work. Thanks.

    It does, however, have a bit of a delay - it loads the WP page with the instructions for a half second before forwarding to the forum. I can live with that, but I'd be a bit surprised if there wasn't a way to get into the code and make the direct link to the forum page.

    Anyway, thanks again for the help and it's a big improvement over what I had before.

  5. samboll
    moderator
    Posted 1 year ago #

    look in your theme's page.php

  6. jleuze
    Member
    Posted 1 year ago #

    You should be able to go into your theme and add this link pretty easily.

    If you open the header.php file for the Stylevantage theme, you will see a section of code like this:

    <ul>
    <li<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { echo ' class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>">Home</a></li>
               <?php wp_list_pages('title_li=&depth=1'); ?>
    		</ul>

    That is your top navigation, it is simply a bit of PHP that makes a list, and that list forms your navbar.

    With a minor modification,you can add links to this list:

    <ul>
    <li<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { echo ' class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>">Home</a></li>
               <?php wp_list_pages('title_li=&depth=1'); ?>
    <!-- add this line -->
    <li><a href="http://www.example.com/forum">Forum</a></li>
    <!-- add this line -->
    		</ul>

    It can be a little trickier to do this in phpBB, but there is a good support forum for finding answers, this answer may help you.

  7. doofalot
    Member
    Posted 1 year ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags