Jump to content

Archived

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

lazlo

how to Include some Scripts & code into a DMS site

Recommended Posts

lazlo

Hi, Im trying to get the following code into the home page of a DMS2 WP website..as a thin bar across the top of the page.with absolutely no luck.

 

I have tried..

  • using nextbox - which just hangs the site and stops the DMS editor from loading
  • splitting the scripts to the Custom Scripts section - this hangs the site as above
  • adding it in an Iframe- this cuts off/hides the calendar pop up as the iframe is set to 50px

Please could someone offer a solution - its completely doing my head in ;o)

<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script>
  $(function() {
    $( "#arrivalDate" ).datepicker();
  });
</script>
</head>
<body>	
<div class="blockDark">	
<form id="makeBooking" action="http://www.domain.com/test-2" method="get">
<span>Arrive</span>
<input type="text" name="arrival" id="arrivalDate" value="<?= date('d/m/Y'); ?>" style="width:100px;"/>
				<span>Nights</span>
				<select name="numberOfNights">
					<option value="1"> 1 </option>
					<option value="2"> 2 </option>
					<option value="3"> 3 </option>
					<option value="4"> 4 </option>
					<option value="5"> 5 </option>
					<option value="6"> 6 </option>
					<option value="7"> 7 </option>
					<option value="8"> 8 </option>
					<option value="9"> 9 </option>
				</select>
				<span>Adults</span>
				<select name="numberOfPersons" id="numberOfPersons" >
					<option value="1"> 1 </option>
					<option value="2"> 2 </option>
					<option value="3"> 3 </option>
					<option value="4"> 4 </option>
				</select>
				<span>Children</span>
				<select name="numberOfChildren" id="numberofChildren" >
					<option value="1"> 0 </option>
					<option value="1"> 1 </option>
					<option value="2"> 2 </option>
					<option value="3"> 3 </option>
					<option value="4"> 4 </option>
				</select>
				<span>Offer Code</span>
				<input type="text" name="offerCode" id="offerCode" />
				<input type="submit" value="Check Availability" />
			</form>
		</div>

Share this post


Link to post
Share on other sites
Danny

Hi,

 

To include some code on a specific page, you will want to use either NextBox, Hooker or use a hook. Please be aware that we can not provide support to users who wish to add custom code to their site. Also, there is no need to add or include jquery or jquery ui as this is already included with WordPress.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • werdnags
      By werdnags+
      Evening All,
      Can anyone help me please?  I am trying to insert an iframe to wrap another website.  I have tried using the 'text' and 'embed' section and insert the code:
      <iframe src="website-address"></iframe> When I save the page it then returns blank, nothing at all, not even the tool bars for pagelines.  I don;t know how to disable that section so I am having to just delete the page and create a new one with a different name.
      Thanks for any help.
    • casseysdesigns
      By casseysdesigns+
      In the past I would use nextbox for this task. However, Platform 5 does not have nextbox. I will do my best to describe what I am trying to do.
      I am creating a template for coaches, each product has its own link but they all share a common coach id. I want to set up the templates with the links for each product with a variable for the coach id so that I can change the coach id for all the links on the site by just changing the value of the variable $coachId. To do this I'll need to do something like the following...
      <a href="salesite.com/productcodes/referringRepId=<?= $coachId ?>" target="_blank">Product Purchase Link</a> Is it possible to do this with Platform 5?
    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
×