Can anyone ELI5 how to get a react widget to run on a wordpress website.

[ad_1]

someone said i need Iframe to get a react widget to run on wordpress but when I embed the repository it just shows that link on my site.

complete noob trying to get a uniswap bridge up on my website for fun.

[ad_2]
1 Comment
  1. >but when I embed the repository it just shows that link on my site.

    An Iframe is like a container on your website where another website can load inside. It sounds like you didn’t include the iframe code. Depending or theme there might be an iframe widget. Otherwise you need a code block and manually write it.

    This is about as simple as you can get: [https://www.w3schools.com/tags/tag_iframe.ASP])

    If you are trying to embed lets say [https://uniswap.org/]) you would do this:

    <iframe src=”https://uniswap.org/” width=”100%” height=”500″ ></iframe>

    Just replace src with the page you are actually trying to embed. Width and height can be changed.

    **All this said…**

    Iframes suck. For example the above code sets the iframe height to 500px. What if on a phone it uses 700px? What if they change the layout and its now much taller? Well then you get a annoying double scrollbar or just lose the content below 500px.

    Wouldn’t it be nice to just set the height equal to the height of the embeded content.

    Yes that would be nice. No you can’t do that. Thats why they suck.

    If they provide another way to embed that is not an Iframe, use that.

 

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