Cannot Add Images to Events Widget

Home Forums Calendar Products Events Calendar PRO Cannot Add Images to Events Widget

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #1134581
    Aaron
    Participant

    I have followed tutorials and other Knowledgebase articles, but I am doing something wrong…I just want to have images shown in the Events widget.

    I shut down my entire site when I tried to modify the functions.php as suggested. I am very green with making customizations, but I bought the PRO version of Events Calendar purely for this feature…please help! Any step-by-step appreciated.

    • This topic was modified 9 years, 10 months ago by Aaron.
    #1135107
    Nico
    Member

    Howdy Aaron,

    Welcome to our support forums and thanks for reaching out to us 🙂

    I can help you for sure. Are you trying to add the image to the advanced list widget? Is this the tutorial you mentioned: Add thumbnails to upcoming events List Widget?

    Which theme are you using in your site? If it applies have you created a child theme for customizations?

    Please let me know about the above and I’ll create a detailed step-by-step to make this work,
    Best,
    Nico

    #1135269
    Aaron
    Participant

    Hi Nico,

    Thanks for the response!

    Yes, that was the tutorial I followed – I even tried the sub-link to another user’s tutorial.

    I have not created a child theme, as the theme I use (Customizer) has a feature for customization separate from having to modify the theme’s coding manually, or line by line, if that makes sense. Dumbs it down for people like me…

    Any pro help from your end would be amazing and very appreciated. Let me know what other info you’d need to help me add images.

    Thank you!

    #1136278
    Nico
    Member

    Thanks for following up Aaron!

    I have not created a child theme, as the theme I use (Customizer) has a feature for customization separate from having to modify the theme’s coding manually, or line by line, if that makes sense. Dumbs it down for people like me…

    I’m not sure I get what you mean here, but please keep in mind the process described should be the same for all themes.

    As you are using PRO we will jump into the second method for getting thumbnails to show. For that you’ll need to create the following folder structure inside your theme: [your-theme]/tribe-events/pro/widgets/modules/. Once that’s in place, create a new file inside the modules folder called single-event.php, then past the code in the gist below into that file and save.

    https://gist.github.com/ggwicz/251bdcebb7f9181737ec

    That should do the trick! When checking make sure that the events showing up in the widget do have a featured image set.

    Please let me know how it goes,
    Best,
    Nico

    #1139948
    Aaron
    Participant

    Thanks Nico!

    I tried the step-by-step as you instructed (see screen shot) and…no dice. And I do have featured images for all of my events.

    Any ideas on what I could be doing wrong?

    Thanks for bearing with my caveman knowledge of web “stuff.”

    #1140040
    Nico
    Member

    Thanks for following up Aaron and sorry to hear this is still an issue for you, but I’m sure we will get this right!

    Can you please try to empty (delete all code) from the ‘single-event.php’ file and reload the page to see if the widget still shows up or not? This will tell us if the template override is working or not!

    Also please note that the file size is showing as ‘0 bytes’ for the uploaded ‘single-event.php’, and make sure that optimizer_pro is the active theme!

    Thanks,
    Nico

    #1140414
    Aaron
    Participant

    Hi Nico,

    The site is for sure using Optimizer Pro. I refreshed the single-event.php and it’s now showing as 4.25kb (see screenshot again). But still no images.

    #1140438
    Nico
    Member

    Thanks Aaron!

    Can you please try to empty (delete all code) from the ‘single-event.php’ file and reload the page to see if the widget still shows up or not? This will tell us if the template override is working or not!

    Can you please check on this? This way we can see if it’s loading the template or not at all.

    Have a great weekend,
    Nico

    #1140440
    Aaron
    Participant

    Hi,

    I did delete and refresh, forgot to mention. Just did it again.

    Thanks for any more solutions, sorry this is unusually difficult…Optimizer Pro has been the easiest theme to work with in all other aspects!

    #1140468
    Nico
    Member

    I did delete and refresh, forgot to mention. Just did it again.

    When you delete the content of the file (but keep the file in place) does the widget still shows up in the front-end of the site?

    Please let me know about it,
    Nico

    #1140492
    Aaron
    Participant

    Hi,

    It doesn’t affect the widget — it remains on our website (see screen shot).

    #1140971
    Nico
    Member

    Thanks for confirming Aaron! Now we now the template override is not taking any effect.

    I just re-checked the process in my local install and it’s working for me, so not sure what’s going on in your case.

    Let’s do the following test:

    • Make sure events calendar PRO is active.
    • Switch the site’s theme to default TweentySixteen.
    • Create the folder structure (tribe-events/pro/widgets/modules/)in the theme’s folder (wp-content/themes/TweentySixteen/).
    • Inside the just created folder modules create the single-event.php file and leave it without content.
    • Check the front-end of the site to see if the widget is displaying (it should only display the widget title).

    This is the basic test if it works, we will work from here!

    Please let me know how that goes,
    Best,
    Nico

    #1142253
    Aaron
    Participant

    Hi,

    So when I try this (see screenshot for Twenty Sixteen folders added as you suggested), the Twenty Sixteen theme shows full event listings with some untranslated shortcode (maybe I’m not saying it right: but see additional screenshots for what I’m seeing) — but with images. Even though the single-event.php file is empty.

    Let me know your thoughts, thank you so much for your continued help!

    #1142954
    Nico
    Member

    Thanks for following up Aaron. This is getting a bit tricky, and I’m sure I’m missing something here.

    Let’s get back to the basics here: How are you including the widget? If you are including it via shortcode Can you please send the exact code you are using. On the other hand if you are including the widget in a sidebar please send me the screenshot from WP-Admin > Appearance > Widgets. Basically I think you might be using another widget not the events calendar one!

    If you could send the URL for me to see this in action it will help as well!

    Thanks, and sorry this is taking so much back and forth,
    Have a great weekend,
    Nico

    #1143471
    Aaron
    Participant

    Alright,

    I think we’re getting soooomewhere….

    1. I am using “This Week Events” as the widget. Can you confirm that’s correct?

    SEE SCREENSHOTS
    2. When I swapped between “This Week Events” and “Events Calendar” the “Events Calendar” widget DID show images! But it was vertical, and does not seem to have an easy way to customize the layout (to horizontal). And it showed a mini-version (icon) of the monthly calendar.

    Am I using the wrong widget?

    Thank you again!

Viewing 15 posts - 1 through 15 (of 26 total)
  • The topic ‘Cannot Add Images to Events Widget’ is closed to new replies.