• 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

Strange problem with my template

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 › Strange problem with my template

This topic is: not resolved

Tagged: page template

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 7 months ago by panatan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 29, 2016 at 10:58 pm #192302
    panatan
    Participant

    Hi all,

    I would like to use following code (as template) =>

    <?php
    //Template name: Bighome
    
    add_action( 'genesis_entry_content', 'altitude_soustitre' );
    
    function altitude_soustitre()
    {
    
    echo "coucou";
    
    }
    
    genesis();

    It works fine with each page that use the template, except if the page is selected as home page (in wp admin ) : nothing appears...
    Did you know what could be the problem ?

    I'm using Genesis + Altitude pro
    Thanks for helping and best regards

    August 30, 2016 at 1:09 am #192303
    Brad Dalton
    Participant

    For use on the front page, add the code to a file and name it front-page.php according to the WordPress Template Hierarchy.

    Leave the reading settings as default.


    Tutorials for StudioPress Themes.

    August 30, 2016 at 6:06 am #192311
    panatan
    Participant

    Yeaaahhhh it works fine thank you so much !!!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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