Code not working in published page

[ad_1]

I see several YogChakra logos with their link code below them.

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

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 href="https://www.yogchakra.com/" target="_blank">
  <img src="https://www.yogchakra.com/wp-content/uploads/2023/08/yoga-directory-yogchakra-sq1.png" alt="YogChakra.com" border="0">
</a>

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

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.

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 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer