Jump to content
Sign in to follow this  
tofasa

Problems getting functioning link on social icon in brandnavn

Recommended Posts

tofasa

Hi, this is probably due to my lack of knowledge in CSS, but I am trying to insert a linkedin icon in the brandnav, using a new larger icon image and aligning it top/right. I have success in getting the icon to show and placed correctly using a hook and CSS customization (using platform base), however I cannot get it to link to the Linkedin page. The hook is: ' add_action('brandnav_after_brand', 'linkedin_header'); function linkedin_header(){ ?>

<?php } and the CSS customization is as follows: ' .icons { top: 15px !important; right: 10px !important; } .icons a { width: 34px !important; height: 34px !important; } .icons .linkedin {background:url('../platformpro/images/social-linkedin.png') no-repeat 0 0 !important; } .icons .linkedin:hover {background:url('../platformpro/images/social-linkedin.png') no-repeat 0 0 !important; } ' What am I doing wrong? Thx in advance!

Share this post


Link to post
Share on other sites
tofasa
BTW - the semi-colon after the "a href" link was inserted by the forum when I posted - it is not there in the original code.

Share this post


Link to post
Share on other sites
Kate
Try this for the CSS: [code] .icons a { display:block; width: 34px !important; height: 34px !important; } [/code] If that doesn't work, please provide a link to your site when responding.

Share this post


Link to post
Share on other sites
tofasa
Hi Kate, I added the display:block part to the CSS but no change - still doesn't link. The website is www.cimic-consulting.com Cheers!

Share this post


Link to post
Share on other sites
Danny
Hi Tofasa, The issue is with the width of your nav and thats all there is to it. It was overlapping the Linkedin icon/link. Adding this to your Custom CSS should resolve the issue. [code] #brandnav .main_nav { width: auto; } [/code]

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×