• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Topnav changes

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Topnav changes

This topic is: resolved
  • This topic has 2 replies, 1 voice, and was last updated 11 years, 6 months ago by australianbluegrass.com.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 12, 2014 at 6:00 pm #134424
    australianbluegrass.com
    Member

    I have a site using the Education Theme and I need to edit the "topnav.php" to show either "Member Login" or "Logout" depending on whether a member is logged in or not.

    Currently I have both Member Login and Logout showing - not a good look.

    The topnav.php has the following:

    <div id="topnav">
    <div class="topnav-left">
    <p><?php echo date(get_option('date_format')); ?></p>
    </div><!-- end .topnav-left -->
    <div class="topnav-right">
    <p>

    "><?php _e("Member's Login ", 'genesis'); ?>

    "><?php _e("| Logout", 'genesis'); ?>

    </p>

    </div><!-- end .topnav-right -->
    </div><!-- end #topnav -->

    I have tried to enter an "if ( is_user_logged_in() )" statement but cannot get it to work. I just do not know enough about PHP.

    Any advice would be greatly appreciated.

    http://sanmus.com
    December 12, 2014 at 6:10 pm #134426
    australianbluegrass.com
    Member

    For some reason a whole lot of code was stripped out of the previous post.

    <div id="topnav">
    <div class="topnav-left">
    <p><?php echo date(get_option('date_format')); ?></p>

    </div><!-- end .topnav-left -->

    <div class="topnav-right">
    <p>
    "><?php _e("Member's Login ", 'genesis'); ?>

    "><?php _e("| Logout", 'genesis'); ?>

    </p>

    </div><!-- end .topnav-right -->
    </div><!-- end #topnav -->

    December 15, 2014 at 12:55 am #134562
    australianbluegrass.com
    Member

    For some reason the whole code does not display here in this post.
    I am not sure how I can get this question answered now. I feel like such a dill.
    I shall try once again.

    <div id="topnav">
    <div class="topnav-left">
    <p><?php echo date(get_option('date_format')); ?></p>
    </div><!-- end .topnav-left -->
    <div class="topnav-right">
    <p>

    <a class="'.$defaults['menu_class'].'"
    rel="nofollow" href="http://sanmus.com/wp-admin"<?php bloginfo('login'); ?>”>
    <?php _e("Member's Login ", 'genesis'); ?>

    <a class="'.$defaults['menu_class'].'"
    \rel="nofollow" href="http://sanmus.com/logout/?"
    <?php bloginfo('logout'); ?>"><?php _e("| Logout", 'genesis'); ?>

    </p>

    </div><!-- end .topnav-right -->
    </div><!-- end #topnav -->

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Topnav changes’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble