Jump to content

Archived

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

kellid

Adding banner image to header

Recommended Posts

kellid    2
kellid

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
greenfly    230
greenfly

Try using a hook instead 

 

You can see the help on hooks here http://support.pagelines.me/docs/customization/hooks/


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
kellid    2
kellid

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
greenfly    230
greenfly

Yikes - my bad - the docs for Framework are here http://support.pagelines.me/docs/customization/hooks/


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
kellid    2
kellid

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
greenfly    230
greenfly

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


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
kellid    2
kellid

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

Share this post


Link to post
Share on other sites
kellid    2
kellid

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
kellid    2
kellid

Got it!!  changed the z-index :)  

 

So sorry to bother you!!

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

no problem - thank you for letting us know :) 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites

  • Similar Content

    • flourishdesignstudio
      By flourishdesignstudio
      Hello,
      I have an older site that was built using PageLines several years ago (prior to the release of DMS). I wanted to leverage some of the power of your new PL5 plugin but the theme prevents be from adding any generated custom sidebars to the theme (through the drag and drop interface) and does not allow me to add any PL5 sections/containers/etc to the header or footer. Is there any way to easily override that or am I stuck only using PL5 in the content areas of the site?
      Thanks so much for the help!
    • JP
      By JP+
      Hello,
      How can you set the translations with platform5, the parts that are not in pages or posts? Texts and images…
    • romanondrasek
      By romanondrasek
      hi all, I have some trouble using PL5 on my site. 
      I used plugins for event calendar (event on) and plugin (timetable responsive scheduler for WP) for schedule (classes) in the gym.
      The problem is, that post from this 2 plugins are shown without menu in header and footer. (I setup header and footer) in the page editor for all type of page. 
      When I create a lesson, it creates posts with slug (I have a slug "lekce" & event for events).
      I try to edit the post with PL editor, but editor is not opening on the post.

      Do you have some idea where should be some problem? Thanx so much.
      here are links for the sites :
      site with schedule :
      http://www.myfit.cz/rozvrh/
      site of one of the class (pilates)
      http://www.myfit.cz/lekce/pilates/
      site with calendar :
      http://www.myfit.cz/kalendar/
      7 side with one event from the calendar :
      http://www.myfit.cz/event/pilates-instruktor-akreditovana-licence/?ri=1
      when I have my site on DMS2 it was working :-(
       
       
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey team,
      Really simple question: where would I add code to a specific page header? I can see in the settings I can add code to the global header, but can't see how to do it for a single specific page. It's related to facebook pixel tracking
      Cheers
    • Le Chef Est Une Femme
      By Le Chef Est Une Femme+
      Hey everyone
      I am very sorry if this question has a "deja vu"  taste but I have been looking for more than 2 hours a way to add a phone number in the top right corner of my header website.
      Before asking that, I have read many of the questions related to that subject, from hooks and action map to function.php and hooker plugin but I am very lost. Plus many links kindly given by some of you are now 404 pages
      Is there anyone willing to help me find the easiest way to add this number please ? 
      In advance, thank you 
      www.upgrad.paris
×