• 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

Footer PHP

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 › General Discussion › Footer PHP

This topic is: not resolved

Tagged: PHP Code

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 11 months ago by Christoph.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 10, 2016 at 7:10 am #190887
    chriscomer
    Member

    Hi I'm new here and looking forward to learning.
    So I'm attempting to learn a bit of PHP by dabbling with my theme and managed to break my site. I have fixed it by FTPing the original file. But I would like to learn what I did wrong.

    So I added the following code to bottom of my themes Function.PHP file:
    //* Change the footer text
    add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
    function sp_footer_creds_filter( $creds ) {
    $creds = '[footer_copyright] · My Custom Link · Built on the Genesis Framework';
    return $creds;
    }
    Which worked fine. Then I removed a portion and that is when things broke. So the change looked like this:
    //* Change the footer text
    add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
    function sp_footer_creds_filter( $creds ) {
    $creds = '[footer_copyright] · My Custom Link;
    return $creds;
    }
    So I made sure that I left the bracket and semicolon which I believe PHP needs. This when things went boom!
    So like I said I have it running again but would like to know what I did wrong.
    Does anything jump out at anybody.

    http://www.elts.net do think it is relevant to my question.
    August 10, 2016 at 7:50 am #191049
    Christoph
    Member

    Duplicate of http://www.studiopress.community/topic/php-footer-problem/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Footer PHP’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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