State Name not appearing for ABBR element

Home Forums Calendar Products Events Calendar PRO State Name not appearing for ABBR element

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000150
    Kenneth Bronstein
    Participant

    On the single events page the state abbreviation appears for the venue, but the tooltip is empty. Inspecting the html, we found that the following line was generated.

    <abbr title=”” class=”region tribe-events-abbr”>NY</abbr>

    Is it a bug with the calendar or with our theme (VamTam Church-Events) or did we miss something in the configuration? Do we need to assign the title in our style.css? If so could you offer a code snippet?

    Thanks

    #1000415
    George
    Participant

    Hey Tyson,

    That title is supposed to be generated, this following bit of code is what our plugin uses for that field:


    <?php esc_attr_e( $full_region ); ?>

    There could theoretically be code conflict here or something, but I honestly can’t think of why or how that would work since the abbreviated version “NY” is generated fine…

    If you’re interested in checking out your theme or other plugins on your site for a potential conflict here, you can definitely run through the steps here if you’d like to → https://theeventscalendar.com/knowledgebase/testing-for-conflicts/

    However, if you’d just like a manual fix for now, you can head to your The Events Calendar plugin files and navigate to the file at /src/views/modules/address.php and look for this line of code around line 52 or so:

    <abbr class="region tribe-events-abbr" title="<?php esc_attr_e( $full_region ); ?>"> <?php echo tribe_get_region( $venue_id ); ?></abbr>

    You can try a few things. First, instead of this:

    title="<?php esc_attr_e( $full_region ); ?>">

    You can try this:


    title="<?php echo esc_attr( $full_region ); ?>">

    If that still fails, you can try this:


    title="<?php echo esc_attr( tribe_get_region( $venue_id ) ); ?>">

    Cheers!
    George

    #1005228
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘State Name not appearing for ABBR element’ is closed to new replies.