Title: text widget doesn&#8217;t display my code correctly
Last modified: December 12, 2017

---

# text widget doesn’t display my code correctly

 *  [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/)
 * Hello Friends
    i want to add my html code to text widget in wordpress but my 
   problem is that last code which i used it before this time in text widget doesn’t
   work properly. i have an inspect element from my home page and i understand text
   widget changes ” to ,, after input it to my site. anybody can help me issue pleaseee?
   you can check this issue in second column of footer section in my homepage website.
   my site is : [http://www.meroeh.com](http://www.meroeh.com)

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9776305)
 * You did not show the version of your WP.
 * Now there is also a `Custom HTML` Widget.
 * Have you tried that?
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779222)
 * Hi [@t-p](https://wordpress.org/support/users/t-p/)
    thanks for your attention,
   my wordpress up to date (4.9.1 version). Yes this problem exists with cutom HTML
   widget.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779332)
 * honestly, this is the first I heard issue with Custom HTML widget.
 * Make sure there is no problem with your code.
 * If that’s okay, then try:
    – deactivating ALL (yes all) plugins temporarily to
   see if this resolves the problem (plugin functions can interfere). If this works,
   re-activate them individually (one-by-one) to find the problematic plugin(s).–
   switching to the unedited default Theme (Twenty Seventeen, etc.) for a moment
   using the WP dashboard to rule out any theme-specific issue (theme functions 
   can interfere like plugins).
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779561)
 * Dear [@t-p](https://wordpress.org/support/users/t-p/)
    thank you for your attention
   again, i am sure about my code. i deactivate all plugins and i refresh my site
   after that, but this problem does not been solved. i am sure this problem because
   of text widget, because this code applied in right column of footer and worked
   correctly in the past but recent updates brings this problem.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779575)
 * Any error message?
 * – Please check the error logs on your server for a more specific error message
   and see why it’s failing. If you need help locating them, ask your hosting provider
   to help you with that.
    – If you cannot find error logs or if you don’t find 
   any helpful info in the error logs, try [Enabling debugging](https://codex.wordpress.org/Debugging_in_WordPress)
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779631)
 * Dear [@t-p](https://wordpress.org/support/users/t-p/)
    i know the source of problem.
   when i put this code in text widget and get inspect element from first column
   of footer this code displayed like this:
 * **<div class=”textwidget”>**
    <img id=**“**xlapwmcswmcsxlapsgui**“** style=**“**
   cursor:pointer**“** onclick=**“**window.open(“[https://trustseal.enamad.ir/Verify.aspx?id=38830&p=fuixaqgwaqgwfuixdrfs&#8221](https://trustseal.enamad.ir/Verify.aspx?id=38830&p=fuixaqgwaqgwfuixdrfs&#8221);,“
   Popup”,”toolbar=no, location=no, statusbar=no, menubar=no, scrollbars=1, resizable
   =0, width=580, height=600, top=30″)**“** alt=**“”** src=**“**[https://trustseal.enamad.ir/logo.aspx?id=38830&p=vjymukaqukaqvjymgthv](https://trustseal.enamad.ir/logo.aspx?id=38830&p=vjymukaqukaqvjymgthv)**“**/
   >
 * but after recent updates when i copy this code in text widget and get inspect
   element from second column of footer this code displayed like this:
 * **<div class=”textwidget”>**
    **<p>** <img id=**’**xlapwmcswmcsxlapsgui**’** 
   style=**’**cursor:pointer**’** onclick=**’**window.open(“https://trustseal.enamad.
   ir/Verify.aspx?id=38830&p=fuixaqgwaqgwfuixdrfs”, “Popup”,”toolbar=no, location
   =no, statusbar=no, menubar=no, scrollbars=1, resizable=0, width=580, height=600,
   top=30″)**’** alt=**”** src=**’**[https://trustseal.enamad.ir/logo.aspx?id=38830&p=vjymukaqukaqvjymgthv](https://trustseal.enamad.ir/logo.aspx?id=38830&p=vjymukaqukaqvjymgthv)**’**/
   >
 * note: after copy in this new version ” changed to this ’ and <p> added.
    -  This reply was modified 8 years, 6 months ago by [sara etemad](https://wordpress.org/support/users/sara-etemad/).
    -  This reply was modified 8 years, 6 months ago by [sara etemad](https://wordpress.org/support/users/sara-etemad/).
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779714)
 * The text widget applies `wpautop()` to the content.
 * Swapping to using the Custom HTML widget should likely fix the issue.
 * What you said you have already swapped to the Custom HTML widget? Just double
   check you have swapped to Custom HTML widget.
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779756)
 * i have used Custom HTML Widget but When I put this code in Custom HTML Widget,
   these errors are displayed:
 * my code is:
    `<img width="580," height="600," alt="“”" src="//trustseal.enamad.
   ir/logo.aspx?id=38830&p=vjymukaqukaqvjymgthv“" />`
 * my errors are:
    – Special characters must be escaped : [<]. – Special characters
   must be escaped : [>].
 * note: Unfortunately, my code is not displayed in this message But the same of
   code I mentioned above.
    -  This reply was modified 8 years, 6 months ago by [sara etemad](https://wordpress.org/support/users/sara-etemad/).
    -  This reply was modified 8 years, 6 months ago by [sara etemad](https://wordpress.org/support/users/sara-etemad/).
    -  This reply was modified 8 years, 6 months ago by [sara etemad](https://wordpress.org/support/users/sara-etemad/).
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779767)
 * I’m running out of ideas.
 * another thing suggested by other volunteer is that you need to swap the curly
   quotes to proper ones.
 *  [williampatton](https://wordpress.org/support/users/williampatton/)
 * (@williampatton)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779793)
 * The formatting does indeed have curly quotes instead of ordinary ones that is
   used by code editors. It also has a few syntax errors in the arrangement of what
   kinds of quotes are used where. I modified the code to correct those and managed
   to get it to save in the custom html widget. Try this:
 *     ```
       <img id="xlapwmcswmcsxlapsgui" style="cursor:pointer" onclick="window.open('https://trustseal.enamad.ir/Verify.aspx?id=38830&p=fuixaqgwaqgwfuixdrfs', 'Popup','toolbar=no, location=no, statusbar=no, menubar=no, scrollbars=1, resizable=0, width=580, height=600, top=30')" alt="" src="https://trustseal.enamad.ir/logo.aspx?id=38830&p=vjymukaqukaqvjymgthv" />
       ```
   
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779794)
 * dear t-p
    thank you very much for your helps.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779842)
 * FYI, use “backticks” to post code blocks on these forums. Might help for future
   questions.
 * Backtick is the symbol below the tilde ~, usually to the left of the number line
   on most keyboards.
 * `Backticks make posting code easy.`
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779846)
 * oh thank you veryyyy much dear [@williampatton](https://wordpress.org/support/users/williampatton/)
   
   Your code worked correctly. thank you for your helps dear friends 🙂
    -  This reply was modified 8 years, 6 months ago by [sara etemad](https://wordpress.org/support/users/sara-etemad/).
 *  Thread Starter [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * (@sara-etemad)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779883)
 * thank you dear [@otto42](https://wordpress.org/support/users/otto42/) for your
   help 🙂

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

The topic ‘text widget doesn’t display my code correctly’ is closed to new replies.

## Tags

 * [text widget](https://wordpress.org/support/topic-tag/text-widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 14 replies
 * 4 participants
 * Last reply from: [sara etemad](https://wordpress.org/support/users/sara-etemad/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/text-widget-doesnt-display-my-code-correctly/#post-9779883)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
