Sign in to follow this  
Followers 0

Fixed Section above fixed NavBar


7 posts in this topic

Posted · Report post

Hi Everyone, 

 

I am working on a project and was wondering if it is possible to introduce a fixed full width section above the fixed navBar?

 

It would contain things like contact details, social media icons and possibly a newsletter sign-up form.

Something like this site: http://www.thewhiskybond.co.uk/

 

Any advice / help would be appreciated. 

 

Cheers,

 

Sean

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, it's possible. There is a hook above the fixed navbar you could use. http://screencast.com/t/V9sKQkYAZV47

 

You'd be able to put content in there using a hook, not add as a drag and drop section etc. If you added the items like a search box, icons as html inside a container div into the hook, you could then align them with css into the desired position.

 

Might be easier to use a plugin though, something like - http://wordpress.org/plugins/wp-topbar/

2 people like this

Share this post


Link to post
Share on other sites

Posted · Report post

James B Thanks as always!

Trying to skill-up so ill give the hook option a go. 

2 people like this

Share this post


Link to post
Share on other sites

Posted · Report post

You're welcome, let us know how you get on.

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi James B

 

Just a quick one... the screencast link you have above is broken.

I wonder could you point me in the right direction for the hook that relates to above the navbar. 

 

Also, i am using the Hooker plugin and wonder are the hooks added to the child themes functions.php or the DMS functions.php? 

Reason being is that i understand adding to the child theme will prevent any hooks added from being erased. 

 

Thanks for your help. 

 

Sean.

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Sean

 

Not sure what happened there, have reloaded for you http://screencast.com/t/iwzD6uGjvEoy

 

I would say wp_head or Pagelines_before_navbar are the best options.

 

Always add hooks to the child theme functions.php, that way they are saved on update.

 

Examples of Pl hooks can be seen for reference at - http://docs.pagelines.com/advanced/hooks

Share this post


Link to post
Share on other sites

Posted · Report post

James B Great stuff! Thanks for your help!

 

Ill let you know how i get on 

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  
Followers 0