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

如何为WordPress除首页外的所有页面设置页眉图片?

Fixing Global Header Images for Non-Home Pages in Astrid Theme (WordPress 5.2.4)

Hey there! Let's work through getting that consistent header image set up for all your non-home pages with the Astrid theme. Here are a few practical steps to try, since older theme versions can tuck settings in unexpected places:

  • Don’t stop scrolling after selecting Header Type
    After choosing "Image" as the Header Type for non-home pages in Appearance > Header Area, keep scrolling down the same page. Often the image upload/selection field is hidden just below the type dropdown—look for sections labeled "Global Header Image" or "Non-Homepage Header Configuration" that might have been missed at first glance.

  • Check the Customizer for global controls
    Astrid sometimes places global header settings in the Customizer instead. Head to Appearance > Customize, then navigate to sections like "Header Settings" or "Header Media". There might be a dedicated option to set a default header image for all pages except the homepage here.

  • Use Custom CSS as a reliable fallback
    If the theme’s built-in settings don’t give you the option, custom CSS will get the job done. First, upload your desired header image to the Media Library and copy its URL. Then add this code in Appearance > Customize > Additional CSS:

    /* Apply custom header image to all non-home pages */
    body:not(.home) .site-header {
        background-image: url('https://your-site.com/wp-content/uploads/your-header-image.jpg');
        background-size: cover;
        background-position: center center;
        min-height: 300px; /* Adjust this to match your design needs */
    }
    

    If .site-header doesn’t target the right element, use your browser’s inspect tool to find the correct class for your header container (it might be .astrid-header or .page-header depending on your theme version).

  • Check for theme updates (with caution)
    Since you’re on WordPress 5.2.4, you might be running an older version of Astrid. Head to Appearance > Themes to see if an update is available—just make sure to back up your site first, as older WP versions can have compatibility quirks with newer theme releases.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.14 08:32:16