Jump to content
Sign in to follow this  
sgmcgrew7

Move Twitter Bar location

Recommended Posts

sgmcgrew7

Currently the Twitter Bar is located the bottom of the home page. See www.priceofmyroof.com. I would like to move it to the top, right below the navigation tabs, and above the feature slider. Please let me know what to do to make this happen. Thank you

Share this post


Link to post
Share on other sites
cmunns

the easiest way is to use a hook. Add this to your functions.php file in the Base child theme

	add_action('pagelines_inside_bottom_primary-nav', 'twitter_move');
	
	function twitter_move(){?>
	<?php if(pagelines('twittername') ):?>
				
<?php if(function_exists('twitter_messages') && pagelines('twittername')):?> <?php pagelines_register_hook( 'pagelines_before_twitterbar_text', $this->id ); // Hook ?> "<?php twitter_messages(pagelines('twittername'), 1, false, false, '', false, false, false); ?>" — <?php echo pagelines('twittername');?> <?php else:?> <?php _e('Please install and activate the "Twitter for WordPress" plugin to use this section.', 'pagelines');?> <?php endif;?>
<?php else:?>
<?php _e('Set your Twitter account name in your settings to use the TwitterBar Section.', 'pagelines');?>
<?php endif;?> <?php } [/code]

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  

×