• 0

Adding banner image to header


Question

Posted · Report post

Hello,

 

I'm trying to add a banner image in the header of my site between the logo and drop down login box to the right.  I've added code to my header.php file but it's above the header and not nested between these two points.  

 

[post='[ptiframe]61-afj1e3[/ptiframe]']Here[/post] is the code i've used in my header.php file and here is the site...

 

http://www.dev.modelalliance.org/

 

I am using pagelines framework, not DMS version 2.2.5.  

 

Any guidance with this would be Greatly appreciated!

 

Thank You!

 

Kelli

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

I think you might be misunderstanding hooks. 

 

 

Hooks in PageLines Framework essentially allow you to manipulate or insert code without editing core files.There are two types of hook, these are actions and filters.

Action Hooks

Action Hooks allow you to insert additional code and, there by, customise the code to do additional functions at designated points in PageLines Framework.

Filter Hooks

Filter Hooks are used to manipulate code output and return a variable. An example of this would be to add a text, a link or even an image to the end of the content on your blog posts or pages.

To put it more elegantly, you can change things that are hard-coded with filters, and you can add things using actions.

For more information on what hook actions and filters are, see WordPress documentation Plugin API. There is also an excellent article by WP Candy on hooks here

 

You can use the hooker plugin to add a hook and the action map plugin to see all the available places to add your hook to. 

 

You can get either of those plugins here https://www.dropbox.com/s/muyy8k5xcjvbvlo/Framework-included-content.zip

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the response Martin!  But these hooks are for DMS, I'm still using Framework for this site.  Do you have a list for Framework hooks or would you know off hand which I would need to add an image banner to the right of my logo?

 

Thanks!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you, that's the link you sent before the but page where the Framework hooks are supposed to be is blank.  

 

Any idea where else i can find a list of hooks for FRamework?

 

Thank you!!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hooker!!  Exactly what I needed, on the right path.  Thank You!!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Martin!  

 

I have the image in the header exactly where I want it but now the link is not working.  It's hidden behind the section brand, I tried to use this code in css but it's not working.  Any idea how to get the link to work?

 

.section-branding .branding_wrap {z-index: -1;}

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Got it!!  changed the z-index :)  

 

So sorry to bother you!!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

no problem - thank you for letting us know :) 

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