-
AuthorPosts
-
February 12, 2017 at 3:09 am #745819
Hi,
How do I make a marker icon on google maps larger. The 80 x 80 looks small and doesn’t look as bold as I want it.
Thanks,
February 16, 2017 at 10:15 am #747878Hi mcraig77!
Thank you for using Enfold.
This is possible but you need to modify one of the parent theme files. Edit the config-templatebuilder > aviashortcodes > google_map.php file then look for this code around line 123:
__('80px * 80px', 'avia_framework' ) =>'80',
Cheers!
IsmaelFebruary 16, 2017 at 8:53 pm #748135Thanks, would i just replace the 80’s? also seeing im editing a main file how would i go about this with a child theme?
February 16, 2017 at 9:36 pm #748145Hi!
Just create a “shortcodes” directory in your child theme folder and copy the shortcode file you want to overwrite (by default all files are located in wp-content/themes/enfold/config-template/builder/avia-shortcodes) from the parent theme directory to the child theme “shortcodes” directory. Then modify the shortcode php code as you like.
Afterwards insert following code at the very end of the child thrmes functions.phpadd_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
Let us know if you need anything else.
Thanks a lot
Cheers!
BasilisFebruary 17, 2017 at 2:26 am #748187I just tried the changes via @Ismael thread but when i edited them they did nothing. Please advise.
February 17, 2017 at 8:32 am #748263Hey!
Did you re-upload the marker image? Maybe, the page is cached. Please remove browser cache or hard refresh before checking the page.
Regards,
IsmaelFebruary 17, 2017 at 8:35 am #748264yeah, I did… I tried viewing it in a few different browsers as well.
Please Advise
February 17, 2017 at 8:48 am #748273Hey!
Alright. Please provide one of the marker image then post the login details here so that we can test it.
Cheers!
IsmaelFebruary 17, 2017 at 9:34 pm #748656Here ya go!
February 17, 2017 at 11:26 pm #748708Hi!
And your access please?
Cheers!
BasilisFebruary 18, 2017 at 12:23 am #748724ooops here ya go!
February 18, 2017 at 11:25 am #748814Hi!
We need to access a file via FTP. However, if you have the time, please edit the js > shortcodes.js file, look for this code around line 652:
if(_self.retina && size > 40) size = 40; //retina downsize to at least half the px size
Set the value from 40 to 120.
Cheers!
IsmaelFebruary 21, 2017 at 11:23 am #749867Hi there I cant seem to change icons on the maps of my installation of enfold? Could it be with he update of the file?
What should I do to rectify this?
February 21, 2017 at 9:58 pm #750168February 24, 2017 at 6:16 pm #751517Hi,
Did you try setting the value from 40 to 120? If you set it at 40 and it is too small try 80 or 120.Best regards,
MikeFebruary 24, 2017 at 7:44 pm #751556@mike I put in 100. Please Advise.
Attached is the file.
February 24, 2017 at 10:18 pm #751615September 28, 2020 at 7:32 pm #1249142Hi all.
I can’t make icon marker bigger. I made the tip described up, but no luck.
Any workaround?
Thanks in advance.September 29, 2020 at 4:18 pm #1249409Hi backfolder,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaSeptember 30, 2020 at 10:21 am #1249608Hi Victoria.
Yes of course.- This reply was modified 4 years, 2 months ago by backfolder.
October 1, 2020 at 12:56 pm #1249867Hi,
Sorry for the late reply, please try the solution in this post.Best regards,
MikeOctober 1, 2020 at 1:05 pm #1249869Thanks Mike!
But didn’t work… : /October 2, 2020 at 2:27 pm #1250090This reply has been marked as private.October 2, 2020 at 4:29 pm #1250126Hi backfolder,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.