Disabling social icons on Team view

msn2sfo's picture
msn2sfo
Wed, 04/05/2017 - 14:02
#1
Disabling social icons on Team view

Hi again :)

I'm trying to prevent the social icons from appearing on the Team view.

Image title

I went into the actual view under Structure, and removed Facebook/Pinterest from the fields, but nothing changed:

Image title

I also tried to use "hide" when clicking into the fields, and there isn't any content for social links in the individual pieces of Team content. 

Any thoughts on how I can remove Facebook/Pinterest from appearing?

khoa's picture
khoa
Thu, 04/06/2017 - 10:27

Hi there,

Please open views-view-fields--team.tpl.php file(sites/all/themes/md_lovely/templates/views/team), then remove

<div class="social">
<div class="icons">
<a href="mailto:<?php print $Email; ?>" target="_blank"><i class="icon icon_mail"></i></a>
<a href="<?php print $Twitter; ?>" target="_blank"><i class="icon social_twitter"></i></a>
<a href="<?php print $Facebook; ?>" target="_blank"><i class="icon social_facebook"></i></a>
<a href="<?php print $Pinterest; ?>" target="_blank"><i class="icon social_pinterest"></i></a>
</div><!-- /.social -->
<div class="social-background"></div><!-- /.background -->
</div><!-- /.social -->

Note: please make a backup of source code before changing.

Thanks!

phuonght's picture
phuonght
Mon, 05/15/2017 - 03:28

Hi,

Please open file views-view-fields--team.tpl.php(views-view-fields--team.tpl.php), remove code:

<div class="social">
<div class="icons">
<a href="mailto:<?php print $Email; ?>" target="_blank"><i class="icon icon_mail"></i></a>
<a href="<?php print $Twitter; ?>" target="_blank"><i class="icon social_twitter"></i></a>
<a href="<?php print $Facebook; ?>" target="_blank"><i class="icon social_facebook"></i></a>
<a href="<?php print $Pinterest; ?>" target="_blank"><i class="icon social_pinterest"></i></a>
</div><!-- /.social -->
<div class="social-background"></div><!-- /.background -->
</div><!-- /.social -->

phuonght's picture
phuonght
Thu, 05/18/2017 - 06:03

Hi,

It seems that you removed file in your source. We check and can see js error

https://www.dropbox.com/s/41py9fe0970xrmy/1.jpg?dl=0

phuonght's picture
phuonght
Fri, 05/19/2017 - 23:03

So please send us your site admin account and FTP account. Remember to backup database and source code first.

Thank you.

phuonght's picture
phuonght
Mon, 05/22/2017 - 22:16

Hi,

We can login with above FTP account by do not see your web source. Can you please check?

phuonght's picture
phuonght
Mon, 05/22/2017 - 23:20
phuonght's picture
phuonght
Wed, 05/24/2017 - 04:00

Hi,

Check your email please.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.