• Hello,
    I can not figure out how to remove the sign in/register link from the top bar of my header. I’ve searched the header.php and functions.php and can not find anything to remove this.

    The theme customizer allowed me to add the My Account/Recent Purchases link, but I can’t figure out how to remove the sign in/register link

    website: http://www.ashleysoles.com

    header php

    <?php
    /**
    * The header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id=”content”>
    *
    * @package dustlandexpress
    */
    global $woocommerce;
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>

    <body <?php body_class(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>

    <?php wp_head(); ?>
    </head>
    <header id=”masthead” class=”site-header border-bottom<?php echo ( get_theme_mod( ‘kra-header-layout’, false ) == ‘kra-header-layout-centered’ ) ? ‘ kra-header-layout-centered’ : ‘ kra-header-layout-standard’; ?>” role=”banner”>

    <?php if ( get_theme_mod( ‘kra-header-layout’, false ) == ‘kra-header-layout-centered’ ) : ?>

    <?php get_template_part( ‘/templates/header/header-layout-centered’ ); ?>

    <?php else : ?>

    <?php get_template_part( ‘/templates/header/header-layout-standard’ ); ?>

    <?php endif; ?>

    </header><!– #masthead –>

    <?php if ( is_front_page() ) : ?>

    <?php get_template_part( ‘/templates/slider/homepage-slider’ ); ?>

    <?php endif; ?>

    <div id=”content” class=”site-content site-container<?php echo ( ! is_active_sidebar( ‘sidebar-1’ ) ) ? ‘ content-no-sidebar’ : ‘ content-has-sidebar’; ?>”>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is there a folder in the root of the theme called /templates/header/ ?

    From looking at the code there appears to be a file in there called header-layout-centred.php. Have a look in there and see if there are any further clues.

    There may be other files within there

    Helpful hint – the get_template_part function in the header.php will go and find the file that is between the brackets -so get_template_part( '/templates/header/header-layout-standard' ) will load in everything in the /templates/header/header-layout-standard.php file.

    Hope that helps! 🙂

    Thread Starter ashleysoles

    (@ashleysoles)

    Thank you so much!!! Yes, there was a folder there, and it was extremely easy to fix.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘remove registration link from header’ is closed to new replies.