• Resolved singhanart

    (@singhanart)


    I use the plugin’s front page widget. Actually it work fine but when I update my theme the feature image of the widget in the front page is gone. What should I do? (You can see in the attached link the widget is currently now showing no the image)

    FYI, in my old theme folder (which I renamed it after install the new one) I change the name of folder [themename]/tribe-events to /tribe-events-bak but it doesn’t solve the issue.

    Thank you very much

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @singhanart ,

    Thank you for reaching out, and I’m sorry to learn of the difficulties. I believe, by default, the events list widget does not show the featured image.

    By any chance, have you tried reapplying the recommendations stated in the following article after updating your theme?

    Adding a Featured Image to the Event List Widget

    Thread Starter singhanart

    (@singhanart)

    HI tristan083,

    Thank you very much for your help and I can get the image back now. However, for the second part about css (The custom template way) I try to follow the instruction but when I run the front page of the website raise the error

    We looked for a template file for the widget-events-list slug but could not find one.

    This was rendered by the Tribe\Events\Views\V2\Views\Widgets\Widget_List_View View.

    We’ve looked in the following locations:

    • Id: plugin
    • Priority: 20
    • Path: /plugins/the-events-calendar/src/views/v2

    Template context: { "slug": "widget-events-list" }

    I have copy the featured_image.php into the folder as in the attached image. Please suggest me what should I do.

    Plugin Support Darian

    (@d0153)

    Hi @singhanart

    Thanks for your reply. I would recommend doing the “The template override way”, it’s a bit less work and messing with the?functions.php?file.

    Let me know if you have further questions or concerns.

    Thread Starter singhanart

    (@singhanart)

    Hi Darian, Thank you for your support. I’ve followed through the step from your link, I’ve copied the file to wp-content/themes/[your-child-theme]/tribe/events/v2/widgets/widget-events-list/event.php.

    In the next step I’m a bit lost would you please guide me where to put this code to (I’m not a coder so the further explained will be appreciated.)

    <?php echotribe_event_featured_image( $event->ID, 'thumbnail'); ?>

    <?php $this->template( 'widgets/widget-events-list/event/title', [ 'event'=> $event] ); ?>

    I want to adjust css from the plugin of the widget on my front page.

    Thank you very much

    Plugin Support Darian

    (@d0153)

    Hi @singhanart

    Use this code to display the featured image:

    <?php echotribe_event_featured_image( $event->ID, 'thumbnail'); ?>

    To display the featured image above or below the title, add it above or below this line, respectively:

    <?php $this->template( 'widgets/widget-events-list/event/title', [ 'event'=> $event] ); ?>

    See- https://share.getcloudapp.com/xQuEQ7B9

    As for the CSS adjustment, may I know the details on what element you’re trying to adjust? A screenshot or screen recording would be great.

    Plugin Support Darian

    (@d0153)

    Hi @singhanart

    I hope everything is going smoothly for you. I just wanted to touch base and inquire if you had the opportunity to review my previous response as it has been some time since we last heard from you.

    Plugin Support Darian

    (@d0153)

    Hi @singhanart

    It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The featured image is gone after I update my theme’ is closed to new replies.