Better spacing question on registration form

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #149798

-- HikaShop version -- : latest
-- Joomla version -- : 2.5.19

I am trying to add a line of space in the registration field, by adding a space in the PHP code rather than through CSS. Please look at the attachments. I have managed to add the line of space using the code below but the problem is '?>' now appears.

?>
<?php
echo '<br/><br/>';
?>

I would be very grateful if you can tell me the correct way to do this, so '?>' does not appear on the front end.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #149868

Tried to work this out but my lack of php knowledge is not helping. I thought the following code would work to add a line of space in the registration form, but it leaves characters on the front end (as you see in attachment). Any pointers greatly appreciated!

?>
<?php
echo '<br/><br/>';
?>

Attachments:
Last edit: 11 years 2 months ago by boopoo.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #149804

Hello,
Note that the easiest way to do that will be to that will probably be to use some CSS code, but if you want to help me with your customization can you tell me what lines did you edited and show me how did you changed them ?
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #149987

Hello Mohammed,

Yes I would really appreciate your help. I have attached the bit of code I added to the view "user / registration". I did not change any code, I just added the bit of code in red. As you saw in previous attachment, this did not work 100%.

If you can help me create a line of space I would be very happy.
Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 2 months ago #150002

The first ?> in the red zone of your code should be removed.
Actually, you don't even need any PHP.
You could just write the br tags directly like that:
<br/><br/>

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 7
11 years 2 months ago #150099

Many thanks Nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum