Changing the default map type for all posts

This topic contains 3 reply and 2 voices, and was last updated by stuartmichael13 10 years, 8 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
July 28, 2013 at 7:22 am 6397
stuartmichael13 Hi, Is there a way to change the default map type and size in all posts? I've enabled the Google Maps custom field in my "add post" form and changed the settings so that the map is shown in all the posts once the user selects a location. But now I want it to default to "Map with Terrain" and I want to change the default size as well. I also have two other non-related questions. 1) Is there a way to add a delete post button to the post editor form? 2) Is there a way to change the default size of the "upload image" button on my add post form? It currently defaults to a small size but I would like it to default to its full size. Thanks!
July 28, 2013 at 12:03 pm 6399
Tareq Hasan Tareq Hasan

Map Type: There isn’t any settings to change the map type. You’ve to edit the plugin in that case. On the wpuf-functions.php, fine the line window.google.maps.MapTypeId.ROADMAP. The ROADMAP needs to be change to TERRAIN.

If you are using the post meta displaying automatically, you’ve to change the size as well. You’ll find the height and width just few lines up of the ROADMAP on the same file.

Other questions:
1) Yes possible, but that will require some other codes for deletion as well.
2) You can change the button size using CSS in your theme.

July 28, 2013 at 10:04 pm 6400
stuartmichael13 stuartmichael13

Thanks for the reply, I just have a clarification regarding #2:

I didn’t mean “upload image” button… I must have been half asleep.

What I meant to ask was, how to I change the default size of the uploaded images that are uploaded from the frontend through the upload image button? When the image is uploaded into the post it uploads as a small version of the picture that was originally uploaded. I would like it to upload into the post as its full size.

Thanks.

July 28, 2013 at 11:07 pm 6401
stuartmichael13 stuartmichael13

Nevermind, it took some searching but I finally found the line of code to change.

Viewing 3 Posts - 1 through 3 (of 3 total)