• Resolved justawebbie

    (@justawebbie)


    I am trying to change the header of the event pages based on the event category. I have tried to use the plugin Reveal template to show me which template it uses to get to “/event/category/mynewcategory/” but it does not show any template associated with it. I have managed to change how the pages look for the main pages such as: Events, Activities, My Bookings, Locations, and Tags. I am at a lost on the others. I have tried single-mynewcategory.php, post-mynewcategory.php, taxonomy-mynewcategory.php, and category-mynewcategory.php. None worked.

    Please help!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    try to use taxonomy-events-categories.php and then see this thread -> http://wordpress.org/support/topic/taxonomy-events-categories-cannot-output-em_category?replies=4

    Thread Starter justawebbie

    (@justawebbie)

    I tried to use the taxonomy-events-categories.php and it did not work for me at all. Here is one of the pages I can not seem to change:
    https://uafalumni.com/events/activities/alumni-reunion/

    I just need to replace the top and side navigation so it does not look like it is using the shopping cart or our stores menu to get around.

    If you’re having trouble using Angelo’s solution, another option would be to use something is_page() in header.php to check which page the user is on and display images accordingly.

    Thread Starter justawebbie

    (@justawebbie)

    I have tried almost every thing I can. I even got a plugin to tell me which template I was using so I could find out what was going on and it could not even tell me what template/page I was using. It showed others to me just not the pages I needed.

    https://uafalumni.com/events/activities/alumni-reunion/

    It is like I have something messed up in the theme but not sure what it can be. Is there any other way to figure out what it is using? I have made category-activities.php, page-activities.php, page-events.php, taxonomy-events-categories.php, taxonomy-events.php, taxonomy-activities.php, a page template and assigned it to activities page. I am at a lost.

    Thread Starter justawebbie

    (@justawebbie)

    i finally got the template plugin to say the https://uafalumni.com/events/activities/alumni-reunion/ page is using this template: taxonomy-event-categories.php but for some reason it does not fetch the header and sidebar like it should. It still fetches the default header and sidebar.

    Please take a look at my code and let me know what I am doing wrong. thank you. I did shorten the code up a bit so it was not so long.

    <?php get_header('events'); ?>
    
            <div class="content" id="content">
                <?php get_sidebar("blogs")?>
                <div class="leftside">
                    <div class="leftinside3" id="leftbar">
    
                        <div class="widgetBox">
                            <h1 class="cat-title"><?php the_category(', ') ?> Event</h1>
                            <div class="inside">
    							<?php
                                if (have_posts()) :
                                    while (have_posts()) : the_post();
                                        if (is_admin ()){
                                        }else{
                                            $counter = get_post_custom_values("post-counter");
                                            if ($counter[0]==""){
                                                add_post_meta($post->ID, 'post-counter', 1);
                                            }else{
                                                $newcounter = $counter[0] + 1;
                                                delete_post_meta($post->ID, 'post-counter');
                                                add_post_meta($post->ID, 'post-counter', $newcounter);
                                            }
                                        }
                                ?>
                                <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                                    <div class="post_info">
                                        <h1 class="bauhaus"><?php the_title(); ?></h1>
    
                                        <div class="clear"></div>
                                    </div>
                                <div class="clear"></div>
    
                            </div>
    
                        </div>
                    </div>
                </div>
    
                <div class="clear"></div>
            </div>
    <?php get_footer(); ?>
    Plugin Support angelo_nwl

    (@angelo_nwl)

    seems to work when I try this link https://uafalumni.com/events/activities/alumni-reunion/ ? am seeing widgets SHOP UAFAA and SUBSCRIBE NOW in the sidebar

    Thread Starter justawebbie

    (@justawebbie)

    No it should be the Events and subscribe in sidebar no shop UAFAA and the top navigation should not have the shopping cart in it.

    Should look like this page: https://uafalumni.com/events/campus-tours-day1/

    Which I got working just fine but can not get 2 pages to do that.

    Thread Starter justawebbie

    (@justawebbie)

    the only ones I seem to be having issue with are the Event categories I made in the Event manager plugin: for example Alumni reunion and Campus Tours. Otherwise i am able to accomplish the desired look for the rest. Not sure why I can not reach the Event Category single pages to change the header and sidebar on them.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know if you made custom template for single events page?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Changing headers per event category’ is closed to new replies.