Featured Image for /events/community/add Page

Home Forums Calendar Products Community Events Featured Image for /events/community/add Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #365387

    Hiya,

    My website formating requires all pages to have a featured image (even if it isn’t displayed on the actual page).

    Is there any way to add a featured image to the /events/community/add page? It isn’t treated as a normal page, and doesn’t appear in my pages list.

    WordPress 3.9.1 running Hickory theme.

    Thanks,
    Ash

    http://illegitimatetheatre.com/can-comedy-be-taught/

    #365454
    Barry
    Member

    Hi Ash,

    You’re quite right that it isn’t a page in the sense of a regular static WordPress page. It’s possible to detect if you are on a Community Events page, though, using helper functions like this one. So, perhaps, you could make a change to the relevant section of your theme so that it loads an alternative image in these situations?

    // Community Events page? Use an alternative/placeholder for the
    // featured image
    if ( tribe_is_community_edit_event_page() ) {
        echo '<img src="..." />';
    }
    // Otherwise display the post featured image as normal
    else {
        the_post_thumbnail();
    }

    That is of course a very broad outline and the actual code or solution is likely to be different, depending on how your theme does things. Hopefully it gives you some options to explore, though.

    Does that help?

    #365472

    Thanks for the quick response!

    Unfortunately I’m not familiar with the code required here. Are you able to put something together for this situation?

    #365475

    Actually – sorry, I just realised this is a more serious problem than I first thought.

    I don’t need your help at this point.

    #365887
    Barry
    Member

    OK, well what I’ll do then is go ahead and close this thread: if you do need further help though and think we might be able to point you in the right direction for anything else please don’t hesitate to create new threads as needed, referencing this one if appropriate – one of the team will then be only too happy to help 🙂

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Featured Image for /events/community/add Page’ is closed to new replies.