You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何为使用Soho主题的Blogger博客设置页面背景透明?

How to Set Transparent Page Background for Blogger's Soho Theme

Got it, let's fix that transparent background issue for your Blogger Soho theme. I know it's frustrating when existing solutions don't work because of different class names—let's break this down step by step.

Step 1: Correctly Identify the Target Elements (DevTools Walkthrough)

Since you struggled to locate the right divs earlier, let's make sure you're targeting the Soho-specific containers:

  1. Open your blog in Chrome or Firefox, right-click on the content area (not the header/footer) and select Inspect to launch DevTools.
  2. In the Elements tab, look for these key classes (hover over each div to see a page highlight, confirming you've got the right area):
    • Main content wrapper: div.content-outer
    • Post content area: div.post-body
    • Static page content area: div.page-body
    • Header section (if you want it transparent too): div.header-outer

Pro tip: If you still can't spot these, use the DevTools "select element" tool (the arrow icon in the top-left of the Elements tab) to click directly on the area you want to make transparent—this will auto-highlight the corresponding div in the code.

Step 2: Add Custom CSS to Enable Transparency

Head to your Blogger dashboard to apply the fix:

  1. Navigate to Theme > Customize > Advanced > Add CSS
  2. Paste the relevant code snippets below based on which areas you want to adjust:

Full Transparency for Main Content

/* Make main content wrapper transparent */
.content-outer {
  background-color: transparent !important;
}

/* Make post/page content areas transparent */
.post-body, .page-body {
  background-color: transparent !important;
}

Add Header Transparency (Optional)

If you want your header to also be transparent, add this to the code above:

/* Transparent header background */
.header-outer {
  background-color: transparent !important;
}

Semi-Transparent Alternative (If Full Transparency Is Too Much)

Use rgba to set a semi-transparent background instead of full transparency. For example, 80% opacity white:

.content-outer {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

Step 3: Preview and Save

Click Apply to Blog to save your changes. If something looks off, go back to DevTools to double-check the class names—minor variations can exist if you've tweaked the theme slightly.

Note: If you have a blog background image set, making these elements transparent will let that image show through perfectly.

内容的提问来源于stack exchange,提问作者Subham

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:24:25