BuddyBoss
BuddyBoss
  • Product
    • Features
      • Connect your people
      • Make it fun and engaging
      • Sell access, generate revenue & create wealth
      • Everything you need to customize for your brand
      • Launch your online courses
      • Amplify your impact with the power of mobile
    • Integrations
    • Platform
    • Use Cases
      • For Online Communities
      • For Online Courses
      • For Membership Sites
      • For LearnDash
      • For LifterLMS
    • Mobile Apps
      • For Online Communities
      • For LearnDash
      • For Online Courses
      • For Membership Programs
    • Showcase
    • Roadmap
  • Agency
    • Case Studies
    • Expertise
    • Enterprise
    • Retainers
    • Agency Partners
    • Staff Augmentation
  • Resources
    • Step by step documentation for easy BuddyBoss setup
    • Create a new ticket, and get help from the BuddyBoss support team
    • More Resources
      • Blog
      • Videos
      • Webinars
      • Code Reference
      • Release Notes
      • Git
  • Features
    • Connect your people
    • Make it fun and engaging
    • Sell access, generate revenue & create wealth
    • Everything you need to customize for your brand
    • Launch your online courses
    • Amplify your impact with the power of mobile
  • Get More Out Of BuddyBoss
  • Platform
  • Use Cases
    • For Online Communities
    • For Online Courses
    • For Membership Sites
    • For LearnDash
    • For LifterLMS
  • Mobile App
    • For Online Communities
    • For LearnDash
    • For Online Courses
    • For Membership Programs
  • Showcase
  • Roadmap
My Account
My Account
Pricing

Support Forums

BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Login Page – Remove Logo – Not Login Page Header

Tagged: default wordpress login page logo, login page, logo, remove logo from login page

  • This topic has 3 replies, 2 contibutors, and was last updated 7 years, 6 months ago by Deepak BuddyBoss.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    January 21, 2015 at 1:28 pm #34918

    Mac
    @ry-mac

    I am having the same issue that @tmg2014 had asked about in the previous post:

    <a href=”http://`www.buddyboss.com/support-forums/topic/how-to-remove-logo-from-log-in-page/” title=”how-to-remove-logo-from-log-in-page” target=”_blank”></a>

    I tried @tjchester ‘s suggestion:

    add_action('login_enqueue_scripts','hide_logo');
    function hide_logo(){
    echo '<style>
    #login h1{display:none;}
    </style>';
    }

    It worked like a charm! It got rid of the logo… Well, it got rid of the entire login header all together! Please see pic.

    Still learning WordPress, and BuddyBoss for that matter, but it seems like there should be a way to add an adjustment to the original code, which I believe is in the theme-functions.php code in the buddyboss-inc folder. Please correct me if I'm wrong! As I said I am still learning.

    The code in theme-functions.php is as follows:

    /**
     * Custom Login Logo
     *
     * @since BuddyBoss 1.0
     */
    
    function buddyboss_custom_login_logo()
    {
        $logo = get_theme_mod( 'buddyboss_logo', FALSE );
    	
    	/*convert from relative url to absolute url*/
    	$scheme = is_ssl() ? 'https://' : 'http://';
    	$logo_absolute_url = $scheme . @$_SERVER['HTTP_HOST'] . $logo;
    
        if ( $logo ) {
            if ( !0 ) {
                list( $width, $height ) = getimagesize( $logo_absolute_url );
                echo '<style type="text/css">
                        #login h1 a {
                            background-image: url('.esc_url($logo).');
                            background-size: '.intval($width).'px '.intval($height).'px;
                            min-height: 87px;
                            min-width: 326px;
                            width: '.intval($width).'px;
                            height: '.intval($height).'px;
                            overflow: hidden;
                        }
                        body.login {
                            background: #fff !important;
                        }
                        .login form {
                            -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.3);
                            -moz-box-shadow: 0 1px 3px rgba(0,0,0,.3);
                            box-shadow: 0 1px 3px rgba(0,0,0,.3);
                        }
                    </style>';
            }
        }
    }
    add_action( 'login_head', 'buddyboss_custom_login_logo' );
    
    /**
     * Custom Login Link
     *
     * @since BuddyBoss 1.0.8
     */
    
    function change_wp_login_url()
    {
    	return home_url();
    }
    function change_wp_login_title()
    {
    	get_option('blogname');
    }
    add_filter( 'login_headerurl', 'change_wp_login_url' );
    add_filter( 'login_headertitle', 'change_wp_login_title' );
    

    My Questions:
    Shouldn't I just be able to either add that code to the functions.php file in my buddyboss-child theme and kill the undesired code? Or am I supposed to copy the theme-functions.php file and the buddyboss-inc folder into my buddyboss child theme and make the mods there?

    Either way, please advise on proper method and suggested code to remove the logo from the login page.

    Pretty much I want the default WordPress logo when arriving at my login page without the custom logo added to my login.

    However, I would like to keep the logo (or what i would normally call a “Header” picture) that I choose for the website header area.

    Any and all help would be greatly appreciated.

    Thanks.

    Mac

    Answers

    January 21, 2015 at 4:02 pm #34928

    Deepak BuddyBoss
    Participant
    @deepak

    @ry-mac Welcome to the BuddyBoss community! In the function above we are using a hook, so all you need to do is remove the hook in your child theme functions.php file by adding this code:

    function remove_login_logo(){
    remove_action( 'login_head', 'buddyboss_custom_login_logo' );
    }
    add_action( 'init' , 'remove_login_logo' );
    January 22, 2015 at 8:57 am #34941

    Mac
    @ry-mac

    @tjchester,

    Perfect! Thanks for the quick response and the perfect answer!

    Consider request solved!

    January 22, 2015 at 2:47 pm #34943

    Deepak BuddyBoss
    Participant
    @deepak

    Great, thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Login Page – Remove Logo – Not Login Page Header’ is closed to new replies.
  • Helpful Information
    • Privacy Policy
    • Refund Policy
    • Terms and Conditions
    • Support Policy
    • Licenses & Subscriptions

  • View Themes Custom Work
    STAY IN TOUCH
    Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss
    • Hidden
    • This field is for validation purposes and should be left unchanged.
    COMPANY
    • Blog
    • Contact Us
    • Media Kit
    • Affiliate Program
    • Terms & Conditions
    • Support Policy
    • Privacy Policy
    • Affiliate Program Terms
    SOLUTIONS
    • Community Software
    • Online Courses Software
    • LearnDash Theme
    • LifterLMS Theme
    • Themes
    • BuddyPress Plugins
    • BuddyBoss vs BuddyPress
    AGENCY
    • Agency Overview
    • Retainers
    • Enterprise
    • Expertise & Services
    • Case Studies
    • Partners
    • Staff Augmentation
    RESOURCES
    • Frequently Asked Questions
    • Documentation
    • Code Reference
    • Webinars
    • Videos & Tutorials
    • Create Support Ticket
    • Roadmap
    • My Account

    © All rights reserved Boss Media Ltd. 2022

    Terms & Conditions Privacy Policy

    Not recently active
    62f25e97570e9