How to show code from Jsfiddle or Github in Wordpress?

I created my personal blog. Free in Wordpress is not premium. I want to show some of my examples from github and jsfiddle on my blog.

Is this possible in the free version of wordpress? I'm not sure.

I am new to the press. Please, help.

+4
source share
4 answers

I can’t comment, because I'm too new to this site, but are you using the self-listing downloaded from wordpress.org or are you using free wordpress.com hosting? (If your blog link is username.wordpress.com, then it is a hosted version)

wordpress.com, , Github Gists "/ URL- ". : http://en.blog.wordpress.com/2012/04/18/spotify-rdio-and-github-embeds/ , - Github.

, (, github embed) "" ( " " , . ). : http://codex.wordpress.org/Managing_Plugins wordpress plugins screen

+3

, Wordpress, example.wordpress.com. , , , - gist github wordpress.

. : https://gist.github.com/AlyssonJalles/9503c6c5d3dc63e9a561 " " . , .git , : https://gist.github.com/9503c6c5d3dc63e9a561.

Wordpress, "" . , , ( Gist), wordpress . Github, (Run Code Snippet !).

<script src="https://gist.github.com/AlyssonJalles/9503c6c5d3dc63e9a561.js"></script>
Hide result
+1

js-

  • ,
  • enter image description here
  • script, iframe.

When choosing Use script When choosing iframe preference

  1. Wordpress iframe, ifram, .
  2. Wordpress Visual .
  3. , js-, .
0

jsfiddle .

  • "" ""
  • Visual. .
  • jsfiddle, "" iframe.
  • iframe .

, ;)

As for github, I don’t think they offer default embedding functionality, but you can use the WordPress plugin to embed your projects: https://wordpress.org/plugins/github-embed/

Hope this helps!

-1
source

All Articles