Adding a line into the page template

Community Forums Forums Design Tips and Tricks Adding a line into the page template

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  braddalton 1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10666

    mished
    Participant
    Post count: 7

    I’m trying to implement the comment feature in Lazyest Gallery (http://brimosoft.nl/lazyest/gallery/frequently-asked-questions/) and I’m told I need to add the following line to the page template:

    <?php comments_template(); ?>

    But where do I find the page template?

    #10679

    braddalton
    Participant
    Post count: 7467

    Not sure what that code does but you could copy over your page.php from Genesis to your child theme and add it in there.

    comments_template();

    I tested this without errors but not sure how it works with the images.

    I know the Jetpack plugin has a really nice image gallery carousel


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #10696

    mished
    Participant
    Post count: 7

    Thanks for your response.

    I’m not a coder so I’m not sure how to “… copy over your page.php from Genesis to your child theme and add it in there.”  Are you able to provide a step-by-step instruction?

     

    #10701

    braddalton
    Participant
    Post count: 7467

    Right click and copy the file from the Genesis files and paste it into your child themes root directory.

    I tested this on a local install without error but i am not familiar with the gallery plugin.

    The code didn’t display a comment field so it doesn’t work.

    Why not use this: http://wordpress.org/extend/plugins/carousel-without-jetpack/

    ‘The carousel feature transform your standard galleries into an immersive full-screen experience with comments’


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #10832

    mished
    Participant
    Post count: 7

    Thanks for your suggestion.

    I’ve decided to drop Lazyest Galleries and use the carousel feature in Jetpack instead.

    #10884

    braddalton
    Participant
    Post count: 7467

    Good decision. Its made by Automattic and will only get better.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

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

The topic ‘Adding a line into the page template’ is closed to new replies.