Home › Forums › Calendar Products › Events Calendar PRO › Cannot Add Images to Events Widget
- This topic has 26 replies, 4 voices, and was last updated 9 years, 8 months ago by
Aaron.
-
AuthorPosts
-
July 1, 2016 at 10:20 am #1134581
Aaron
ParticipantI 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.
July 4, 2016 at 9:32 am #1135107Nico
MemberHowdy 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,
NicoJuly 4, 2016 at 5:11 pm #1135269Aaron
ParticipantHi 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!
July 6, 2016 at 2:55 pm #1136278Nico
MemberThanks 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,
NicoJuly 14, 2016 at 2:47 pm #1139948Aaron
ParticipantThanks 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.”
July 14, 2016 at 6:01 pm #1140040Nico
MemberThanks 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,
NicoJuly 15, 2016 at 10:09 am #1140414Aaron
ParticipantHi 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.
July 15, 2016 at 10:34 am #1140438Nico
MemberThanks 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,
NicoJuly 15, 2016 at 10:40 am #1140440Aaron
ParticipantHi,
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!
July 15, 2016 at 11:14 am #1140468Nico
MemberI 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,
NicoJuly 15, 2016 at 11:27 am #1140492Aaron
ParticipantHi,
It doesn’t affect the widget — it remains on our website (see screen shot).
July 18, 2016 at 4:04 am #1140971Nico
MemberThanks 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,
NicoJuly 20, 2016 at 7:29 pm #1142253Aaron
ParticipantHi,
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!
July 22, 2016 at 9:14 am #1142954Nico
MemberThanks 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,
NicoJuly 23, 2016 at 6:39 pm #1143471Aaron
ParticipantAlright,
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!
-
This topic was modified 9 years, 10 months ago by
-
AuthorPosts
- The topic ‘Cannot Add Images to Events Widget’ is closed to new replies.
