Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,209,364 members, 8,005,812 topics. Date: Monday, 18 November 2024 at 11:22 AM

How To Add Script On Drupal Header? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Add Script On Drupal Header? (1122 Views)

How Do I Install And Run A Php Script On My Cpanel? / Please How Do I Install Nulled Xenforo Script On My Hosting Server? / How To Install Php Script On Windows Xp (2) (3) (4)

(1) (Reply) (Go Down)

How To Add Script On Drupal Header? by asadul549(m): 5:10pm On Dec 01, 2016
I want to add this code below to my drupal site header manually. I need your suggestions.
Thanks in advance!
Re: How To Add Script On Drupal Header? by asadul549(m): 6:06pm On Dec 01, 2016
can someone please answer?
Re: How To Add Script On Drupal Header? by Wacosoninterior: 9:00pm On Dec 02, 2016
asadul549:
I want to add this code below to my drupal site header manually. I need your suggestions.
Thanks in advance!

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://www.website.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.website.com/search/node/{search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>

Message me.on 08163817293

I can help
Re: How To Add Script On Drupal Header? by romme2u: 1:14am On Dec 03, 2016
asadul549:
can someone please answer?

are you building a theme or sub-theming? it is not advisable to hack drupal else you would be stuck with that version of drupal as any update will wipe off your customization.

BTW what version of drupal are you using and the name of your theme?
Re: How To Add Script On Drupal Header? by asadul549(m): 1:22pm On Dec 03, 2016
Removed.
Re: How To Add Script On Drupal Header? by asadul549(m): 1:25pm On Dec 03, 2016
Removed

(1) (Reply)

Let Discuss About Web Api For Android / Which Text Book Is The Best For JAVA Learning / How Much Will Ot Cost Me To Develop My Website App

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.