Forums

How to get html look nice in Sandbox child. (3 posts)

  1. Bronislaw Gracz
    Member
    Posted 2 years ago #

    Hi,
    So I set up child theme of Sandbox. Sandbox itself produces reasonably nice html outputs. But I imported some template files into my child to add a div here and there. Along with this I cleaned the php a little bit to look more readable for me.

    After this operation the sit of course remains just as operative as I wish it to be but the html output lost most of it's indentation etc. For example <body> tag comes somewhere in the middle of a very long line etc. How should I wrap / syntax / indent my template .phps to get the nice look of html.

  2. Bronislaw Gracz
    Member
    Posted 2 years ago #

    Can it have something to do with whether I save the files in ANSI or UTF-8? ANy ideas?

  3. Bronislaw Gracz
    Member
    Posted 2 years ago #

    Solution:

    OK so I am editing the files on Windows with Notepad++.

    It seem that Notepad is not recognizing file encoding properly. It indicates ANSI. What solves the problem is changing the encoding to UTF-8. Not converting, simply changing and saving the file.

Topic Closed

This topic has been closed to new replies.

About this Topic