Jump to content

PS adding html between BO en FO


Recommended Posts

Hi,
 
I'm looking for help. i'm facing a probleme :
I want to put a specific html code in the BO of my html page. But when i go in FO the code isn't the same.
 
Prestashop add extra information to my code.
In my case i get extra <span> around my <input> and that's a probleme for me.
 
Someone know why prestashop add extra html ? And how can i stop him to do this in the future ?
 
Regards,
 
FYI :
code BO :
<div class="main">

	  <input id="tab1" type="radio" name="tabs" checked>
	  <label for="tab1">New York</label>

	  <input id="tab2" type="radio" name="tabs">
	  <label for="tab2">London</label>

	  <div class="content">  
		  <div id="content1">
                     <p>txt New York</p>
		  </div>

		  <div id="content2">
     		     <p>txt content 2</p>
		  </div>
	  </div>
</div>
code FO :
 
<div class="main">
	<div class="radio" id="uniform-tab1" style="display: none;">
		<span class="checked">
			<input id="tab1" type="radio" name="tabs" checked="checked">
		</span>
	</div> 
	<label for="tab1">New York</label>

	<div class="radio" id="uniform-tab2" style="display: none;">
		<span class="">
			<input id="tab2" type="radio" name="tabs">
		</span>
	</div> 
	<label for="tab2">London</label>

	<div class="content">
		<div id="content1">
			<p>txt New York</p>
	  	</div>

	  	<div id="content2">
			<p>txt London</p>
	  	</div>
	</div>
</div>

 

Edited by Pi-r (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...