Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1065958

    Hello,
    I contact you because i installed a grid management plugin for my blog. (The Grid – Themeone). it works perfectly with your theme, but I’d like to apply the same to Category pages.
    It is apparently possible, as explained in the documentation:
    https://theme-one.com/docs/the-grid/#grid_as_template

    -> In these files, you will find the main loop:

    if (have_posts ()):
         while (have_posts ()): the_post ();
            
         // some code from your theme
         // ...
         // ...
            
         endwhile;
    endif;

    You just need to replace all the previous php code by this line of code:

    The_Grid ('My Grid Name', true); // where true is for template mode

    I tried to apply this to the file loop-index.php but without success, your file is much more complicated than this example.

    Can you help me please ?

    Thank you very much

    #1066354

    Hey Maryb,

    Can you try to use a child theme, then copy archive.php to your child theme.
    Then rename archive.php (in child theme) to category.php then replace all instances of

    get_template_part( 'includes/loop', 'index' );

    in the file to:

    The_Grid ('My Grid Name', true);

    Hope this helps.

    Best regards,
    Nikko

    #1113245

    Hello,

    thank you very much, it works perfectly!

    #1113504

    Hi Maryb,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘template page Archive’ is closed to new replies.