• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Error when trying to modify functions.php / style.css

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Error when trying to modify functions.php / style.css

This topic is: not resolved

Tagged: background image, custom background, Eleven40

  • This topic has 1 reply, 2 voices, and was last updated 10 years ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 7, 2013 at 10:31 am #24790
    alfredo
    Member

    Hi!
    I'm using the eleven40 theme. I'm trying to customize the background of this blog http://www.catch-em-all.com/wordpress/ , but get an error when adding code to functions.php and style.css

    This is the error:

    Warning: fopen(C:Inetpubvhostscatch-em-all.comhttpdocswordpress/wp-content/themes/eleven40/style.css) [function.fopen]: failed to open stream: Permission denied in C:Inetpubvhostscatch-em-all.comhttpdocswordpresswp-admintheme-editor.php on line 85

    Warning: Cannot modify header information - headers already sent by (output started at C:Inetpubvhostscatch-em-all.comhttpdocswordpresswp-admintheme-editor.php:85) in C:Inetpubvhostscatch-em-all.comhttpdocswordpresswp-includespluggable.php on line 876

    This is the code I'm trying to add to functions.php:

    /** Add support for custom background */
    add_theme_support( 'custom-background' )

    This is the code I'm trying to add to style.css:

    body {
    background: url (images/bg2.png);
    }

    What's going wrong?

    Thanks for your help!

    March 7, 2013 at 6:46 pm #24904
    Brad Dalton
    Participant

    Hello Alfredo.

    1. The code is missing the semicolon. Example !

    Try this:

    add_theme_support( 'custom-background' );
    

    The semicolon after the line of PHP code signifies the end of a PHP statement and should never be forgotten.

    2. CSS looks o.k

    Please refer to the FAQ no.5 for pasting code snippets. Thanks http://www.studiopress.community/faq/


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble