• 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

Creating Custom 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 › General Discussion › Creating Custom Template

This topic is: resolved

Tagged: genesis, template

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 12 months ago by vajrasar.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 7, 2013 at 4:58 am #18614
    vajrasar
    Member

    Is it necessary to override the Genesis Main Loop, every time I make a custom template irrespective of what the code is about.

    For till now, I've been making custom templates by overriding the genesis main loop by my function and putting 'my specific' code in that function.

    Like for example if I have to make a template which shows header, content ( simple echo "Hello World!"; ) and footer of my genesis driven site. Then what would be the steps.

     


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

    February 7, 2013 at 6:29 am #18637
    Anita
    Keymaster

    Would this help you - http://genesistutorials.com/creating-a-custom-template-in-genesis/?


    Love coffee, chocolate and my Bella!

    February 7, 2013 at 6:31 am #18638
    vajrasar
    Member

    Here also, author is doing this only ->

    remove_action('genesis_loop', 'genesis_do_loop')

    add_action('genesis_loop', 'gt_custom_loop')

    my question is do it always has to be like this, that I have to override the main loop of genesis?


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

    February 7, 2013 at 6:57 am #18641
    Anita
    Keymaster

    I believe so. Look at this one also - http://genesissnippets.com/genesis-custom-loop/. I did a Google search and found several tuts on this.


    Love coffee, chocolate and my Bella!

    February 7, 2013 at 7:01 am #18642
    vajrasar
    Member

    This one is also the same, as you too know.

    The thing is, in my latest project I tried to go un-conventional and did not override the main loop, but that results in content showing above the header of the side when the page opens.

    So, I was confused on the same. Because my code was not altering or even not doing anything in 'loop' but at the end I had to use this approach only.

    Still in wait for the answer 🙂


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

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

© 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