• Resolved Preeti Razdan

    (@preetirazdan)


    Hi, I have some HTML code that works fine and shows the image as intended when tested. But when I publish the page and copy-paste the code in HTML, the image does not display. Only links show up. I created this page for site visitors to be able to copy and paste the code. Please let me know how to fix this.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • I see several YogChakra logos with their link code below them.

    Is this what you’re not seeing? Or something else?

    Thread Starter Preeti Razdan

    (@preetirazdan)

    I see the logo and the code. When I copy the code and run it in html tester, it only shows the link. The code is designed to show the image link. Looks like double quotes get somehow corrupted when the page is published?! Maybe that is the problem?!

    Hey there,

    In the code you provided, I noticed that you used non-standard quotation marks. The correct one should be " instead of .

    Tested with below snippet and things worked correctly on my side.

    <a  target="_blank">
      <img src="https://www.yogchakra.com/wp-content/uploads/2023/08/yoga-directory-yogchakra-sq1.png" alt="YogChakra.com" border="0">
    </a>
    
    Thread Starter Preeti Razdan

    (@preetirazdan)

    I use ” but somehow when I publish the page they show up differently

    Thread Starter Preeti Razdan

    (@preetirazdan)

    I also get the correct result with the code you tested but like i said when I publish the page ” change to something else. I am using the wordpress editor

    Put the code inside a CODE block. Don’t just put the code in a paragraph block.

    Thread Starter Preeti Razdan

    (@preetirazdan)

    That worked! I usually find block editor hard to use and prefer classic editor. But I enabled block editor and the code works fine now. Is there a way to make it work in classic editor? Thank you so much for your help ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Code not working in published page’ is closed to new replies.