Codoforum related discussions
Does anyone know how to remove the buttons from facebook and google outside "or login with?"

<?php if ( class_exists( 'WOODMART_Auth' ) && ( ( ! empty( $fb_app_id ) && ! empty( $fb_app_secret ) ) || ( ! empty( $goo_app_id ) && ! empty( $goo_app_secret ) ) || ( ! empty( $vk_app_id ) && ! empty( $vk_app_secret ) ) ) ): ?>
<span class="social-login-title"><?php esc_html_e('Or login with', 'woodmart'smile; ?></span>
<div class="woodmart-social-login">
<?php if ( ! empty( $fb_app_id ) && ! empty( $fb_app_secret ) ): ?>
<div class="social-login-btn">
<a href="<?php echo add_query_arg('social_auth', 'facebook', wc_get_page_permalink('myaccount'smile); ?>" class="login-fb-link"><?php esc_html_e( 'Facebook', 'woodmart' ); ?></a>
</div>
<?php endif ?>
<?php if ( ! empty( $goo_app_id ) && ! empty( $goo_app_secret ) ): ?>
<div class="social-login-btn">
<a href="<?php echo add_query_arg('social_auth', 'google', wc_get_page_permalink('myaccount'smile); ?>" class="login-goo-link"><?php esc_html_e( 'Google', 'woodmart' ); ?></a>
</div>
<?php endif ?>
<?php if ( ! empty( $vk_app_id ) && ! empty( $vk_app_secret ) ): ?>
<div class="social-login-btn">
<a href="<?php echo add_query_arg('social_auth', 'vkontakte', wc_get_page_permalink('myaccount'smile); ?>" class="login-vk-link"><?php esc_html_e( 'VKontakte', 'woodmart' ); ?></a>
</div>
<?php endif ?>
</div>
<?php endif ?>

&lt;?php if ( class_exists( &#039;WOODMART_Auth&#039; ) &amp;&amp; ( ( ! empty( $fb_app_id ) &amp;&amp; ! empty( $fb_app_secret ) ) || ( ! empty( $goo_app_id ) &amp;&amp; ! empty( $goo_app_secret ) ) || ( ! empty( $vk_app_id ) &amp;&amp; ! empty( $vk_app_secret ) ) ) ): ?&gt; &lt;span class=&quot;social-login-title&quot;&gt;&lt;?php esc_html_e(&#039;Or login with&#039;, &#039;woodmart&#039;); ?&gt;&lt;/span&gt; &lt;div class=&quot;woodmart-social-login&quot;&gt; &lt;?php if ( ! empty( $fb_app_id ) &amp;&amp; ! empty( $fb_app_secret ) ): ?&gt; &lt;div class=&quot;social-login-btn&quot;&gt; &lt;a href=&quot;&lt;?php echo add_query_arg(&#039;social_auth&#039;, &#039;facebook&#039;, wc_get_page_permalink(&#039;myaccount&#039;)); ?&gt;&quot; class=&quot;login-fb-link&quot;&gt;&lt;?php esc_html_e( &#039;Facebook&#039;, &#039;woodmart&#039; ); ?&gt;&lt;/a&gt; &lt;/div&gt; &lt;?php endif ?&gt; &lt;?php if ( ! empty( $goo_app_id ) &amp;&amp; ! empty( $goo_app_secret ) ): ?&gt; &lt;div class=&quot;social-login-btn&quot;&gt; &lt;a href=&quot;&lt;?php echo add_query_arg(&#039;social_auth&#039;, &#039;google&#039;, wc_get_page_permalink(&#039;myaccount&#039;)); ?&gt;&quot; class=&quot;login-goo-link&quot;&gt;&lt;?php esc_html_e( &#039;Google&#039;, &#039;woodmart&#039; ); ?&gt;&lt;/a&gt; &lt;/div&gt; &lt;?php endif ?&gt; &lt;?php if ( ! empty( $vk_app_id ) &amp;&amp; ! empty( $vk_app_secret ) ): ?&gt; &lt;div class=&quot;social-login-btn&quot;&gt; &lt;a href=&quot;&lt;?php echo add_query_arg(&#039;social_auth&#039;, &#039;vkontakte&#039;, wc_get_page_permalink(&#039;myaccount&#039;)); ?&gt;&quot; class=&quot;login-vk-link&quot;&gt;&lt;?php esc_html_e( &#039;VKontakte&#039;, &#039;woodmart&#039; ); ?&gt;&lt;/a&gt; &lt;/div&gt; &lt;?php endif ?&gt; &lt;/div&gt; &lt;?php endif ?&gt;

No need to remove lines from the code. Just disable the Uni Login plugin or make sure the settings for facebook and google login says NO_VAL. This way, it won't show on login / register pages!

No need to remove lines from the code. Just disable the Uni Login plugin or make sure the settings for facebook and google login says **NO_VAL**. This way, it won&#039;t show on login / register pages!

BlackBerry enthusiast, entrepreneur, web developer, geek with glasses and enlightened agent!

102
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft