• Resolved Matthew Pollard

    (@matthewpolld)


    Hello,

    I would like to use my own layout for the category pages. So I understand that I need to create a template.

    I have followed this advice events manager website tutorial . The structure I have created is the following:

    wp-content/themes/mytheme/plugins/events-manager/templates/taxonomy-events-categories.php

    I have changed ‘override to formats’ to NO.

    When I view one of my category pages in the browser, it doesn’t display the template I’ve created. It uses the standard home one.

    My code in taxonomy-events-categories.php :

    <?php get_header(); ?>
     <div class="post-inner">
     <?php
      global $post, $EM_Category, $wp_query;
         $EM_Cat = em_get_category($wp_query->queried_object->term_id);
           <h1><?php echo $EM_Cat->output('#_CATEGORYNAME'); ?></h1><br/>
           <p><?php echo $EM_Cat->output('#_CATEGORYNOTES'); ?></p><br/>
           <h3>Next Events</h3><br/>
           <div>
            <p><?php echo $EM_Cat->output('#_CATEGORYNEXTEVENTS'); ?></p>
           </div>
    
     </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Please can someone explain the problem? So that I can make my template display for the category pages? Thank-you

    https://wordpress.org/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Matthew Pollard

    (@matthewpolld)

    Further info:

    – I’m using genesis for this site.
    – I have tried using category-single.php and categories-list.php, neither of them worked.
    – If I select ‘override to formats’ to yes, then it will display the placeholders I have put into the settings area. It just doesn’t work when I create a template of my own, which I need to do to have the layout I want.

    Thanks!

    Are you using a child theme? If so, is the custom template in the parent or child folder?

    Thread Starter Matthew Pollard

    (@matthewpolld)

    Thanks for the reply.

    I understand that the parent with be overwritten when I update the genesis theme. So I have put it into the child theme folder.

    Thread Starter Matthew Pollard

    (@matthewpolld)

    Can anyone suggest anything that might help please? I would really appreciate it.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    in your path above;

    wp-content/themes/mytheme/plugins/events-manager/templates/taxonomy-events-categories.php

    should be

    wp-content/themes/mytheme/taxonomy-events-categories.php

    http://codex.wordpress.org/Template_Hierarchy

    Thread Starter Matthew Pollard

    (@matthewpolld)

    I did what you suggested and it works. I just need to customize my code further now to match my design more.

    Then I just need to find what the alternative page for single events is, & do the same for that.

    Thank-you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customizing category pages’ is closed to new replies.