• Hi

    simply i am using FSE and there is no header.php , customize.php and …

    where i can set the color of mobile phone status bar to something like blue?

    thanks all

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi saeedhzm,

    Does your theme support custom CSS in the Customizer section on WP admin? You can also contact your theme’s support forums, so their developers and support community can help you better with this.

    Thread Starter saeedhzm

    (@saeedhzm)

    Thank for reply

    theme is a pure child of twentytwentyfour and there is no team or theme support, everything from scratch btw i am able to bring up customize.php.

    where i can set the color of mobile phone status bar to something like blue?

    Feel free to correct me if I’m over my head here, but I believe that’s done via HTML meta tags (different tags for iOS and Android), and not CSS.

    If this is correct, then for a block theme, you’ll need PHP code (in your block theme’s functions.php file or via a plugin) to hook into wp_head() to inject the necessary meta tags.

    Thread Starter saeedhzm

    (@saeedhzm)

    thanks

    George , that was the point

    here the code :

    
        // Add meta tag for light color scheme
        echo '<meta name="theme-color" content="#000000" media="(prefers-color-scheme: light)">';
    
        // Add meta tag for dark color scheme
        echo '<meta name="theme-color" content="#FFFFFF" media="(prefers-color-scheme: dark)">';
    
    
    • This reply was modified 11 months, 1 week ago by saeedhzm.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change the color of the status bar in FSE’ is closed to new replies.