• 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

Custom template page not working anymore

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 › Custom template page not working anymore

This topic is: not resolved

Tagged: 404 template

  • This topic has 5 replies, 3 voices, and was last updated 7 years, 4 months ago by Fabio Nodari.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • June 19, 2019 at 8:26 pm #491730
    Fabio Nodari
    Participant

    Hello everyone.
    I have a problem after the latest update. I created a few custom templates in the past and none of the are working now. I was able to fix all of them except for the 404 page. Basically I had a page with a custom text and image that looked like this:

    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'genesis_404');
    function genesis_404()
    {
    print some stuff....
    }
    genesis();

    Now I get an error at the beginning:
    Fatal error: Cannot redeclare genesis_404() (previously declared in /....../themes/genesis/lib/structure/loops.php:424) in /....../themes/magazine-pro/404.php on line 7

    Another issue I have is that there used to be a search form on my menu but now is gone.
    Any idea how to fix this as well?

    Thanks a lot


    My Blog | My Instagram

    https://www.fabionodariphoto.com/
    June 20, 2019 at 4:46 am #491739
    Victor Font
    Moderator

    The error means that there are 2 functions named genesis_404. When writing custom functions, never use genesis_ as a prefix. If you do, odds are that you'll end up with the error you see now.

    Rename your custom function to something elese that doesn't start with genesis_.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 20, 2019 at 1:41 pm #491777
    AnitaC
    Keymaster

    Genesis 3.0.1 was just released and the 404.php file was restored. Check out the Changelog for other restored and updated information - https://studiopress.github.io/genesis/changelog/.


    Need help with customization or troubleshooting? Reach out to me.

    June 20, 2019 at 8:21 pm #491788
    Fabio Nodari
    Participant

    Thanks a lot. After the latest update my 404 page works again. I still can't find a way to add the search form on my menu though. It disappeared after the 3.0 update and it didn't come back with the 3.1 update.


    My Blog | My Instagram

    June 22, 2019 at 4:16 am #491836
    AnitaC
    Keymaster

    Looks like Nav Extras was finally removed from Genesis Core in the Genesis 3.0 update. StudioPress provided a snippet to add that back for you here.


    Need help with customization or troubleshooting? Reach out to me.

    June 22, 2019 at 7:54 pm #491857
    Fabio Nodari
    Participant

    Thanks a lot. I worked. Have a great day!


    My Blog | My Instagram

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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

© 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