Archived

This topic is now archived and is closed to further replies.

  • 0

Header Share Icons


Question

Posted · Report post

Is there a way to make the header icons share... instead of going to profile pages?

 

eg... on posts ability to share post to facebook...

 

on header... it will go to a facebook profile instead...

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

You'll need to use a plugin (most likely a plugin widget that you can add to Universal Sidebar and you can activate Universal Sidebar in the Header in Drag & Drop).

Share this post


Link to post
Share on other sites

Posted · Report post

I've done that before... its gets pretty messy adjusting everything else...

 

I've got this in my function file... but wanted the action to share not to go to a page.

 

// ------- ADDS SOCIAL ICONS TO BRANDNAV ------- //

add_action('pagelines_inside_top_brandnav', 'social_icons');	function social_icons(){ ?>

		<div class="icons" style="bottom: 12px; right: 1px; float:right; padding-top:17px;">

			

			<a target="_blank" href="https://twitter.com/myprofile" class="twitterlink"><img src="/wp-content/themes/pagelines/sections/branding/twitter.png" alt="Twitter"></a>

			<a target="_blank" href="http://www.facebook.com/myprofile?fref=ts" class="facebooklink"><img src="/wp-content/themes/pagelines/sections/branding/facebook.png" alt="Facebook"></a>

			<a target="_blank" href="http://www.linkedin.com/myprofile" class="linkedinlink"><img src="/wp-content/themes/pagelines/sections/branding/linkedin.png" alt="LinkedIn"></a>

			

		</div>

	<script type="text/javascript"> 

		jQuery('.icons a').hover(function(){ jQuery(this).fadeTo('fast', 1); },function(){ jQuery(this).fadeTo('fast', 0.5);});

	</script>

<?php }

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

The thing you're asking for requires custom code with various conditionals.  Effectively you're in need of code that says... If on this page, go here; if you're on that page, go there.

 

You'd need a Pro to develop that for you.  I don't know of any plugins that do this directly.  That said, there may be some I just don't know about. 

Share this post


Link to post
Share on other sites