Hello. Does anyone can answer why I cant insert this simple code in a post or a page?
<script language=’Javascript’ src=’http://www.bookhostels.com/files/index.php?UserID=Mochilero.info&File=bighw&Language=Spanish&Currency=USD&NewWindow=1&PropTypeSelect=’ charset=’utf-8′></script>
I want to insert the code here: https://www.mochilero.info/hostels
This code doesnt need to modify the header code, usually it works directly if I copy it in the body section.
In the past, with another themes, I didnt have any problem.
And if I test it with a simple html file in the same hosting, it works fine: http://www.mochilero.info/hostelworld.html
Hello,
I just pasted the code in a post and it seems to work: https://www.screencast.com/t/uocKX6gOo0A
The quotation marks had to be changed though to
<script language="Javascript" src="http://www.bookhostels.com/files/index.php?UserID=Mochilero.info&File=bighw&Language=Spanish&Currency=USD&NewWindow=1&PropTypeSelect=" charset="utf-8"></script>
Thanks.
Thanks. Did you copy the code directly in the text area?
I tried the new code in a post and in a page but it doesnt works. Maybe is a problem with the header? I never changed it.
It tried here: https://www.mochilero.info/test-2/
And here: https://www.mochilero.info/test3/
But nothing happend.
My header is the original from the theme:
<!doctype html >
<!–[if IE 8]> <html class=”ie8″ lang=”en”> <![endif]–>
<!–[if IE 9]> <html class=”ie9″ lang=”en”> <![endif]–>
<!–[if gt IE 8]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<title><?php wp_title(‘|’, true, ‘right’); ?></title>
<meta charset=”<?php bloginfo( ‘charset’ );?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
?>
</head>
<body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>
<?php /* scroll to top */?>
<div class=”td-scroll-up”><i class=”td-icon-menu-up”></i></div>
<?php locate_template(‘parts/menu-mobile.php’, true);?>
<?php locate_template(‘parts/search.php’, true);?>
<div id=”td-outer-wrap” class=”td-theme-wrap”>
<?php //this is closing in the footer.php file ?>
<?php
/*
* loads the header template set in Theme Panel -> Header area
* the template files are located in ../parts/header
*/
td_api_header_style::_helper_show_header();
do_action(‘td_wp_booster_after_header’); //used by unique articles
-
This reply was modified 9 years by
MochileroInfo.
I tested and the code works in the same hosting, with newspaper default, but with another domain:
http://www.cervecerias.info/2017/06/06/hostelworld/
So, the problem is with my mochileroinfo domain, and the original installation… I dont know what to do, I dont like to begion from zero again
Hi,
Sorry but I cannot say for sure why the script runs on one domain but does not work on another one. There could be specific limitations to the domain in question. Please contact the host and let them know about the issue as they can maybe provide some insight to why this happens.
Thank you!