Creating Custom Template

Community Forums Forums General Discussion Creating Custom Template

This topic is: not resolved

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  vajrasar 4 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18614

    vajrasar
    Participant
    Post count: 112

    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.

     


    Twitter – Vajrasar

    #18637

    anitac
    Moderator
    Post count: 3056

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


    Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

    #18638

    vajrasar
    Participant
    Post count: 112

    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?


    Twitter – Vajrasar

    #18641

    anitac
    Moderator
    Post count: 3056

    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.


    Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

    #18642

    vajrasar
    Participant
    Post count: 112

    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 :)


    Twitter – Vajrasar

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.