• 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 : https://www.meroeh.com

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator t-p

    (@t-p)

    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

    (@sara-etemad)

    Hi @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

    (@t-p)

    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

    (@sara-etemad)

    Dear @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

    (@t-p)

    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

    Thread Starter sara etemad

    (@sara-etemad)

    Dear @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;, “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 />

    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 />

    note: after copy in this new version ” changed to this ’ and <p> added.

    • This reply was modified 7 years, 2 months ago by sara etemad.
    • This reply was modified 7 years, 2 months ago by sara etemad.
    Moderator t-p

    (@t-p)

    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

    (@sara-etemad)

    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 7 years, 2 months ago by sara etemad.
    • This reply was modified 7 years, 2 months ago by sara etemad.
    • This reply was modified 7 years, 2 months ago by sara etemad.
    Moderator t-p

    (@t-p)

    I’m running out of ideas.

    another thing suggested by other volunteer is that you need to swap the curly quotes to proper ones.

    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

    (@sara-etemad)

    dear t-p
    thank you very much for your helps.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    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

    (@sara-etemad)

    oh thank you veryyyy much dear @williampatton
    Your code worked correctly.
    thank you for your helps dear friends ??

    • This reply was modified 7 years, 2 months ago by sara etemad.
    Thread Starter sara etemad

    (@sara-etemad)

    thank you dear @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.