问题
I am new at wix and editing a website and want to add css in a page. but not found any option for css. Anybody know how to add custom css code in wix website?
Thanks
回答1:
You can do this by embedding inline styles to every page, via creating a chunk of custom css code contained between <style>
and </style>
.
- Go to your site's dashboard.
- Click Manage Website on the left.
- Click Tracking & Analytics.
- Click + New Tool **and select **Custom from the dropdown.
- Set up your custom code:
- Enter your custom code.
- Select the relevant domain. Note: This option will appear only if you have multiple domains.
- Enter a name for your custom code.
- Add Code to Pages: Select which pages to add your code to:
- **All Pages: **Click the dropdown to select an option:
- Load code once.
- Load code on each new page.
- **Choose specific pages: **Begin typing the name of the relevant pages and then click the checkbox next to the relevant page.
- **All Pages: **Click the dropdown to select an option:
- Place Code in: Select where the code snippet in placed in your site's code:
- Head - as noted by @Daniel Gurtner, avoid this because it'll insert it BEFORE any of the inherent styles, which makes it mostly useless here.
- Body - start
- Body - end Note: I'd recommend adding your style chunk here to avoid having a delay effect on your loading
- Click Apply.
回答2:
- Click Add on the left in the editor.
- Click More → Embeds.
- Drag the HTML iframe to the site.
- Click your iframe and click Edit Code.
Then type:
<style> /* CSS Code */ </style>
回答3:
You can't. This is not a feature provided by Wix.
ref. other ref.
来源:https://stackoverflow.com/questions/49877549/how-to-add-custom-css-in-wix-website