Page 1 of 2
WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 7:34 am
by simonmlewis
http://jellywp.com/theme/nanomag/it-not ... rol-color/
If you scroll down this page, just above Relative Articles, you see "Nano Mag" as a user, their avatar and the SM icons.
Does anyone know how to stop this entire box from showing?
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 7:55 am
by Celauran
It's going to vary a bit by theme, but look for the_author() and remove the surrounding block from your templates.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 8:02 am
by simonmlewis
There is no template in the Page Builders for Author tho. You set PAge Building to have a Homepage template. And we are using that.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 8:37 am
by Celauran
Are you saying you don't have access to the theme itself?
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 8:38 am
by simonmlewis
I do. Yes. But I don't know where to look to find that particular bit of code.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 8:45 am
by Celauran
Open the theme in your editor and find in files? grep?
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 8:55 am
by simonmlewis
I can't find it in the code.
I found this, but doesn't work for me:
http://www.zupadream.com/marble-cake-cherries/
The closest I can find it this:
Code: Select all
<?php if(of_get_option('disable_post_author_box') !=1){?>
<div class="auth">
<div class="author-info">
<div class="author-avatar"><?php echo get_avatar(get_the_author_meta('user_email'), 90); ?></div>
<div class="author-description"><h5><a itemprop="author" href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) )); ?>"><?php esc_attr(the_author_meta( 'display_name' )); ?></a></h5>
<p><?php echo get_the_author_meta('description'); ?></p>
<ul class="author-social clearfix">
<?php if ((get_the_author_meta('url')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('url')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/website.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('email')) != ''){ ?>
<li><a href="mailto:<?php echo esc_url(get_the_author_meta('email')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/email.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('linkedin')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('linkedin')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/link.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('rss')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('rss')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/rss.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('pinterest')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('pinterest')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/pin.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('devianart')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('devianart')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/d-art.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('dribble')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('dribble')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/dribble.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('behance')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('behance')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/behance.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('youtube')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('youtube')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/youtube.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('instagram')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('instagram')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/instagram.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('twitter')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('twitter')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/twitter.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('facebook')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('facebook')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/facebook.png"></a></li>
<?php }?>
<?php if ((get_the_author_meta('googleplus')) != ''){ ?>
<li><a href="<?php echo esc_url(get_the_author_meta('googleplus')); ?>" target="_blank"><img alt="" src="<?php echo get_template_directory_uri(); ?>/img/icons/google-plus.png"></a></li>
<?php }?>
</ul>
</div>
</div>
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 8:59 am
by simonmlewis
Bingo.
In Editor:
.auth {
display: none;
}
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 9:00 am
by Celauran
We can't see the code, you can't search the code. I think we're at an impasse here.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Tue Mar 03, 2015 9:07 am
by simonmlewis
I could see it, and found the outer div that controls it. So set that to not display, and job done. Cheers.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Wed Mar 04, 2015 10:44 am
by simonmlewis
http://jellywp.com/theme/nanomag/
Same page, I cannot see in the CSS where the color is for the dropdown menu on the end, under Shop.
I have managed to get the hover over set for the menu and the dropdown, but not the dropdown background links.
I've looked at every background and background-color, but cannot see anything that would be it. I've tried added #000000 to some classes, but to no success.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Wed Mar 04, 2015 11:01 am
by Celauran
Background colour? Line 1229.
Code: Select all
.sf-menu li ul.sub-menu li:hover {
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Wed Mar 04, 2015 12:49 pm
by simonmlewis
No that's on hover. I have that working.
It's what happens when it's not hovering. It's always a dark shade of blue.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Wed Mar 04, 2015 12:56 pm
by Celauran
Line 1272
You might do better to create a custom class/style for that list though.
Re: WordPress Nano Mag: disable user email Div - how?
Posted: Wed Mar 04, 2015 3:27 pm
by simonmlewis
So it cannot just be set...?
I can see the ul is set with "sub-menu", but that has everything set correctly... with no effect.