- To make the embedded image and text bigger in the Rich Text field, you can add a custom class to the image tag and use CSS to adjust the size. Here’s how:
a. Double-click the Rich Text element to open the Rich Text editor.
b. Click on the embedded image to select it.
c. Click on the “Settings” tab in the right-hand panel.
d. In the “Class” field, enter a custom class name (e.g. “embedded-image”).
e. Click on “Save” to close the panel.
f. Go to the page settings and open the “Custom Code” tab.
g. Add the following CSS code to adjust the size of the image:
.embedded-image img {
width: 100%;
height: auto;
}
This will make the image fill the width of its container while maintaining its aspect ratio. You can adjust the values as needed.
- The affiliate code only works when pasted into an H4 header with text as a link because the code likely requires a valid HTML link element to function properly.
If you want to allow your client to paste the code anywhere, you can create a custom class for the code block and apply it to any element in the Rich Text field. Here’s how:
a. In the page settings, open the “Custom Code” tab.
b. Add the following code to create a custom class for the affiliate code:
.affiliate-code {
display: inline-block;
}
This will create a class called “affiliate-code” that makes the block of code display as an inline-block element, which allows it to be placed inside other elements.
c. In the Rich Text editor, select the text where your client wants to insert the affiliate code.
d. Click on the “Settings” tab in the right-hand panel.
e. In the “Class” field, enter “affiliate-code” to apply the custom class to the selected text.
f. Click on “Save” to close the panel.
This will wrap the selected text in a code block with the “affiliate-code” class, allowing the affiliate code to function properly.
Click here.