aguawebdesign

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • aguawebdesign
    Participant

    Chris’ suggestion works, but none of the code I had inside the conditional statement is working. Prior to the upgrade, this all worked fine, so I guess I am not clear on what changed.
    The code inside my conditional calls up the post thumbnail and uses
    tribe_get_city( get_the_ID() )
    to call up the city name. Neither the thumbnail or the city name are showing up.
    Second – the method of using the post ID in the conditional statement is not ideal, because it would have to be manually added each time the client adds a new venue. I prefer a universal conditional that catches all single venues as they are added through the dashboard.

    To be clear, I am using the method described in the Plugin documentation to create a custom layout for the single venue post type. Before the upgrade, this method still treated it as a venue post type. Now it is a page? How can I apply a custom layout to the post type, while still having it be recognized as a post type? Maybe I am misunderstanding something. If there is a better method than the one I am using please let me know.

    aguawebdesign
    Participant

    Actually, even the following doesn’t work:
    if ( is_single() } {
    // do something
    }

    This shows up on all other single pages except the venue page.
    Here is a link to the page I am referring to in case that helps: http://evolutionswim.com/venue/renaissance-clubsport/

    aguawebdesign
    Participant

    I’ve been on vacation and just now coming back to this.
    I am trying to use the conditional within functions.php. I need to add a title above the post content so using the template file won’t work. I am using Genesis hooks to position the title.
    I tried using Bryan’s suggestion but it’s still not working. Before the upgrade to 3.0 it was working fine. I am trying to use:
    if ( get_post_type() == ‘tribe_events’ ) {

    When I try and output the post type name it says “page.” I am using a custom template for this page, located in: theme directory/tribe-events/pro/single-venue.php. The template is showing up so that part is working. I just am not able to use conditionals on the template via functions.php.

    in reply to: Upgrading to 3.0 on Genesis Themes #54890
    aguawebdesign
    Participant

    @sparkuparts – thank you!

    aguawebdesign
    Participant

    I updated it to
    if( tribe_is_venue() ) {
    // do something here
    } else {
    echo “foo”;
    }

    But it still is not working. The single venue page is outputting “foo.”

    in reply to: Upgrading to 3.0 on Genesis Themes #53950
    aguawebdesign
    Participant

    Version 3.0 seems to be placing the sidebar inside the #content div. It’s hard to say if this is due to a missing close tag or not. Normally that would throw off the rest of the layout, but everything else looks fine. I was able to temporarily “fix” this using CSS, although it is not an ideal solution:
    .single-tribe_venue.content-sidebar #content,
    .single-tribe_venue.sidebar-content #content {
    width: 100%;
    }

    .single-tribe_venue.content-sidebar #content .hentry,
    .single-tribe_venue.sidebar-content #content .hentry {
    width: 79.074074%; /* 854px / 1080px */
    float: left;
    }

    in reply to: Upgrading to 3.0 on Genesis Themes #53948
    aguawebdesign
    Participant

    Following…
    I am having similar issues with Genesis since upgrading.

Viewing 7 posts - 1 through 7 (of 7 total)