Directions images not showing up

Home Forums MapPress Support Directions images not showing up

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13449
    mapsuser
    Participant

      Hello,
      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.

      #13450
      Chris
      Keymaster

        Hi,

        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:

        http://mappresspro.com/demo

        #13452
        mapsuser
        Participant

          Hi,
          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.

          #13454
          Chris
          Keymaster

            Hi,

            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.

            #13480
            mapsuser
            Participant

              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.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.