Using the rich text editor for content
你可以我们e Shopify's rich text editor to format and style the content that appears on your online store.
Where to use the rich text editor
你可以我们e the rich text editor to add or edit text in several places on your store:
If you're using anOnline Store 2.0 theme, then you can addrich text sectionsto your pages or templates with theTheme Editor.
Add HTML content with the rich text editor
You can enter HTML content for your blog posts, pages, product descriptions, and collection descriptions with the rich text editor.
Click theShow HTMLbutton to view the HTML code for the content inside the rich text editor.
In the HTML view, you can make many changes to the content in the rich text editor. You can add images, videos, or tables using HTML, and you can debug or fine-tune the layout and content style.
Embed a media widget
If you want to embed a video or music widget, then you need to first host it on a service likeYoutube,Vimeo, orSoundCloud. These services generate an embed code, which you can copy and paste into your Shopify admin rich text editor.
Steps:
Find theembed codefor the media that you want to embed.
Select the entire embed code by clicking it and pressing
ctrl
+A
on a PC orcommand
+A
on a Mac.Copy the embed code by pressing
ctrl
+C
on a PC orcommand
+C
on a Mac.In your Shopify admin, click theShow HTMLbutton on the rich text editor for the content that you're editing.
Paste the embed code by pressing
ctrl
+V
on a PC orcommand
+V
on a Mac.ClickSave.
Format text with the rich text editor
With theFormattingbutton, you can quickly create paragraphs, headings, or blockquotes. Using the right formatting and heading levels helps people and search engines to read your website's content.
To choose a format for text, highlight the text and then click theFormattingbutton.
Formatting options
Paragraph
Most text content of your website is paragraph text. Paragraph text usually has a font size of 10–12 pt, but some themes use different font sizes.
Heading (1-6)
Headings are used to structure content. There are 6 heading levels.Heading 1is the most important level andHeading 6is the least important.
Blockquote
A block quote is used to show text that is attributed to someone else, like a quotation or an excerpt from a book or website.
Bold text
To make textbold, highlight the text and click theBoldbutton.
Italicize text
To make text italic, highlight the text and click theItalicbutton.
Underline text
To underline text, highlight the text and click theUnderlinebutton.
Create a bulleted list
To create a bulleted list, click theBulleted listbutton.
You can type to create the first bulleted list item. To create new list items, press theenter
orreturn
key. To finish the list, press theenter
orreturn
key twice.
Create a numbered list
To create a numbered list, click theNumbered listbutton.
You can type to create the first numbered list items. To create new list items, press theenter
orreturn
key. To finish the list, press theenter
orreturn
key twice.
Indent text
Indenting a paragraph gives it a margin on its left side. To indent a paragraph, click theIndentbutton.
Unindent text
Unindenting a paragraph removes any indented margins that it has. To unindent or "outdent" a paragraph, click theOutdentbutton.
Align text
To align text, select the text, click theAlignmentbutton, and chooseLeft align,Center align, orRight align.
Change text colors with the rich text editor
Steps:
Highlight the text and click theColorbutton.
Click a color or enter a hex code to change the highlighted text to that color.
Change text background colors
Steps:
Highlight the text and click theColorbutton.
Click theBackgroundtab.
Click a color or enter a hex code to change the highlighted text's background to that color.
Clear formatting in the rich text editor
To remove formatting from text or images, highlight the content and then click theClear formattingbutton.
Insert tables with the rich text editor
You can insert tables in your blog posts, pages, product descriptions, and collection descriptions with the rich text editor. You can place text, images, or even videos into a table after you create it.
Steps:
In the rich text editor, click theInsert tablebutton.
ClickInsert tableto insert a table. This creates a table with one row and one column.
您已经创建了一个表后,单击Insert tablebutton again to modify the table's rows and columns:
- Insert row above:把你的光标在一行,然后单击这个按钮to insert a new row above.
- Insert row below:把你的光标在一行,然后单击这个按钮to insert a new row below.
- Insert column before: Place your cursor in a column and click this button to insert a new column before that column.
- Insert column after: Place your cursor in a column and click this button to insert a new column after that column.
- Delete row: Place your cursor in a row that you want to delete and then click this button.
- Delete column: Place your cursor in a column that you want to delete and then click this button.
- Delete table: Place your cursor anywhere in the table and then click this button to delete the entire table.
Insert links with the rich text editor
You can insert links (hyperlinks) in blog posts, pages, product descriptions, and collection descriptions with the rich text editor. You can add links that direct customers to pages within your Shopify online store and to other websites. You can also add links that open email messages or make phone calls, to help customers contact you.
Steps:
- Highlight the text or image that you want to turn into a link.
ClickInsert link.
Enter the destination URL for the link in theLink tofield:
- To link to an external website that is outside of your Shopify store, enter
https://
followed by the web address, for examplehttps://www.example.com
. - To link to a page within your Shopify online store, enter the short URL, for example
/collections/summer-collection
. - To create a link that opens an email message, enter
mailto:
followed by the email address, for examplemailto:example@example.com
. - To create a link that makes a phone call, enter
tel:
, followed by the phone number, for exampletel:+0-123-456-7890
.
- To link to an external website that is outside of your Shopify store, enter
Enter a short description of the link in theLink titlebox.
Choose how the link will open with theOpen this link inmenu:
- the same window: The link will open in a user's existing browser tab or window.
- a new window: The link will open in a new browser tab or window.
ClickInsert linkto convert your highlighted text into a link.
Add internal and external links with the rich text editor
Links to pages within your Shopify store are called internal links. You can use short URLs to create internal links. For example, the URL/collections
will point to your store's collections page.
To link to a specific page of your online store, such as a collection or product page, use the URL format/page-type/page-handle
. For example, to link to a collection you've created called Summer Collection, use the URL/collections/summer-collection
.
Links to websites that are outside of your Shopify store are called external links. External links need to be entered in full and begin withhttp://
.
Link to a file in page content
After youupload a file, you can link it to content in the rich text editor to make it available for download from a product or collection description, webpage, or a blog post.
Steps:
- From your Shopify admin, go toSettings>Files.
- From theShopify app, go toStore>Settings.
- UnderStore settings, tapFiles.
- From theShopify app, go toStore>Settings.
- UnderStore settings, tapFiles.
Copy the URL for the file that you want to link.
In your Shopify admin, click the product, collection, webpage, or blog post where you want to add the file.
In the rich text editor, enter or choose link text.
Select the link text.
ClickInsert link
In theLink tofield, paste the URL for the file that you want to link.
- ClickInsert link. In the rich text editor, linked text displays in blue and is underlined.
Insert images with the rich text editor
There are three ways to insert an image using the rich text editor. You can:
Upload images
Steps:
In the rich text editor, click theInsert imagebutton.
In theInsert imagedialog, click theUploaded imagestab.
ClickUpload file.
Choose a JPEG or PNG image file from your computer.
Click the image that you uploaded to select it.
From theSize to insertmenu, select the display size of the image. You can selectOriginalto insert the image without altering its display size.
ClickInsert imageto place the image into the rich text editor.
Choose from product images
Steps:
In the rich text editor, click theInsert imagebutton.
In theInsert imagedialog, click theProduct imagestab.
Click the image that you want to insert.
If you don't see the product media that you want to insert, then you can use the arrow buttons to look on different pages.
From theSize to insertmenu, select the display size of the image. You can selectOriginalto insert the image without altering its display size.
ClickInsert imageto place the product image into the rich text editor.
Use an image URL
To insert an image using a public URL:
In the rich text editor, click theInsert imagebutton.
In theInsert imagedialog, click theURLtab.
Enter the publicly accessible URL of your image file.
ClickInsert imageto insert the image in the rich text editor at its original size.
移动和调整图像的富文本编辑器
After you add an image into a product or collection description, webpage, or a blog, you can move it to another location in the content.
Steps:
In your Shopify admin, click the product, collection, webpage, or blog post that includes the image that you want to move or resize.
In the rich text editor, click the image.
Do either of the following:
- To move the image, click and drag it to another location in theContentfield.
- To resize the image, click and drag one of the corners.
ClickSave.
Edit an image in the rich text editor
You can change the size, text wrapping, and alignment of an image within the rich text editor. You can also edit the image URL, or add or edit image alt text.
Steps:
- Double-click the image in the rich text editor to open theEdit imagedialog.
- Use the size and alignment options to edit the image:
- To change the size of the image, select a size option.
- To change the image a new image URL.
- To improve your online store's SEO and accessibility, add or edit image alt text.
- To add spacing, enter the number of pixels of space that you want on each side.
- To change the alignment of the image, select from the icons representing left, center, or right alignment.
- To add text wrapping, checkWrap text around image.
- ClickEdit imageto save your changes.
Insert videos with the rich text editor
You can insert or embed videos in blog posts, pages, product descriptions, and collection descriptions using the rich text editor.
If you want to embed a video that you've created, then you first need to upload it to a video streaming site such asYouTubeorVimeo.
YouTube does not allow you to disable related videos, but you can specify that the related videos should be from the same channel as the video that just played.
Steps:
Copy the video's URL by pressing
ctrl
+C
on a PC orcommand
+C
on a Mac.VisitEmbed Responsively. Embed Responsively is a tool that will give you an improved embed code for your video.
On Embed Responsively, click to select the video website where your video is located.
Paste the video's URL that you copied into thePage URLbox on Embed Responsively by pressing
ctrl
+V
on a PC orcommand
+V
on a Mac.ClickEmbed. Embed Responsively will create the embed code for you.
If the video is from YouTube and you want to show only related videos from the same YouTube channel, then find the video's URL in the embed code. Copy and paste
?rel=0
at the end within the quotation marks.Copy all of the code inside theEmbed codebox.
In your Shopify admin, click theInsert videobutton in the rich text editor.
Pastethe embed code into the box in theInsert videodialog.
ClickInsert video.
ClickSavewhen you are finished to save your changes to the item you were editing.
Insert audio files with the rich text editor
你可以我们e the rich text editor to insert or embed audio files in blog posts, pages, product descriptions, and collection descriptions.
Steps:
From your Shopify admin, clickSettings, then clickFiles.
ClickUpload filesto upload the audio file you want to insert or embed in your store.
From the欧宝体育官网入口首页section, open the rich text editor for the page or blog post you want to feature the audio file.
Copy
Paste this code in your rich text editor after the code for the audio player, and then replace
https://cdn.shopify.com/s/files/1/0220/2378/files/example.mp3
with the URL you created for your audio file when you uploaded it to Shopify. You can find your audio file's URL at any time on theFilespage.ClickSave.
ClickViewto make sure your audio file plays correctly.
Add or remove internal comments in the rich text editor
你可以我们e comment tagsfor internal text that you don't want to publish to your store.
Steps:
In your rich text editor, click theShow HTMLbutton.
To add an internal comment, enclose the text that you want to keep hidden within
. For example:
.
ClickSave.
HTML tags that are enclosed within the comment tags are saved as internal text. For those HTML tags to work properly, you need to remove the comment tagsaround them.