Style title on category page

Home Forums Calendar Products Events Calendar PRO Style title on category page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #141334
    pdelite
    Participant

    I was working with Casey here, and thought the issue was resolved, so he marked it as closed, but the issue still exists…

    https://tri.be/support/forums/topic/change-the-font-of-certain-category-titles/#post-141307

    Here is my code, where family-events is the category, but it’s not changing the styling of the title on this single event page…

    body.tribe-events-cat-family-events h2.tribe-events-single-event-title {
    font-family: “Comic Sans MS”, Cursive !important;
    }

    #141447
    Casey
    Participant

    pdelite,
    Sorry about that! Could you send me a link to the event page in question, so I can take a closer look? Thanks! 🙂

    -Casey-

    #141451
    pdelite
    Participant

    Sure, here it is: http://goo.gl/ntusMq

    #141457
    Casey
    Participant

    I’m not seeing the CSS class on the body tag (screenshot), which is probably the issue here. Did you paste this code into your theme’s functions.php file correctly?

    #141466
    pdelite
    Participant

    Yes, I added the code into the functions.php file like so:

    <?php

    //Theme Setup

    require_once (TEMPLATEPATH . ‘/framework/setup.php’);

    $theme = new ThemeSetup();

    $theme->init();

    //Admin Setup

    require_once (OPTIONS_ADMIN . ‘/setup.php’);

    $theme_admin = new AdminSetup();

    $theme_admin->init();

    // Strip unwanted <br /> tags from forms
    add_filter(‘the_content’, ‘remove_bad_br_tags’);
    function remove_bad_br_tags($content) {
    $content = str_ireplace(“<br />\n<input”, “<input”, $content);
    return $content;
    }

    add_filter(‘body_class’, ‘event_category_body_classes’);
    function event_category_body_classes($classes) {
    if ( tribe_is_event() && is_single() ) {

    //Query event categories
    $event_categories = wp_get_post_terms( get_the_ID(), ‘tribe_events_cat’ );
    if( !empty( $event_categories ) ) {
    foreach( $event_categories as $single_category ) {
    $classes[] = ‘tribe-events-cat-‘ . $single_category->slug;
    }
    }
    }
    return $classes;
    }

    ?>

    #141482
    Casey
    Participant

    Kristen,
    It’s possible that your theme is overriding that somehow. Try putting it at the top of your functions.php file (but still inside the <?php ?> tags) to see if that makes a difference.

    #141507
    pdelite
    Participant

    That doesn’t seem to have made a difference. Any other suggestions?

    #141641
    Casey
    Participant

    Kristen,
    The only other suggestion I might have is to try temporarily switching over to the default 2013 theme and try pasting the snippet into the 2013 functions.php file, in order to see if something in your theme is interfering with it. Unfortunately, since we’re unable to provide extended support for customizations (and I was able to test this snippet successfully in my local environment), that’s all the troubleshooting help I’m going to be able to provide here.

    As such, I’ll go ahead and close out this thread. However, please feel free to create a new thread if you have further questions about other issues/bugs and we’ll be glad to help. Thanks and good luck!

    -Casey-

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Style title on category page’ is closed to new replies.