WordPress Nano Mag: disable user email Div - how?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

WordPress Nano Mag: disable user email Div - how?

Post 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?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress Nano Mag: disable user email Div - how?

Post by Celauran »

It's going to vary a bit by theme, but look for the_author() and remove the surrounding block from your templates.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post 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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress Nano Mag: disable user email Div - how?

Post by Celauran »

Are you saying you don't have access to the theme itself?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post by simonmlewis »

I do. Yes. But I don't know where to look to find that particular bit of code.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress Nano Mag: disable user email Div - how?

Post by Celauran »

Open the theme in your editor and find in files? grep?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post 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>
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post by simonmlewis »

Bingo.
In Editor:

.auth {
display: none;
}
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress Nano Mag: disable user email Div - how?

Post by Celauran »

We can't see the code, you can't search the code. I think we're at an impasse here.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post by simonmlewis »

I could see it, and found the outer div that controls it. So set that to not display, and job done. Cheers.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post 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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress Nano Mag: disable user email Div - how?

Post by Celauran »

Background colour? Line 1229.

Code: Select all

.sf-menu li ul.sub-menu li:hover {
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post 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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress Nano Mag: disable user email Div - how?

Post by Celauran »

Line 1272

Code: Select all

sf-menu ul li {
You might do better to create a custom class/style for that list though.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress Nano Mag: disable user email Div - how?

Post 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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply