September 27, 2013 at 7:08 am #13449
We have added directions under our maps but all of the image icons for the directions are not showing up. I noticed the path is ‘../images/’. The direct path would need to be ‘http://domain.com/wp-content/plugins/mappress-google-maps-for-wordpress/images/’
We don’t want to make changes to the core plugin so let us know the best way to handle this situation.September 27, 2013 at 2:42 pm #13450ChrisKeymaster
For CSS images it’s normal to use relative paths, since there’s no way to customize a full path in the CSS file.
If you’d like to provide a URL I’ll take a look, but this is something unique to your blog. You might try deactivating your other plugins and switching to a standard theme to see if it’s a conflict.
You can also try a demo site here to see if it has the same issue:September 27, 2013 at 4:32 pm #13452
Thanks for the reply. With ‘../images/’ set as the default path for those images, it would have to be an ‘images’ folder at the root of ‘/wp-content/themes’, since the site CSS and linking is generally relative to the main theme folder.
I can create this directory and move the images in there, but I’d prefer not to. Just not an elegant solution.
Is there any way (e.g., in functions.php) that I can override the path to be just ‘images/’ instead of ‘../images’? Or would I have to make the change in one of the plugin files (making potential for breakage when updating)?
Thanks for any help here.September 28, 2013 at 5:25 am #13454ChrisKeymaster
The image path is relative to file where the CSS is defined.
That file is mappress.css in the plugin directory – not styles.css – so the relative path works correctly.
I’m wondering what is different in your blog. Did you move the CSS files or definitions to your theme directory or styles.css?
If so, you’ll need to change the relative path there or make it absolute. It’s not possible to change CSS paths using PHP.
If you’re using the theme directory, files there aren’t overwritten by plugin upgrades, and if you use a child theme they also won’t be overwritten when the theme is upgraded.October 2, 2013 at 6:13 am #13480
Ugh, I apologize. Way too many late nights, going crosseyed. Someone else started this project, and yes we did move the CSS into our main styles.css file (we like to streamline). Fixed there.
Thanks for your help. Sorry for any confusion.
- You must be logged in to reply to this topic.