WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Redirect a header page to another page (6 posts)

  1. chupito
    Member
    Posted 8 years ago #

    I'm using the new MX4 theme and I would like to have a section of my menu linked to a page out of my weblog.
    Example:
    I create a page called "forum". A tag "forum" is then created in the header menu of my home page, leading to the address /www.myweblog.com/weblog/forum/
    I would like that by clicking on this menu tag, the user is redirected to another page, out of the blog (my actual forum in this case)

    Any idea?

    I hope this is clear enough...

    Guillaume

    http://yomguiaroundtheworld.free.fr/news

  2. Samuel B
    moderator
    Posted 8 years ago #

    The easiest way without a lot of coding would be to create a "page" named Forum and put a php redirect in the body set to go instantly.

  3. chupito
    Member
    Posted 8 years ago #

    can you do that in a classic wordpress "page"? I've tried different scripts I found without being sure of what I was doing, it didn't work...

    Thanks

  4. Chris_K
    Member
    Posted 8 years ago #

    I use the redirectify plugin for this. Simple and works great.

    You can find it at http://redalt.com/downloads/ scroll down a bit.

  5. chupito
    Member
    Posted 8 years ago #

    allright, it works great, thanks! But it first uploads the wordpress page and then redirect to the desired page. Does anyone know a way to have it redirect directly?

    Thanks

  6. chupito
    Member
    Posted 8 years ago #

    I figured how to do that...

    I modified the header.php and added a new condition in the navigation part, like that:


    elseif ($page_name == "forum") {
    (is_page('124'))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href="http://yomguiaroundtheworld.free.fr/forum">Forum</a>";
    }

    and the new page opens directly without going through the original page

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags