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
1 Answer
Reset to default 2In your screenshot, there's an Embed option with <script>
tag in it. Take that code and add it to a Custom HTML block.