Tuyen
  • Welcome to my document
  • 💼 My work
    • Updimes
      • Custom Link
      • How to add a table of contents
    • Ryviu Shopify
      • Theme
        • Kalles
      • 1.0
      • 2.0
      • Một số lỗi theme
        • Lỗi hình ảnh không hiển thị trên theme Avenue
    • Ryviu Wordpress
      • Shortcode
      • Product hook
      • Collection hook
    • Ryviu Blog
      • Thêm HTML code to blog
      • Add Q&A sections to blog post
      • Add button to CMS blog
  • Ryviu Polaris
    • Skeleton
    • Components
    • Image loading
    • Modal Confirm
    • Table Polaris
Powered by GitBook
On this page

Was this helpful?

  1. My work
  2. Ryviu Blog

Thêm HTML code to blog

PreviousRyviu BlogNextAdd Q&A sections to blog post

Last updated 1 year ago

Was this helpful?

Để thêm code block vào blog làm theo các bước sau

  • Copy code muốn thêm vào và truy cập trang web để chuyển code sang dạng ký tự đặc biệt

  • Paste code vào ô "Your code has been parsed, copy & paste into your template code." và click Parse button

  • Copy code đã được tạo ra và thay thế vào html_code ở phía dưới và sau đó thêm vào vị trí mong muốn và save lại

<pre>
    <code class="html">html_code</code>
</pre>

Done

Ví Dụ

Ví dụ muốn hiển thị code

<link rel="icon" type= "image/x-icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico">

Copy code đấy và truy cập trang phía trên và Parse code ta sẽ được

&lt;link rel=&quot;icon&quot; type= &quot;image/x-icon&quot; href=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/favicon.ico&quot;&gt;

Thay thế vào html_code

<pre>
    <code class="html">
    &lt;link rel=&quot;icon&quot; type= &quot;image/x-icon&quot; href=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/favicon.ico&quot;&gt;
    </code>
</pre>

Thêm code này vào vị trí mong muốn và sẽ được

💼
http://www.blogcrowds.com/resources/parse_html.php