• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Help Integrating a Booking.com Code

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Help Integrating a Booking.com Code

This topic is: resolved

Tagged: booking.com, header, source

  • This topic has 2 replies, 3 voices, and was last updated 9 years, 8 months ago by Rahn and Dianna.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 6, 2013 at 6:44 am #49500
    MM
    Member

    I'm insert a hotel affiliate search box. Instructions are:

    -----
    "You can insert the searchbox on your website by copying the search box's "sourcecode" directly onto your own server. To do this, display the search box's "source code" on your browser, right click on the search box and choose "View page source". The sourcecode will now be displayed. You can copy the code between the "<!-- start copy sourcecode from here -->" tag and "<!-- end copy sourcecode until here -->" tag. Remember to load the search box URL in a new window before viewing the page source. And don't forget to copy the CSS and JavaScript files from the <head> section of the sourcecode and include them in the <head> section of your webpage!
    -----

    If anyone's done this or knows how to, a few questions:

    1) Would the source code be inserted into functions.php ?
    2) My theme doesn't have a header.php . Can I just create one or insert this somewhere else in Genesis?
    3) Is there a way to control this so scripts only run on pages with search boxes?

    Thanks!

    July 6, 2013 at 11:15 pm #49601
    Summer
    Member

    I would guess that you'd enter the javascript and CSS bits into the "Header scripts" field in Genesis > Theme Settings, just like you'd add the Google Analytics code.


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    July 7, 2013 at 1:33 pm #49675
    Rahn and Dianna
    Member

    Where are you trying to put it?

    If you want it in a widget so you can put it in a sidebar, then create a "text" widget, Paste the code in there.

    If you want it to always be in the header or footer, then stick it in the header/footer scripts as Summer suggested.


    gonesomewhere.com * oyveyaday.com * myworldofcoke.com

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Help Integrating a Booking.com Code’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble