Jump to content


Photo
- - - - -
Resolved

<Head> Code For Individual Pages (Embedding Bing Maps)

head code bing map embedding map custom code; header script

  • Please log in to reply
6 replies to this topic

#1 bluesquirrel

bluesquirrel

    Advanced Member

  • Members
  • 68 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 20 November 2012 - 11:48 PM

Hi,

Forgive me if this has been asked before, I did have a search but didn't come up with anything. Is there any way to embed header code just for one specific page?

I'm looking to embed a Bing map which requires code in the head section as well as the body but obviously I won't need that map on every single page. I believe that if I add it to the Custom Code section then it will go into every page on the site which seems like a bad idea.

Bing Map Code:

Please Login or Register to see this Hidden Content

'm sure there's an established alternative method for getting the code in there on Pagelines but I'm afraid I've not found it yet.

Thanks in advance to anyone who can point me in the right direction,


Blue Squirrel ;)

[Hope the topic tags will help people in the future with the same question!]

#2 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 21 November 2012 - 02:06 AM

Hi there, I've checked this for you and I've been told that unfortunately this isn't possible. The only way to add the header script is via the custom code page in the header scripts box, which will be site-wide.

#3 bluesquirrel

bluesquirrel

    Advanced Member

  • Members
  • 68 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 21 November 2012 - 10:38 AM

Oh dear, that's not very good.

On the other hand I'm glad I asked a question that didn't have an obvious answer.

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 21 November 2012 - 03:37 PM

James is right. There is no way to add head code to individual pages. The head is global, meaning that it is the same on all pages, so naturally the code that is put in it will be working on all pages.

#5 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 21 November 2012 - 03:37 PM

The topic was marked as resolved.

#6 bluesquirrel

bluesquirrel

    Advanced Member

  • Members
  • 68 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 November 2012 - 06:35 PM

I'm not sure I'd say it's resolved, it doesn't seem like a satisfactory resolution.

Maybe the forum should include an option for [CLOSED] to show threads that weren't resolved?

#7 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 November 2012 - 07:00 PM

Just seen this post,




 

Please Login or Register to see this Hidden Content

 



add to customize plugins functions.php change 128 to your page_id







Also tagged with one or more of these keywords: Resolved, head code, bing map, embedding map, custom code;, header script