Skip to:
Content
Pages
Categories
Search
Top
Bottom

don't want registration page to show after login

  • Avatar of bss
    benjino
    Participant

    @benjino

    Is it possible to have the Registration page or otherwise the Menu item for that page not show on the site after a registered user logs in? So in other words, a registered user sees a different view after loggin in.

Viewing 5 replies - 26 through 30 (of 30 total)
  • Avatar of bss
    benjino
    Participant

    @benjino

    I have no clue where to put it or if anything else needs to be changed in the header.php file. Here’s the header.php file contents:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title><?php wp_title('-', true, 'right'); ?><?php bloginfo('name'); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php get_template_part('header', 'CSS'); ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <a name="top"></a>
    <?php if ( has_nav_menu( 'primary-nav' ) ) { ?>
    <!-- #primary-nav-mobile -->
    <nav id="primary-nav-mobile">
    <a class="menu-toggle" href="#"></a>
    <?php wp_nav_menu( array('theme_location' => 'primary-nav', 'container' => false, 'menu_class' => 'clearfix', 'menu_id' => 'mobile-menu', )); ?>
    </nav>
    <!-- /#primary-nav-mobile -->
    <?php } ?>
    
    <!-- #header -->
    <header id="header" class="clearfix">
    <div class="container">
    
    <!-- #logo -->
      <div id="logo">
        <?php if (is_front_page()) { ?><h1><?php } ?>
          <a title="<?php bloginfo( 'name' ); ?>" href="<?php echo home_url(); ?>">
          <?php if (of_get_option('st_logo')) { ?>
          <img alt="<?php bloginfo( 'name' ); ?>" src="<?php echo of_get_option('st_logo'); ?>">
          <?php } else { ?>
          <?php bloginfo( 'name' ); ?>
          <?php } ?>
          </a>
         <?php if (is_front_page()) { ?></h1><?php } ?>
      </div>
    <!-- /#logo -->
    
    <!-- #primary-nav -->
    <nav id="primary-nav" role="navigation" class="clearfix">
      <?php if ( has_nav_menu( 'primary-nav' ) ) { ?>
        <?php wp_nav_menu( array('theme_location' => 'primary-nav', 'container' => false, 'menu_class' => 'nav sf-menu clearfix' )); ?>
      <?php } ?>
    </nav>
    <!-- #primary-nav -->
    
    </div>
    </header>
    <!-- /#header -->
    Avatar of bss
    benjino
    Participant

    @benjino

    @bphelp, I have wp-content > themes > socialbuddy > and then inside the theme socialbuddy there are a bunch of files and folders. A folder named buddypress is inside that and that has a functions-buddypress.php file, and then there is a folder named framework and inside that is theme-functions.php. In the folder socialbuddy there is a functions.php file and inside that there is wp_nav_menu, that is the only place I could find that name. Below is the code that is with it:

    	/**
    	 * This theme uses wp_nav_menu() in one location.
    	 */
    	register_nav_menus( array(
    			'primary-nav' => __( 'Primary Navigation', 'framework' ),
    			'footer-nav' => __( 'Footer Navigation', 'framework' )
    	));

    So that tutorial you sent me is incongruous for me to follow. I just don’t know enough about PHP to have a lightbulb go on when I see that tutorial. I get the gist of what it is having you do though.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @benjino
    Then take @hnla ‘s advice. If you don’t know php then you have 3 choices,
    1.) learn some php
    2.) hire a developer
    3.) just don’t play around with anything above your skill level.

    Without trying to sound rude or condescending you have had more than enough help for your topic and nobody can spoon feed you how to get it done when you don’t even know where to start. My suggestion is start learning php because it will save you some cash. You don’t have to be an expert but learning the basics is essential if you want customizations beyond the “Out of the Box” experience. :-)

    Avatar of bss
    benjino
    Participant

    @benjino

    I guess I had a different impression of this community, not that I’m not appreciative. Thanks for whatever you have shared.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @benjino
    This is a great community and I am sorry your issue cannot be resolved. Several people including myself has tried to help you but the issue is that your not comfortable with php. We have pointed you in the right direction but there comes a point when there is an expectation to do your part as well. Please don’t be offended as there are many new users that are in your predicament that are given the advise to hire a developer. I did not intend to offend you so please do not take it that way. If someone told me to wire a house with electricity I would be in your shoes in the beginning but my meticulous nature would kick in and I would study about how to wire a house with electric. Point is if I didn’t know any php I would study it so I did.

Viewing 5 replies - 26 through 30 (of 30 total)

You must be logged in to reply to this topic.