Jump to content

Archived

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

kellid

Adding banner image to header

Recommended Posts

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

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

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

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

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

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

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

Share this post


Link to post
Share on other sites
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

Got it!!  changed the z-index :)  

 

So sorry to bother you!!

Share this post


Link to post
Share on other sites
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

    • Paul
      By Paul+
      I was surprised to see I had no menu today - out of the blue - its actually moved to the bottom of the page!  After hours of fiddling and disabling every single plugin, leaving just plagelines the issue is still present.  See video for a basic text box - I moved it into the head and it jumps to the bottom and shows just above the footer but below the main content.  I have a temp fix by placing the menu into the first row on the main content but it does mean other than my home page, all other pages have no menu.  A quick fix is very urgent for this bug.
      https://thelaptopfixers.com
       
       
    • russe-intensif
      By russe-intensif+
      Hi team,
      checking my site today, i'm surprised to see my MegaNav all in bottom of the pages, while it's in header.
      After getting to change it in couple of pages onto Template part (too time consuming !), i'm desperate and ask you for help :-)
      apprendre-le-russe-avec-ania.fr
      Thank you in advance !

    • 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 :-(
       
       
×