最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

github - how to embed or share a gits in my blog wordpress?

programmeradmin1浏览0评论

I am new in worpdress but I would like to share my code gits in my blog wordpress.

so then I made a gits in github:

(this code it is just a example for this question)

but when I try to share my gits in wordpress I got this:

does anyone know how I can fix that and share my code in wordpress?

note:** my blog wordpress is in a hosting web i dont use the platform from wordpress I have installed the wordpress in my blog. **

I am new in worpdress but I would like to share my code gits in my blog wordpress.

so then I made a gits in github:

(this code it is just a example for this question)

but when I try to share my gits in wordpress I got this:

does anyone know how I can fix that and share my code in wordpress?

note:** my blog wordpress is in a hosting web i dont use the platform from wordpress I have installed the wordpress in my blog. **

Share Improve this question edited Mar 10, 2020 at 23:30 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Feb 15, 2020 at 6:17 simonsimon 1034 bronze badges 2
  • Do not emebed it via wp embed as that is meant for media files mostly and not for code. For code I suggest you use embed script snippet by gist see on top right corner of your gist screenshot.. embed: just before : download zip – Muhammad Asad Commented Feb 15, 2020 at 13:51
  • how can I do that? do you have a tutorial about that? – simon Commented Feb 15, 2020 at 21:01
Add a comment  | 

1 Answer 1

Reset to default 2

In your screenshot, there's an Embed option with <script> tag in it. Take that code and add it to a Custom HTML block.

发布评论

评论列表(0)

  1. 暂无评论