• How can I put some code in comment, so it is not vissible on my page until I remove comment.

    I am doing it in text widget.

    <!– comment –> This works pefectly!

    <!–Goal Scorer: <font color=”red”>Zinedin Zidan </font>
    –> – This won’t work

    Plase help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry I don’t really understand what you are trying to do. It may be that this code <font color="red"> is invalid/deprecated – though there may be other issues – as I don’t really understand what you are doing.

    html commenting in a textwidget works without problems in my local test site in a child theme of Twenty Twelve.

    general troubleshooting:
    – try to switch to the default theme Twenty Twelve and check the textwidget;
    – try to deactivate all plugins to see if that solves your problem.

    Thread Starter juve123

    (@juve123)

    Thanks for the replys, but it wont work.

    Bellow is the text that I want on my page written in red, that means Zinedin Zidan would be written in red.

    Goal Scorer: <font color=”red”>Zinedin Zidan </font>

    Now, let’s say today I don’t want this on my page and want to make it invisible. How would I do this and after put back to visible on my page when I want.

    Point is that I use this text every 3 days and I don’t want to write the code every time as it is always the same and I would like to just disable or enable (make visible or invisible) this text when I want.

    How should I do this?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘comment near to HTML code’ is closed to new replies.