Home › Forums › Calendar Products › Events Calendar PRO › Image is too large
- This topic has 4 replies, 3 voices, and was last updated 10 years, 7 months ago by
Support Droid.
-
AuthorPosts
-
August 17, 2015 at 7:46 pm #996803
Rhonda
ParticipantThe image appears too large once you click on the event. Could tell me how I can I resize the image to a normal size? I searched the forums and found and articles that indicated I should replace the word ‘medium’ with thumbnail, but I do not see that html coding. .
August 17, 2015 at 11:30 pm #996834Brook
ParticipantHowdy Rhonda,
That’s a great question. I would love to help you with that.
You are absolutely on the right track. You can find that file in /wp-content/plugins/the-events-calendar/src/views/single-event.php. On line 58 you will see this:
<?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>The ‘full’ bit is that part you want to change. You likely actually want to change it to ‘medium’. ‘thumbnail’ will probably be too small.
There is a “best way” to make a modification to that file. Basically if you directly modify the text in that single-event.php file, your change will be lost next time you update The Events Calendar. That’s no good! If you instead follow our Themer’s Guide, it will walk you through duplicating that file into your theme’s directory. Once it’s in the proper place in your theme folder, then you can modify it and you changes will stay when you update The Events Calendar!
Does that all make sense? Will that work for you? Please let us know.
Cheers!
– Brook
August 18, 2015 at 6:26 am #996898Rhonda
ParticipantI cannot find anything labeled “wp-content/plugins/the-events-calendar…”. I tried looking for “wp-content” under Appearance>Editor and also under Plugins>Editor. I do not know where to find this html “<?php echo tribe_event_featured_image( $event_id, ‘full’, false ); ?>”. Line 58, where? There is no folder labeled “wp-content” under my Editor.
Thank you for your help.
August 18, 2015 at 1:03 pm #997059Brook
ParticipantI follow you now. That tutorial requires you to have access to your entire site’s folder structure, or at least the /wp-content/ directory. This means that you can not be using a simple tool like the WP Appearance editor, rather you must be using something like an FTP program to view your site’s file. If this sounds daunting or outside your comfort zone, it might be something you would prefer hiring someone to edit.
If you really do not want to hire someone (especially if this is the only modification to WordPress you want to make), then there is one way to do this with the Plugin editor. You could modify the The Events Calendar plugin, and then search for this file: /src/views/single-event.php . Then on line 58 make your change. But, keep in mind that you will need to make that change everytime you update the plugin. Which is why use of the Plugin Editor is usually not “good practice” in WordPress.
On that note, you could also use WordPress to resize your featured images. When you click on Set featured image, you see a list of your currently imported images to select from. When you click on one there is a little link to “Edit Image”. Editting an image allows you to set its size, crop it, and so forth. Simply changing its size to your desired size will also work. But this must be done on an image by image basis.
Would one of those options work?
Cheers!
– Brook
September 2, 2015 at 7:05 am #1001228Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Image is too large’ is closed to new replies.
