Results 1 to 2 of 2

Thread: Remove Welcome Back from user sidebar

  1. #1
    Thread Starter
    Expired Customer rainerboeke's Avatar
    Join Date
    Jan 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Remove Welcome Back from user sidebar

    Hello,

    I like to remove the welcome back widget from the user sidebar. What do I have to comment out in the sidebar.php using classipress theme? Thanks in advance....


    <?php
    /**
    * Generic Sidebar template.
    *
    * @package ClassiPress\Templates
    * @author AppThemes
    * @since ClassiPress 1.0
    */

    global $cp_options;
    ?>

    <div class="content_right">

    <?php
    if ( is_page_template( 'tpl-ads-home.php' ) ) {

    $current_user = wp_get_current_user();
    ?>

    <div id="welcome_widget" class="shadowblock_out">

    <div class="shadowblock">

    <?php if ( ! is_user_logged_in() ) { ?>

    <?php cp_display_message( 'welcome' ); ?>
    <a href="<?php echo appthemes_get_registration_url(); ?>" class="btn_orange"><?php _e( 'Join Now!', APP_TD ); ?></a>

    <?php } else { ?>

    <div class="avatar"><?php appthemes_get_profile_pic( $current_user->ID, $current_user->user_email, 150 ); ?></div>

    <div class="user">

    <p class="welcome-back"><?php _e( 'Welcome back,', APP_TD ); ?> <strong><?php echo $current_user->display_name; ?></strong>.</p>
    <p class="last-login"><?php _e( 'Last logged in:', APP_TD ); ?> <?php echo appthemes_get_last_login( $current_user->ID ); ?></p>
    <p><?php _e( 'Manage your ads or edit your profile from your personalized profile.', APP_TD ); ?></p>

    </div><!-- /user -->

    <div class="welcome-buttons">
    <a href="<?php echo CP_DASHBOARD_URL; ?>" class="btn_orange"><?php _e( 'Manage Ads', APP_TD ); ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo CP_PROFILE_URL; ?>" class="btn_orange"><?php _e( 'Edit Profile', APP_TD ); ?></a>
    </div>

    <div class="clr"></div>

    <?php } ?>

    </div><!-- /shadowblock -->

    </div><!-- /shadowblock_out -->

    <?php } ?>

    <?php
    if ( is_tax( APP_TAX_CAT ) ) {
    // go get the taxonomy category id so we can filter with it
    // have to use slug instead of name otherwise it'll break with multi-word cats
    if ( ! isset( $filter ) ) {
    $filter = '';
    }

    $ad_cat_array = get_term_by( 'slug', get_query_var( APP_TAX_CAT ), APP_TAX_CAT, ARRAY_A, $filter );

    // build the advanced sidebar search
    cp_show_refine_search( $ad_cat_array['term_id'] );

    } else if ( is_search() ) {

    // build the advanced sidebar search
    cp_show_refine_search( get_query_var( 'scat' ) );

    } // is_search
    ?>

    <?php appthemes_before_sidebar_widgets( 'main' ); ?>

    <?php if ( ! dynamic_sidebar( 'sidebar_main' ) ) : ?>

    <!-- no dynamic sidebar setup -->

    <div class="shadowblock_out">

    <div class="shadowblock">

    <h2 class="dotted"><?php _e( 'Meta', APP_TD ); ?></h2>

    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a target="_blank" href="http://www.appthemes.com/" title="Premium WordPress Themes">AppThemes</a></li>
    <li><a target="_blank" href="http://wordpress.org/" title="Powered by WordPress">WordPress</a></li>
    <?php wp_meta(); ?>
    </ul>

    <div class="clr"></div>

    </div><!-- /shadowblock -->

    </div><!-- /shadowblock_out -->

    <?php endif; ?>

    <?php appthemes_after_sidebar_widgets( 'main' ); ?>

    </div><!-- /content_right -->

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jomark Get the user back to the page he was before signing in
    By sofianels in forum JobRoller General Discussion
    Replies: 1
    Last Post: June 24th, 2013, 09:57 AM
  2. Remove Welcome Back, user message in Sidebar
    By roadking in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: November 26th, 2011, 09:27 PM
  3. Remove Welcome Back message in Sidebar
    By roadking in forum ClassiPress General Discussion
    Replies: 2
    Last Post: September 30th, 2011, 08:05 AM
  4. [SOLVED] New User Can See My Back Office...Help!
    By jametownusedcars in forum Help Using ClassiPress
    Replies: 2
    Last Post: October 20th, 2010, 12:02 AM